numbers

Get messages for a specific phone number.

Newest first. Pass the previous response's nextCursor as cursor to walk older history without skipping or repeating records, even when several messages share a timestamp. before/after timestamp filters are still accepted.

get/v1/numbers/{number_id}/messages

Request

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

Path parameters

number_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

    • info

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