Retrieve a specific message by ID. Works for all channels (internal, email, SMS). The response format depends on the channel — internal messages use title/text/updatedAt; email and SMS use title/body/status/sendOn (see Message schema and POST response examples).
Responses
-
Message details (format depends on channel)
-
Unauthorized -- Your API key is wrong.
-
Forbidden -- The object requested is hidden for administrators only.
-
Not Found -- The specified object could not be found.
-
Too Many Requests -- You're requesting too many objects! Slow down!
-
Internal Server Error -- We had a problem with our server. Try again later.
-
Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
GET
/requests/{requestId}/messages/{messageId}
curl \
--request GET 'https://api.usecollect.com/v1/requests/{requestId}/messages/{messageId}' \
--user "username:password"
Response examples (200)
Internal
{
"id": "msg_123",
"text": "Here is the response generated by the agent...",
"title": "AI Agent - reply sent",
"channel": "internal",
"createdAt": "2026-01-21T10:12:46Z",
"requestId": "req_456",
"updatedAt": "2026-01-21T10:12:46Z"
}
{
"id": "msg_124",
"body": "Your message body",
"title": "Your email subject",
"sendOn": "2026-02-06T10:00:00Z",
"status": "pending",
"channel": "email",
"createdAt": "2026-02-06T09:00:00Z",
"requestId": "req_456"
}