Phones - Calls

Count calls matching a query

Total number of calls matching the same queryOptionsRequest filters as POST /query. Split out so the page of rows never waits on the count; pagination and sort are ignored.

post/api/v1/phones/calls/count

Request

  • Base URL: https://api.voicelogica.ai
  • URL: https://api.voicelogica.ai/api/v1/phones/calls/count
  • Auth: API key in header x-api-key

Headers

x-api-keystring required

Your API key for authentication. Required for all endpoints.

x-company-idstring

Optional company ID for resellers. When provided, the API request will operate on behalf of the specified subsidiary company. The API key must have access to the specified company.

Request body

Example request

{
  "pagedListRequest": {
    "nextId": null,
    "pageSize": 50
  },
  "queryOptionsRequest": {
    "filtersRequest": [
      {
        "field": "createdAt",
        "matchMode": 10,
        "operator": 1,
        "value": null,
        "values": null,
        "rangeValues": {
          "start": "2024-01-01T00:00:00.000Z",
          "end": "2024-01-31T23:59:59.999Z"
        },
        "ignoreCase": null
      },
      {
        "field": "status",
        "matchMode": 1,
        "operator": 1,
        "value": "answered",
        "values": null,
        "rangeValues": null,
        "ignoreCase": true
      }
    ],
    "sortRequest": [
      {
        "field": "createdAt",
        "direction": 1,
        "priority": 1
      }
    ],
    "includes": [
      "agent",
      "contact",
      "voipPhone"
    ],
    "selectFields": []
  }
}

Changes

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