Messages
Get message content
Returns the fully rendered contents of a message, where the response depends on which channel the message was sent through.
get/v1/messages/{message_id}/content
Request
- Base URL: https://api.knock.app
- URL: https://api.knock.app/v1/messages/{message_id}/content
- Auth: HTTP bearer
Path parameters
message_idstring required
The ID of the message 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
No recorded changes to this operation across all 64 revisions of this API.