Skip to main content
POST
/
api
/
public
/
v1
/
slices
/
{key}
/
preview-count
Preview matched call count
import requests

url = "https://app.oneperfectslice.ai/api/public/v1/slices/{key}/preview-count"

payload = {
    "dateFrom": "2026-03-26",
    "dateTo": "2026-04-26"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.text)
{
  "data": {
    "matchedCallCount": 87
  }
}

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.

Always preview before running. This call is free — it only counts matching calls without using any AI credits.

Authorizations

Authorization
string
header
default:sk_your_api_key
required

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

Path Parameters

key
string
required

Unique slice key

Body

application/json

Filters for preview count. dateFrom and dateTo are required. All other filters are optional.

dateFrom
string<date>
required

Start date (inclusive)

Example:

"2026-03-26"

dateTo
string<date>
required

End date (inclusive)

Example:

"2026-04-26"

callTypes
string[]

Filter by call types

Maximum array length: 100
callOwnerEmails
string[]

Filter by call owner emails

Maximum array length: 100
companyDomains
string[]

Filter by company domains

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
Example:
["Qualification", "Proposal"]
crmAmountMin
number

Minimum CRM deal amount

crmAmountMax
number

Maximum CRM deal amount

crmCustomFieldFilters
object[]

Custom CRM field filters

Response

Matched call count

data
object
required