API reference
Exports
API reference descriptions are provided in English to preserve the exact published contract.
List private exports
GET /v1/accounts/{AC}/exports
getV1AccountsByAcExportsPaginated200
Required scope: any one of `exports:create`, `billing:write`, `audit:read`.
Parameters
Parameters| Name | Type | Required | Description |
|---|
limit | query · integer (1–100) | | |
cursor | query · string (max 2048 chars) | | |
AC | path · string (AC… SID) | yes | Account SID |
Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.
Create a private data export
POST /v1/accounts/{AC}/exports
postV1AccountsByAcExportsIdempotency-Key required202
Required scope: any one of `exports:create`, `billing:write`.
Parameters
Parameters| Name | Type | Required | Description |
|---|
AC | path · string (AC… SID) | yes | Account SID |
Request body (15 fields)
Request body| Name | Type | Required | Description |
|---|
filters | object | | |
filters.action | string (max 128 chars) | | |
filters.actorRef | string (max 256 chars) | | |
filters.campaignSid | string (CP… SID) | | |
filters.category | string (max 64 chars) | | |
filters.contactSid | string (CT… SID) | | |
filters.from | string (date-time) | | |
filters.resourceRef | string (max 256 chars) | | |
filters.senderSid | string (WA… SID) | | |
filters.state | string (max 64 chars) | | |
filters.status | string (max 64 chars) | | |
filters.to | string (date-time) | | |
format | "csv" | "json" | | |
kind | "messages" | "billing" | "audit" | "analytics" | "contacts" | yes | |
stepUpToken | string (max 256 chars) | yes | |
Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.
Fetch an export and short-lived result URL
GET /v1/accounts/{AC}/exports/{EX}
getV1AccountsByAcExportsByEx200
Required scope: any one of `exports:create`, `billing:write`, `audit:read`.
Parameters
Parameters| Name | Type | Required | Description |
|---|
AC | path · string (AC… SID) | yes | |
EX | path · string (EX… SID) | yes | |
Errors: 400, 401, 403, 404, 409, 422, 429, 500, 503 — see errors.