Get messages by conversation id.
Request
Provide your bearer token in the Authorization header when making requests to protected resources.
Path Parameters
Conversation ID as string
Query Parameters
Message ID of the last message in the list as a string
Number of messages to be fetched from the conversation. Default limit is 20
Types of message to fetched separated with comma
Headers
Access Token
API Version
Responses
200
Successful response
Body
Id of the last message in the messages array
Next page value true indicates only 20 message is in the response. Rest of the messages are in the next page. Please use the lastMessageId value in the query to get the next page messages
Array of messages
Type of the message as a string
An array of attachment URLs. Attachments will be empty for Call and Voicemails, type 1 and 10. Please use get call recording API to fetch call recording and voicemails.
Call duration in seconds
Call status - can be pending, completed, answered, busy, no-answer, failed, canceled, or voicemail
meta will contain email, for message type 3 (email). messageIds is list of all email message ids under the message thread
Message source
User Id
Conversation Provider Id
422
Unprocessable Entity
Body
401
Unauthorized
Body
400
Bad Request