Retrieve all messages for a request, sorted by createdAt descending. Each message includes a channel field (internal, email, or sms). Internal messages use the title/text format; email and SMS messages use the title/body/status/sendOn format.
Query parameters
-
Filter by channel (internal, email, or sms). If omitted, returns all messages across all channels.
Values are
internal,email, orsms.
Responses
-
List of messages for the request
-
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.
curl \
--request GET 'https://api.usecollect.com/v1/requests/{requestId}/messages' \
--user "username:password"
[
{
"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"
}
]