Inbox · Messages

List messages

Returns messages, one page at a time.

GEThttps://api.pozy.ai/v1/inbox/conversations/{conversationId}/messages
getInboxConversationMessages

Guide: Messages

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the messages resource group disabled get 403 resource_group_disabled. Authentication

Path parameters

NameTypeNotes
conversationIdrequiredstring

Query parameters

NameTypeNotes
accountIdrequiredstring
limitintegerDefault 1001 to 100
cursorstring
sortOrderstringOne of asc, descDefault asc

Example

curl -X GET "https://api.pozy.ai/v1/inbox/conversations/6e525f3820fc636aa96d2ee9/messages?accountId=696e0b682d0a31188e7a2ba9&limit=100" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • statusstring
  • paginationobject
    • hasMoreboolean
    • nextCursorstring

      Can be null.

  • sortOrderAppliedstring

    One of asc, desc.

  • messagesarray of object
    29 child fields
    • idstring
    • conversationIdstring
    • accountIdstring
    • platformstring
    • messagestring
    • senderIdstring
    • senderNamestring

      Can be null.

    • senderVerifiedTypestring

      One of blue, government, business, none. Can be null.

    • directionstring

      One of incoming, outgoing.

    • createdAtstring (date-time)
    • attachmentsarray of object
      9 child fields
      • idstring
      • typestring

        One of image, video, audio, file, sticker, share, template, unsupported_type.

      • originalTypestring
      • mimeTypestring
      • urlstring
      • refreshUrlstring

        Can be null.

      • filenamestring

        Can be null.

      • previewUrlstring

        Can be null.

      • payloadobject
    • subjectstring

      Can be null.

    • storyReplyobject
      2 child fields
      • storyIdstring
      • storyUrlstring
    • isStoryMentionboolean
    • noRenderableContentboolean
    • isEditedboolean
    • editedAtstring (date-time)

      Can be null.

    • editCountinteger
    • editHistoryarray of object
      3 child fields
      • textstringrequired

        Can be null.

      • attachmentsarray of objectrequired
        3 child fields
        • typestring
        • urlstring
        • payloadobject
      • editedAtstring (date-time)required
    • isDeletedboolean
    • deletedAtstring (date-time)

      Can be null.

    • deliveryStatusstring

      One of sent, delivered, read, played, failed, deleted. Can be null.

    • deliveredAtstring (date-time)

      Can be null.

    • readAtstring (date-time)

      Can be null.

    • sentAtstring (date-time)

      Can be null.

    • deliveryErrorobject

      Can be null.

      5 child fields
      • codeinteger
      • titlestring
      • messagestring
      • detailsstring
      • hrefstring (URL)
    • reactionsarray of object
      3 child fields
      • emojistring
      • fromMeboolean
      • reactedAtstring (date-time)
    • metadataobject
    • sentViastring

      One of human, api, broadcast, sequence, workflow, comment_automation, bulk-api. Can be null.

  • lastUpdatedstring (date-time)
200 response
{
  "status": "active",
  "pagination": {
    "hasMore": true,
    "nextCursor": "string"
  },
  "sortOrderApplied": "asc",
  "messages": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "conversationId": "6e525f3820fc636aa96d2ee9",
      "accountId": "696e0b682d0a31188e7a2ba9",
      "platform": "instagram",
      "message": "Hello from Pozy",
      "senderId": "68ef6f94df13738fb25f1e94",
      "senderName": "Acme",
      "senderVerifiedType": "blue",
      "direction": "incoming",
      "createdAt": "2026-10-02T09:00:00.000Z",
      "attachments": [
        {
          "id": "6bfebd43ddc270f6d2c56fc5",
          "type": "image",
          "originalType": "string",
          "mimeType": "image/jpeg",
          "url": "https://pozy.ai/media/example-1.jpg",
          "refreshUrl": "https://pozy.ai/media/example-1.jpg",
          "filename": "photo.jpg",
          "previewUrl": "https://pozy.ai/media/example-1.jpg",
          "payload": {}
        }
      ],
      "subject": "string",
      "storyReply": {
        "storyId": "62c55df6d7c6e25c9304798b",
        "storyUrl": "https://pozy.ai/media/example-1.jpg"
      },
      "isStoryMention": true,
      "noRenderableContent": true,
      "isEdited": true,
      "editedAt": "2026-10-02T09:00:00.000Z",
      "editCount": 42,
      "editHistory": [
        {
          "text": "Hello from Pozy",
          "attachments": [
            {
              "type": "string",
              "url": "https://pozy.ai/media/example-1.jpg",
              "payload": {}
            }
          ],
          "editedAt": "2026-10-02T09:00:00.000Z"
        }
      ],
      "isDeleted": true,
      "deletedAt": "2026-10-02T09:00:00.000Z",
      "deliveryStatus": "sent",
      "deliveredAt": "2026-10-02T09:00:00.000Z",
      "readAt": "2026-10-02T09:00:00.000Z",
      "sentAt": "2026-10-02T09:00:00.000Z",
      "deliveryError": {
        "code": 1,
        "title": "Launch day",
        "message": "Hello from Pozy",
        "details": "string",
        "href": "https://pozy.ai/media/example-1.jpg"
      },
      "reactions": [
        {
          "emoji": "string",
          "fromMe": true,
          "reactedAt": "2026-10-02T09:00:00.000Z"
        }
      ],
      "metadata": {},
      "sentVia": "human"
    }
  ],
  "lastUpdated": "2026-10-02T09:00:00.000Z"
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Messages