Skip to main content
GET
/
api
/
v1
/
calls
cURL
curl --request GET \
  --url https://kapi.prod1.kastle.ai/api/v1/calls \
  --header 'Authorization: Bearer <token>'
{
  "calls": [
    {
      "call_id": "<string>",
      "from_number": "+19098765432",
      "to_number": "+19876543210",
      "call_duration": 123,
      "call_status": "ai_ended_call",
      "call_time": 123,
      "loan_id": "1234567890",
      "order_id": "1234567890"
    }
  ],
  "next_token": 123
}

Authorizations

Authorization
string
header
required

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

Query Parameters

limit
integer<int32>

The maximum number of results to return (if not provided, the default is 100)

next_token
integer<int32>

Token for pagination (if not provided, it starts from the first page with a next token of 0)

from_timestamp
integer<int64>
required

Start timestamp for filtering calls (Unix timestamp)

to_timestamp
integer<int64>
required

End timestamp for filtering calls (Unix timestamp)

Response

Successfully retrieved list of calls

calls
object[]
next_token
integer

Token for fetching the next page of results