GET
/
calls
/
query
curl --request GET \
  --url https://api.callab.ai/v1/calls/query \
  --header 'Authorization: Bearer <token>'
{
  "status": "<string>",
  "message": "<string>",
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "call_sid": "<string>",
      "company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "ai_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "call_provider": "<string>",
      "call_from": "<string>",
      "call_to": "<string>",
      "call_duration": 123,
      "call_status": "<string>",
      "call_direction": "<string>",
      "is_test": true,
      "call_rating": 123,
      "call_feedback": "<string>",
      "record_url": "<string>",
      "transcript": "<string>",
      "transcript_object": {},
      "transcript_language": "<string>",
      "cost": 123,
      "price_unit": "<string>",
      "latency": 123,
      "disconnect_reason": "<string>",
      "analysis_sentiment": "<string>",
      "agent_task_status": "<string>",
      "agent_task_feedback": "<string>",
      "metadata": {},
      "agent_dynamic_variables": {},
      "agent_post_call_outcomes": {},
      "notes": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "deleted_at": "2023-11-07T05:31:56Z",
      "started_at": "2023-11-07T05:31:56Z",
      "ended_at": "2023-11-07T05:31:56Z",
      "retry_at": "2023-11-07T05:31:56Z",
      "workspace_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

ai_agent_id
string

Filter by AI agent ID

Search term for calls

status
string

Filter by call status

start_date
string

Filter by start date (YYYY-MM-DD)

end_date
string

Filter by end date (YYYY-MM-DD)

campaign_id
string

Filter by campaign ID

sort_column
string
default:created_at

Column to sort by

order
string
default:desc

Sort order (asc/desc)

page
integer
default:0

Page number for pagination

per_page
integer
default:10

Number of items per page

filter_columns
string

Comma-separated list of columns to filter on

filter_values
string

Comma-separated list of values for the filter_columns

filter_operator
string

Operator for filtering (e.g., eq, neq, gt, lt)

workspace
string
default:default

Optional workspace filter. If not provided, it will fall back to use "default".

Response

200
application/json

Successfully retrieved calls

The response is of type object.