---
updatedAt: 2026-10-30T08:42:27.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Get messages

Get messages. GET /api/ext/v3/conversations/{target}/messages. The response includes the conversation's channel_id, which can be null if no channel ID was resolved.

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `conversationsv3:read`, `wati_integration:read`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.

For accepted identifier formats and 404 recovery, see [BSUID and Target Format](https://docs.wati.io/reference/bsuid-target-format). Use the conversation id from a relevant conversation result, not its contact_id; preserve BSUID/channel case and encode target as a single path segment.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "tags": [
    {
      "name": "Conversations",
      "description": "Send messages (text, file, interactive), manage conversation status and operator assignment."
    }
  ],
  "paths": {
    "/api/ext/v3/conversations/{target}/messages": {
      "get": {
        "tags": [
          "Conversations"
        ],
        "summary": "Get messages",
        "operationId": "Conversations_GetMessagesByConversationId",
        "parameters": [
          {
            "name": "target",
            "in": "path",
            "description": "Supported target formats for this conversation resolver:\n- ConversationId: the conversation's id, not a contact id. An object-id-shaped value is looked up as a conversation id; it does not fall back to a contact lookup.\n- PhoneNumber: the recipient number on the default channel.\n- Channel:PhoneNumber: the supported channel name/number and recipient number.\n- BSUID: the exact WhatsApp business-scoped identifier, where available for the workspace.\n- Channel:BSUID: the supported channel name/number and exact BSUID.\nPreserve BSUID/channel case and use the client URL encoder for one target path segment. See [BSUID and Target Format](https://docs.wati.io/reference/bsuid-target-format) for endpoint-family differences and identifier provenance.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page_number",
            "in": "query",
            "description": "Page number (1-based).",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Number of items per page (max 100).",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the message list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message_list": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ConversationEventDto"
                      },
                      "description": "The list of conversation message",
                      "nullable": true
                    },
                    "page_number": {
                      "type": "integer",
                      "description": "The current page number.",
                      "format": "int32"
                    },
                    "page_size": {
                      "type": "integer",
                      "description": "The number of items per page.",
                      "format": "int32"
                    },
                    "channel_id": {
                      "type": "string",
                      "description": "The ID of the channel the conversation belongs to; null when no channel ID is resolved.",
                      "nullable": true
                    }
                  },
                  "additionalProperties": false,
                  "description": "Response model for getting the message list."
                },
                "example": {
                  "message_list": [
                    {
                      "text": "Hello, this is a sample message!",
                      "type": "text",
                      "timestamp": "2026-07-14T16:15:38.3978844Z",
                      "owner": true,
                      "status": "delivered",
                      "avatar_url": "https://example.com/avatar.png",
                      "assigned_id": "6858f59a3374901cc1c8223f",
                      "operator_name": "John Doe",
                      "bot_type": "regular",
                      "local_message_id": "88aed3c93a050b3c53978463",
                      "id": "507f1f77bcf86cd799439011",
                      "created": "2026-07-14T16:15:38.3978836Z",
                      "conversation_id": "685bd235e6119686e693a093",
                      "ticket_id": "68aed3c93a050b3c53978463",
                      "event_type": "message"
                    }
                  ],
                  "page_number": 1,
                  "page_size": 10,
                  "channel_id": "507f1f77bcf86cd799439011"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "The request is unauthorized."
          },
          "403": {
            "description": "The request is forbidden. Authorization failed. Check the Permissions section for the credential-specific scope rules, and check roles and workspace access. The response may have no body; do not require a JSON error envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenRequestResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Either the rate limit has been exceeded or usage limits have been reached."
          },
          "500": {
            "description": "Unexpected error occurred. Please try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnexpectedErrorResponse"
                }
              }
            }
          }
        },
        "description": "Get messages. GET /api/ext/v3/conversations/{target}/messages. The response includes the conversation's channel_id, which can be null if no channel ID was resolved.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `conversationsv3:read`, `wati_integration:read`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.\n\nFor accepted identifier formats and 404 recovery, see [BSUID and Target Format](https://docs.wati.io/reference/bsuid-target-format). Use the conversation id from a relevant conversation result, not its contact_id; preserve BSUID/channel case and encode target as a single path segment.",
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "conversationsv3:read",
                "wati_integration:read"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "bc099ee025fac05201ff942ea683912ee165254f"
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ConversationEventDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the conversation event.",
            "nullable": true
          },
          "created": {
            "type": "string",
            "description": "The creation timestamp of the event.",
            "format": "date-time"
          },
          "conversation_id": {
            "type": "string",
            "description": "The associated conversation identifier.",
            "nullable": true
          },
          "ticket_id": {
            "type": "string",
            "description": "The associated ticket identifier.",
            "nullable": true
          },
          "event_type": {
            "type": "string",
            "description": "The type of event (e.g., message, ticket, broadcast).",
            "nullable": true
          }
        },
        "additionalProperties": true,
        "description": "Base conversation event. Message, ticket, and broadcast events can include additional fields specific to their event type."
      },
      "ForbiddenRequestResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents the result of a forbidden request, containing error details."
      },
      "InvalidRequestResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents the result of a bad request, containing error details."
      },
      "UnexpectedErrorResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents an unexpected error."
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```