Conversations

Get conversation messages

Changed on

List all messages for a conversation.

get/conversations/{id}/messages

Request

  • Base URL
    https://api.superchat.com/v1.0
  • URL
    https://api.superchat.com/v1.0/conversations/{id}/messages
  • Auth
    API key in header X-API-KEY

Path parameters

idstring required

Public ID of the conversation.

Query parameters

afterstring nullable

Return messages after this message ID.

beforestring nullable

Return messages before this message ID.

created_afterstring nullable

Only return messages created after this ISO 8601 timestamp.

created_beforestring nullable

Only return messages created before this ISO 8601 timestamp.

direction'INBOUND' | 'OUTBOUND' nullable

Only return messages with this direction.

limitinteger

Maximum number of messages to return.

Response

OK

urlstring required

Example response

{
  "results": [
    {
      "created_at": "2022-03-10T16:15:50Z",
      "updated_at": "2022-03-10T16:15:50Z"
    }
  ]
}

Changes