Messages
Batch get message contents
Changed onGet the contents of multiple messages in a single request.
get/v1/messages/batch/content
Request
- Base URL: https://api.knock.app
- URL: https://api.knock.app/v1/messages/batch/content
- Auth: HTTP bearer
Query parameters
message_idsstring[] required
The IDs of the messages to fetch contents of.
Response
OK
Example response
[
{
"__typename": "MessageContent",
"data": {
"__typename": "MessageSmsContent",
"body": "URGENT: Power failure detected in perimeter fencing. Backup generators failed to engage. Technical team dispatched. Maintain lockdown protocols.",
"to": "+15553982647"
},
"inserted_at": "1993-06-11T20:30:00Z",
"message_id": "2w3YUpTTOxuDvZFji8OMsKrG176"
}
]Changes
- breaking
added the new required
queryrequest parametermessage_ids - warning
deleted the
queryrequest parametermessage_ids[]
- breaking