Skip to main content
GET
/
api
/
calls
/
export
Export call history to CSV
curl --request GET \
  --url http://localhost:8080/api/calls/export \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>'
{
  "message": "Call export generated successfully",
  "status": "success",
  "error": null,
  "data": {
    "organization_id": "org-789",
    "export_id": "export_123",
    "download_url": "https://example.com/exports/export_123.csv"
  }
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Query Parameters

agent_id
string
call_id
string
batch_call_id
string
direction
string
call_type
string
from_date
string
to_date
string
from_number
string
to_number
string
status
string
disconnection_reason
string
user_sentiment
string
call_successful
string
sort_by
string
default:start_timestamp
sort_order
string
default:descending

Response

200 - application/json

Call export generated successfully

message
string
status
string
error
string
data
object