Get Forward Quotes
GET/accounts/:account_id/conversations/:conversation_id/messages/:message_id/forward_quotes
Returns the public incoming and outgoing messages before a given message, for building a quoted history when forwarding (mainly email).
Only the messages before the given message are returned, oldest first.
Private notes and activity messages are left out. Very long histories are cut
down to the most recent messages; send limit to get only the last few.
| Setting | Value |
|---|---|
| Method | GET |
| Path | /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/forward_quotes |
| Authorization | User token. |
Permissions:
- User token — any agent who can 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. |
message_id | integer | Yes | Message ID. The messages before this one are returned. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Return only the last N messages. |
Example request
curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40117/forward_quotes?limit=2' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'
Example response (200 OK)
{
"payload": [
{
"sender": {
"email": null,
"name": "Jane Agent",
"from_original": "Jane Agent <>"
},
"created_at": 1794470423,
"private": false,
"content": "How can we help?",
"html_content": null,
"forwarded": null
},
{
"sender": {
"email": null,
"name": "Jane Agent",
"from_original": "Jane Agent <>"
},
"created_at": 1794470424,
"private": false,
"content": "It will arrive tomorrow.",
"html_content": null,
"forwarded": null
}
]
}
Error responses: 404 {"error": "Message not found"}.
Request
Responses
- 200
- 401
- 403
- 404
The messages before the given message.
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 conversation or the message does not exist.