Skip to main content

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.

SettingValue
MethodGET
Path/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/forward_quotes
AuthorizationUser token.

Permissions:

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
conversation_idintegerYesConversation display ID.
message_idintegerYesMessage ID. The messages before this one are returned.

Query parameters

NameTypeRequiredDescription
limitintegerNoReturn 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​

The messages before the given message.