Skip to main content
GET
/
threads
/
{threadId}
/
messages
List messages
curl --request GET \
  --url https://inboxapp.com/api/v1/threads/{threadId}/messages
{
  "teamId": "<string>",
  "threadId": "<string>",
  "messages": [
    {
      "platform": "twitter",
      "teamId": "<string>",
      "threadId": "<string>",
      "id": "<string>",
      "userId": "df6jbw4h36...",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "platformId": "1234567890",
      "content": "<string>",
      "campaignId": "df6jbw4h36...",
      "authorId": "<string>",
      "origin": "internal",
      "replyData": "<unknown>",
      "entities": "<unknown>",
      "attachment": "<unknown>",
      "reactions": [
        "<unknown>"
      ]
    }
  ],
  "nextCursor": {
    "timestamp": "2023-11-07T05:31:56Z",
    "id": "<string>"
  }
}

Path Parameters

threadId
string
required

The ID of the thread to list messages from.

Query Parameters

cursor
object

Pagination cursor. Omit to start from the beginning. Use the nextCursor returned from the previous response to fetch the next page.

limit
integer
default:50

Maximum number of messages to return per page. Defaults to 50, maximum 100.

Required range: 1 <= x <= 100

Response

200 - application/json

OK

teamId
string
required
threadId
string
required
messages
object[]
required
nextCursor
object
required