Внешнее APIСправочник методовЗвонки

Список звонков

Список звонков

GET
/api/external/v1/robots/{robot_id}/calls/

Список звонков

Authorization

tokenAuth
Authorization<token>

Token-based authentication with required prefix "Token"

In: header

Path Parameters

robot_id*string

Robot ID

Formatuuid

Query Parameters

call_direction?string

Filter by direction (inbound/outbound)

call_status?string

Filter by call status

date_from?string

Calls started at or after (ISO 8601)

date_to?string

Calls started at or before (ISO 8601)

msisdn?string

Filter by phone number

page?integer

A page number within the paginated result set.

page_size?integer

Number of results to return per page.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/external/v1/robots/497f6eca-6276-4993-bfeb-53cbbbba6f08/calls/"
{  "count": 123,  "next": "http://api.example.org/accounts/?page=4",  "previous": "http://api.example.org/accounts/?page=2",  "results": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "msisdn": "string",      "call_start_time": "2019-08-24T14:15:22Z",      "call_direction": "string",      "call_duration": -32768,      "call_status": "string",      "call_result": "string",      "extra_fields": {        "property1": null,        "property2": null      }    }  ]}