conversations

Get Conversation Messages

Changed on

Get paginated messages for a conversation.

Each page is returned oldest-first. Pass the previous response's nextCursor as cursor to load older history without skipping or repeating records, even when several messages share a timestamp. before/after timestamp filters are still accepted.

get/v1/conversations/{conversation_id}/messages

Request

  • Base URL
    https://api.agentphone.ai
  • URL
    https://api.agentphone.ai/v1/conversations/{conversation_id}/messages
  • Auth
    HTTP bearer

Path parameters

conversation_idstring required

Query parameters

limitinteger
beforestring date-time nullable
afterstring date-time nullable
cursorstring nullable

Opaque cursor from a previous response's nextCursor. Takes precedence over before/after.

Response

Successful Response

hasMoreboolean required
nextCursorstring nullable

Changes

    • warning

      for the query request parameter limit, the min was set to 1.00

    • info

      added the new optional query request parameter cursor

    • info

      added the optional property to the response with the status

    • info

      added the optional property // to the response with the status