Messages

Get messages from a chat

Retrieve messages from a specific chat with pagination support.

get/v3/chats/{chatId}/messages

Request

  • Base URL: https://api.linqapp.com/api/partner
  • URL: https://api.linqapp.com/api/partner/v3/chats/{chatId}/messages
  • Auth: HTTP bearer

Path parameters

chatIdstring uuid required
Example:550e8400-e29b-41d4-a716-446655440000

Unique identifier of the chat

Query parameters

cursorstring

Pagination cursor from previous next_cursor response

limitinteger

Maximum number of messages to return

Response

Messages retrieved successfully

next_cursorstring nullable

Cursor for fetching the next page of results. Null if there are no more results to fetch. Pass this value as the cursor parameter in the next request.

Example response

{
  "messages": [
    {
      "id": "69a37c7d-af4f-4b5e-af42-e28e98ce873a",
      "chat_id": "94c6bf33-31d9-40e3-a0e9-f94250ecedb9",
      "service": "iMessage",
      "preferred_service": "iMessage",
      "from": "+12052535597",
      "from_handle": {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "handle": "+15551234567",
        "service": "iMessage",
        "joined_at": "2025-05-21T15:30:00.000-05:00",
        "line_type": "iMessage"
      },
      "parts": [
        {
          "type": "text",
          "value": "Hello!"
        }
      ],
      "reply_to": {
        "message_id": "550e8400-e29b-41d4-a716-446655440000"
      },
      "is_from_me": true,
      "is_delivered": true,
      "delivery_status": "pending",
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T10:30:00Z",
      "sent_at": "2024-01-15T10:30:05Z",
      "delivered_at": "2024-01-15T10:30:10Z",
      "read_at": "2024-01-15T10:35:00Z",
      "reconciled_at": "2024-01-15T14:05:00Z",
      "effect": {
        "type": "screen",
        "name": "confetti"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.