Create Export
create_exportStart an asynchronous CSV export of the authenticated customer's data. export_type: "cdr" (inbound call detail records), "outbound_cdr" (outbound call detail records), "did" (the customer's phone numbers), "order", "payment", "inbound_sms" or "outbound_sms" (SMS logs). date_from/date_to (ISO 8601, interpreted as UTC) are REQUIRED for cdr/outbound_cdr/inbound_sms/outbound_sms and limited to the current and 2 previous months; optional for order/payment; not accepted for did. A date_to in the future (e.g. today end of day for "export this month") is clamped to the current time — the response then carries date_to_clamped_to; a date_from in the future is an error. The export runs in the background (typically up to 5 minutes); poll get_export with the returned export_id until it is completed, then give the user the download link.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"export_type": "<export_type>"
},
"name": "create_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional friendly name shown in the panel Exports list. | |
| date_to | No | End of the period (exclusive for CDR/SMS types), ISO 8601 date-time (UTC). REQUIRED for cdr, outbound_cdr, inbound_sms and outbound_sms; a value in the future is clamped to the current time. | |
| date_from | No | Start of the period, ISO 8601 date-time (UTC), e.g. "2026-07-01T00:00:00Z". REQUIRED for cdr, outbound_cdr, inbound_sms and outbound_sms. | |
| did_number | No | Optional DID phone number filter, digits only. For "cdr"/"did" it matches the DID number, for "inbound_sms" the receiving number, for "outbound_sms"/"outbound_cdr" the sending number (caller ID). Not accepted for order/payment. | |
| export_type | Yes | What to export. |