Create a new message for a request.
Messages are displayed in the Messages tab of the request detail page, alongside email and SMS logs.
Responses
-
Message created successfully
-
Bad Request -- Your request is invalid.
-
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.
POST
/requests/{requestId}/messages
curl \
--request POST 'https://api.usecollect.com/v1/requests/{requestId}/messages' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"text":"Here is the response generated by the agent...","title":"AI Agent - reply sent"}'
Request example
{
"text": "Here is the response generated by the agent...",
"title": "AI Agent - reply sent"
}
Response examples (201)
{
"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"
}