Send Conversation Transcript
POST/accounts/:account_id/conversations/:conversation_id/transcript
Emails the conversation transcript (incoming and outgoing messages) to an address, or previews it.
With meta: true it only returns a preview (message count and first
message) without sending anything. Rate-limited to 30 transcript requests per
hour per account.
| Setting | Value |
|---|---|
| Method | POST |
| Path | /api/v1/accounts/{account_id}/conversations/{conversation_id}/transcript |
| Authorization | User token. New rules: Inbox send Transcript for the inbox. |
Permissions:
- User token: the caller must also be able to see the conversation — see Who can see a conversation.
- Agent-bot token: not allowed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
conversation_id | integer | Yes | Conversation display ID. |
Body parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
period.type_id | string | Yes | Which messages: all, today, h1 / h3 / h5 / h24 (last 1/3/5/24 hours), new (since the last transcript), custom (from period.from), last_ai_summary (only the last AI-summary note). |
period.from | integer | Conditional | Unix timestamp, with type_id: custom. |
email | string | Conditional | Recipient. Required unless to_assignee is true or meta is true. |
to_assignee | boolean | No | Send to the conversation's assignee instead of email. |
meta | boolean | No | Return a preview only. |
Example: preview
curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/transcript' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "period": { "type_id": "h24" }, "meta": true }'
Response (200 OK):
{
"count": 4,
"first": {
"content": "Hello, I have a question about my order.",
"created_at": 1794471000
}
}
Example: send by email
curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/transcript' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "period": { "type_id": "all" }, "email": "dana.cohen@example.com" }'
Response: 200 OK with an empty body. The email is sent in the background.
Error responses
| Status | When | Body |
|---|---|---|
422 | email is missing, and neither to_assignee nor meta is true. | {"error": "email param missing"} |
429 | More than 30 transcript requests in an hour for the account (rate limit). See Rate limits. |
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
The transcript is being emailed, and the response has an empty body. With meta: true, nothing is sent and the response is the preview below.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.
email is missing, and neither to_assignee nor meta is true.
The account sent more than 30 transcript requests in the last hour.