Retrieve a list of Calls
Changed onBeta: Breaking changes may occur without notice.
Retrieves a paginated list of Calls, newest first by default. When no date filter is provided, results default to the last 30 days. Pass dateProperty, dateOperator, and date together to override this default. Dates are in the account timezone. The applied range is always returned in the dateRange field of the response. Only the first 10000 results of a query can be paged through.
Request
- Base URLhttps://api.workiz.com/crm/api
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Number of records to return per page.
The page index.
The field to sort results by. Must be combined with order. Defaults to createdAt.
The sort direction. Must be combined with field. Defaults to DESC.
Filter by call direction. Can be passed multiple times.
Filter by call outcome, with the same meaning as the Calls page status filter. Accepts a single value. answered also returns calls with a status of geniusAnswering, and missed also returns calls with a status of voicemail.
Filter by the user who answered or placed the ID (prefix USR-). Can be passed multiple times.
Filter by client ID (prefix CL-). Can be passed multiple times.
Filter by linked job ID (prefix JOB-). Can be passed multiple times.
Filter by linked lead ID (prefix LD-). Can be passed multiple times.
Filter by ad group ID (prefix AG-). Can be passed multiple times.
Filter by tag ID (prefix TAG-). Can be passed multiple times; returns calls that have any of the given tags.
Filter by the AI sentiment of the call. Can be passed multiple times.
Filter by the AI detected intent of the caller. Can be passed multiple times.
Comparison for the duration filter. Must be combined with duration. under returns calls shorter than duration, over returns calls longer than it.
The call duration boundary in seconds, used with durationOperator. The boundary itself is excluded (e.g. over with 300 returns calls longer than 5 minutes).
The call date field to apply the date filter to. Must be combined with dateOperator and date. When these date filter params are omitted, results default to the last 30 days.
Comparison operator for the date filter. Must be combined with dateProperty and date.
Date value(s) for the filter, in the account timezone. Format depends on dateOperator: prev / next accept a single date (YYYY-MM-DD); between accepts two dates separated by _ (YYYY-MM-DD_YYYY-MM-DD). Both ends are inclusive.
Headers
Bearer Token
Response
A paginated list of Calls, with the date range the results are limited to.
Example response
{
"pageSize": 10,
"page": 1,
"totalResults": 50,
"hasMore": true,
"data": [
{
"id": "CAL-5e2a9c7b1d4f8e36",
"direction": "inbound",
"from": "2125550199",
"to": "2125550100",
"callMaskingNumber": "2125550142",
"duration": 125,
"status": "answered",
"hasRecording": true,
"flowName": "Main Flow",
"adGroupId": "AG-71b8d7310acbf8cc",
"clientId": "CL-2d1f8b3a9c7e6f50",
"clientName": "Jane Smith",
"jobId": "JOB-6a0e4d2b7f9c1e38",
"leadId": "LD-4c8b2e6f1a9d3e70",
"answeredByUserId": "USR-38c1ee5c4efa38a4",
"answeredByUserName": "Jane Smith",
"calledByUserId": "USR-38c1ee5c4efa38a4",
"calledByUserName": "John Doe",
"tags": [
"TAG-16a94b03317f6e64"
],
"insights": {
"sentiment": "positive",
"intent": "booking",
"dispatcherScore": 82,
"objection": "price",
"pricingDiscussed": true
},
"updatedAt": "2025-01-13 13:39:10",
"createdAt": "2025-01-13 13:36:46"
}
],
"dateRange": {
"dateProperty": "created",
"from": "2025-01-13",
"to": "2025-01-14"
}
}Changes
- info
endpoint added
- info