Get contact export
Returns a contact export with one page of its rows; use cursor for the next page. Exports are removed 24 hours after creation. Read-only.
GET /v1/contact-exports/{export_id}
| Permission | contacts:read (all permissions) |
| Risk | Read |
| Idempotency-Key | Not needed (how it works) |
| Safe to repeat | Safe: the call only reads. |
| Rate limit class | read (120 requests per minute per key) |
| Confirmation | None |
| MCP tool | Not available in MCP |
| Since version | 2026-10-25 |
#What it does
- Only reads data. It changes nothing and sends nothing.
#Request
Path parameters
| Name | Type | Description |
|---|---|---|
export_id | string | Export ID from create_contact_export. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Items per page (1 to 100, default 20). 1 to 100; default 20 |
cursor | string | no | next_cursor from the previous page. Opaque; only valid with the same filters. up to 300 characters |
#Lists, filters and sorting
- Items per page:
limitfrom 1 to 100, default 20 (MCP: default 20, maximum 50). - Next page: send
next_cursorof the answer ascursor. The cursor only works with the same filters. See Pagination. - Filters: none.
- Sorting: newest first (
created_atdescending, theniddescending); no other order.
#Examples
curl "https://api.smartchat.marketing/v1/contact-exports/exp_4d5e6f7a8b9c40d1e2f3a4b5c6d7e8f9?limit=20" \
-H "Authorization: Bearer $SMARTCHAT_API_KEY"import os
import requests
response = requests.get(
"https://api.smartchat.marketing/v1/contact-exports/exp_4d5e6f7a8b9c40d1e2f3a4b5c6d7e8f9",
headers={"Authorization": "Bearer " + os.environ["SMARTCHAT_API_KEY"]},
params={
"limit": "20",
},
)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.smartchat.marketing/v1/contact-exports/exp_4d5e6f7a8b9c40d1e2f3a4b5c6d7e8f9?limit=20", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.SMARTCHAT_API_KEY}`,
},
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());Response (200):
{
"object": "contact_export",
"id": "exp_4d5e6f7a8b9c40d1e2f3a4b5c6d7e8f9",
"status": "completed",
"row_count": 1,
"truncated": false,
"columns": [
"id",
"name",
"phone",
"email",
"status",
"tags",
"created_at"
],
"created_at": "2026-10-25T09:41:07Z",
"expires_at": "2026-10-26T09:41:07Z",
"data": [
{
"id": "con_0f8c1a2e4b7d4c3e9a5b6d7e8f901234",
"name": "Mia Muster",
"phone": "+4915112345678",
"email": "mia@example.com",
"status": "unconfirmed",
"tags": [
"vip"
],
"created_at": "2026-10-25T09:41:07Z"
}
],
"has_more": false,
"next_cursor": null
}#Response
Status 200. Every response has the headers Request-Id, SmartChat-Version and X-RateLimit-*.
| Name | Type | Description |
|---|---|---|
object | string | Always "contact_export". always contact_export |
id | string | Export ID. |
status | string | State of the export. Exports are ready when the call returns. one of: completed |
row_count | integer | Number of contacts in the export. 0 to 1000000 |
truncated | boolean | True if more contacts matched than one export holds (50,000). Narrow the filters and export again. |
columns | array of string | Fields of each row. up to 20 items |
created_at | string | When the export was created. up to 40 characters; format date-time |
expires_at | string | When the export is removed (24 hours after creation). up to 40 characters; format date-time |
data | array of object | The rows of this page. Newest contact first. up to 100 items |
data[].id | string | Contact ID. |
data[].name | string or null | Name. Untrusted text. up to 2000 characters; untrusted text |
data[].phone | string or null | Phone number in E.164 format. |
data[].email | string or null | Email address. Untrusted text. up to 254 characters; untrusted text |
data[].status | string | Contact status. one of: confirmed, unconfirmed, opted_out, automation, support |
data[].tags | array of string | Tag names. Untrusted text. up to 100 items; untrusted text |
data[].created_at | string | When the contact was created. up to 40 characters; format date-time |
has_more | boolean | True if another page of rows exists. |
next_cursor | string or null | Pass this as 'cursor' to get the next page of rows. up to 300 characters |
#Errors
| Code | Status | When |
|---|---|---|
invalid_cursor | 400 | The cursor is expired, forged or belongs to other filters. |
unknown_parameter | 400 | A field is not known. |
api_key_expired | 401 | This API key has expired. |
api_key_invalid | 401 | This API key is not valid. |
api_key_revoked | 401 | This API key was revoked. |
authentication_required | 401 | No API key was sent. Send 'Authorization: Bearer <key>'. |
account_blocked | 403 | This account is blocked. |
insufficient_scope | 403 | This key lacks a required permission. |
ip_not_allowed | 403 | This IP address is not allowed for this key. |
export_not_found | 404 | No export with this ID exists in this account. |
validation_failed | 422 | A field is not valid. |
rate_limited | 429 | Too many requests. Wait and try again. |
internal_error | 500 | Something went wrong on our side. |
service_unavailable | 503 | The service is temporarily unavailable. |
All errors use one format.