Calls

List Calls

GET
/v1/Calls

Returns the list of Calls, optionally filtered by parameters. This method supports pagination.

AuthorizationBasic <token>

Basic Authorization header using the BASIC scheme. Use a pair companySid:token to access the API.

In: header

Query Parameters

Direction?string

Call direction.

Value in

  • "Inbound"
  • "Outbound"
InternalNumber?string

The Phone Number which belongs to your Telgorithm account and which was the originating (caller) or terminating (callee) party of the Call, depending on the Direction.

Lengthlength <= 16
ExternalNumber?string

The external Phone Number or SIP URI which was the originating (caller) or terminating (callee) party of the Call, depending on the Direction.

If it is a SIP URI, it must start with the sip: or sips: prefix, and must be formatted according to RFC 3261 standard. Examples of valid SIP URI:

  • sip:user@server.com:5060
  • sip:user@server.com;transport=TLS
  • sip:user@server.com?header1=value1&header2=value2
  • sip:user@server.com:5060;transport=TCP?header=value
Lengthlength <= 256
CreatedOnFrom?string

Date and time, that Call creation date should be greater than or equal to.

Must have ISO format (e.g. yyyy-MM-dd'T'HH:mm:ss).

Formatdate-time
CreatedOnTo?string

Date and time, that Call creation date should be less than.

Must have ISO format (e.g. yyyy-MM-dd'T'HH:mm:ss).

Formatdate-time
PageSize?integer
Formatint32
Range1 <= value <= 10000
OrderByDirection?string

Possible values:

  • Ascending

  • Descending

Value in

  • "Ascending"
  • "Descending"
SearchId?string

Response Body

curl -X GET "https://example.com/v1/Calls"
{  "items": [    {      "sid": "string",      "internalNumber": "+12145678900",      "externalNumber": "+19876543210",      "direction": "Inbound",      "createdOn": "2023-09-09T15:00:00.000Z",      "status": "Created",      "startedOn": "2023-09-09T15:00:00.000Z",      "completedOn": "2023-09-09T15:00:00.000Z"    }  ],  "searchId": "string"}
{  "errors": {    "Name": [      "The Name field is required."    ]  },  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",  "title": "One or more validation errors occurred.",  "status": 400,  "detail": "Some detailed message",  "traceId": "|4ef17786-b103-420e-89c0-cc425ac14809.edfcbee9_"}