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
}
}Returns how many calls match your filters without starting an analysis run. Use this to check scope and cost before committing to a run. Dates are required; all other filters are optional.
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.
API key with sk_ prefix. Create one in Org Settings → API Keys.
Unique slice key
Filters for preview count. dateFrom and dateTo are required. All other filters are optional.
Start date (inclusive)
"2026-03-26"
End date (inclusive)
"2026-04-26"
Filter by call types
100Filter by call owner emails
100Filter by company domains
100Filter by CRM deal IDs
100Filter by CRM company IDs
100Filter by CRM deal stages
100["Qualification", "Proposal"]Minimum CRM deal amount
Maximum CRM deal amount
Custom CRM field filters
Show child attributes
Matched call count
Show child attributes