Saltar al contenido principal
GET
/
v1
/
call
List Calls
import requests

url = "http://localhost:3000/v1/call/"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "dialing",
      "type": "inbound",
      "contact": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "created_date": "2023-11-07T05:31:56Z",
        "identifier": "<string>",
        "contact_type": "call"
      },
      "phone_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_date": "2023-11-07T05:31:56Z",
      "recording_url": "<string>",
      "start_time": "2023-11-07T05:31:56Z",
      "end_time": "2023-11-07T05:31:56Z",
      "duration": 123,
      "end_reason": "<string>"
    }
  ],
  "has_more": true,
  "first_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "last_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

after
string<uuid> | null
before
string<uuid> | null
limit
integer
default:50
Rango requerido: 1 <= x <= 1000
order
enum<string>
default:desc
Opciones disponibles:
asc,
desc
agent_id
string<uuid> | null
status
enum<string> | null
Opciones disponibles:
dialing,
in_progress,
completed,
failed,
transferred,
no_answer
type
enum<string> | null
Opciones disponibles:
inbound,
outbound
start_created_date
string<date-time> | null
end_created_date
string<date-time> | null
contact_id
string<uuid> | null
phone_id
string<uuid> | null

Response

Successful Response

data
CallResponse · object[]
required
has_more
boolean
required
first_id
string<uuid> | null
last_id
string<uuid> | null