Calls

Get Calls Count

Get the total count of calls matching filters. Separated from the main calls endpoint for faster initial page loads.

get/v2/calls/count

Request

  • Base URL
    https://api.carecycle.ai
  • URL
    https://api.carecycle.ai/v2/calls/count
  • Auth
    API key in header x-api-key

Query parameters

searchstring

Search query: matches customer name, phone number, or disposition

customerIdstring uuid

Filter calls by customer ID for exact customer call history

campaignIdsstring

Optional array of campaign IDs to filter calls by specific campaigns (comma-separated string)

agentUserIdsstring

Optional array of agent user IDs to filter calls by specific softphone agents (comma-separated string)

durationOperator'<=' | '>='

Duration filter operator (less than or equal, greater than or equal)

durationValuenumber

Duration value in seconds to filter by

direction'inbound' | 'outbound'

Filter by call direction

callType'voice_ai' | 'softphone'

Filter by call type: Voice AI or Softphone

startDatestring date-time

Start date-time for call range filtering. ISO 8601 timestamp

endDatestring date-time

End date-time for call range filtering. ISO 8601 timestamp

excludeDispositionsstring

Array of disposition names to exclude from results (comma-separated string)

includeDispositionsstring

Array of disposition names to limit results to (comma-separated string). Combines with excludeDispositions when both are sent.

excludeSourcesstring

Array of source ids to exclude from results (comma-separated string)

includeTestCalls'true' | 'false'

When true, test calls are included in results. Default behavior is to exclude test calls.

connectedCallsOnly'true' | 'false'

Filter for connected calls only using disposition outcome types, with a legacy name fallback. Default behavior is to include all calls.

includeErrorDispositions'true' | 'false'

Deprecated compatibility parameter. Error dispositions are always excluded, regardless of this value.

Response

GET /v2/calls/count Positive response

countnumber required

Total number of calls matching the filters

Changes

No recorded changes to this operation across all 2 revisions of this API.