Skip to main content

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.

SettingValue
MethodPOST
Path/api/v1/accounts/{account_id}/conversations/{conversation_id}/transcript
AuthorizationUser 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

NameTypeRequiredDescription
account_idintegerYesAccount ID.
conversation_idintegerYesConversation display ID.

Body parameters (JSON)

NameTypeRequiredDescription
period.type_idstringYesWhich 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.fromintegerConditionalUnix timestamp, with type_id: custom.
emailstringConditionalRecipient. Required unless to_assignee is true or meta is true.
to_assigneebooleanNoSend to the conversation's assignee instead of email.
metabooleanNoReturn 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

StatusWhenBody
422email is missing, and neither to_assignee nor meta is true.{"error": "email param missing"}
429More than 30 transcript requests in an hour for the account (rate limit). See Rate limits.

Request​

Responses​

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.