Retrieve all messages for a request, sorted by creation date (newest first).
Messages are displayed in the Messages tab of the request detail page, alongside email and SMS logs.
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.
GET
/requests/{requestId}/messages
curl \
--request GET 'https://api.usecollect.com/v1/requests/{requestId}/messages' \
--user "username:password"
Response examples (200)
[
{
"id": "msg_123",
"text": "Here is the response generated by the agent...",
"title": "AI Agent - reply sent",
"createdAt": "2026-01-21T10:12:46Z",
"requestId": "req_456",
"updatedAt": "2026-01-21T10:12:46Z"
},
{
"id": "msg_124",
"text": "All checks passed successfully.",
"title": "Validation completed",
"createdAt": "2026-01-21T09:30:15Z",
"requestId": "req_456",
"updatedAt": "2026-01-21T09:30:15Z"
}
]