Skip to main content
POST
/
api
/
public
/
v1
/
posts
/
search
Search posts
import requests

url = "https://app.oneperfectslice.ai/api/public/v1/posts/search"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "data": {
    "posts": [
      {
        "fileId": 123,
        "title": "<string>",
        "date": "2023-11-07T05:31:56Z",
        "templateType": "summary",
        "snippet": "<string>",
        "postId": 123,
        "callOwnerEmail": "<string>",
        "companyDomain": "<string>"
      }
    ]
  },
  "meta": {
    "pagination": {
      "totalCount": 142,
      "hasMore": true,
      "limit": 20,
      "offset": 0
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.oneperfectslice.ai/llms.txt

Use this file to discover all available pages before exploring further.

Start with detail: false (the default) for faster, smaller responses. Only set detail: true when you need the full structured payload for a specific post.

Authorizations

Authorization
string
header
default:sk_your_api_key
required

API key with sk_ prefix. Create one in Org Settings → API Keys.

Body

application/json

Post search filters. Send an empty body {} to return recent posts. All filters are optional.

callTypeId
integer<int64>[]

Filter by call type IDs

Maximum array length: 100
templateType
enum<string>[]

Filter by template type

Maximum array length: 100
Available options:
summary,
scorecard
startDate
string<date-time>

Start datetime (inclusive)

endDate
string<date-time>

End datetime (inclusive)

callOwnerEmails
string[]

Filter by call owner email

Maximum array length: 100
companyDomains
string[]

Filter by company domain

Maximum array length: 100
crmDealIds
integer<int64>[]

Filter by CRM deal IDs

Maximum array length: 100
crmCompanyIds
integer<int64>[]

Filter by CRM company IDs

Maximum array length: 100
crmDealStages
string[]

Filter by CRM deal stages

Maximum array length: 100
crmAmountMin
number

Minimum CRM deal amount

crmAmountMax
number

Maximum CRM deal amount

crmCustomFieldFilters
object[]

Custom CRM field filters

Maximum array length: 100
detail
boolean
default:false

Return full post payloads when true; compact summaries when false

fields
string[]

Optional response field selection hint

limit
integer
default:20
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0

Response

Paginated post search results

data
object
required
meta
object
required