> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wappigate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mark a message as read

> Tell WhatsApp your integration has read a received message (blue ticks for the customer), via the authorized channel. Call it only when your system really handled the message; nothing is sent automatically. In a 1:1 chat earlier messages are marked read too; in a group, mark each message. Set typing=true to also show the typing indicator while you prepare a reply. The message must be received within the last 30 days.

Authentication: API key via X-API-Key header (or Authorization: Bearer).
Permissions: User API key
Rate limit: api_messaging — 20 requests/min per API user.



## OpenAPI

````yaml /api-reference/workspace.openapi.json post /api/workspace/v1/whatsapp/message/read
openapi: 3.1.0
info:
  title: Workspace API
  version: 1.0.0
  description: >-
    Manage contacts, labels, custom fields, WhatsApp messaging, and automations
    for your workspace.


    Generate your API key in the Developer Portal (profile menu → Developer) and
    send it in the `X-API-Key` header, or as `Authorization: Bearer <key>`.
    Never put the key in the URL.


    Every endpoint accepts POST with a JSON body, and also accepts GET with the
    same parameters as query-string values. All responses use the envelope `{
    success, data?, message?, error? }`.
servers:
  - url: https://YOUR_DOMAIN
    description: Your deployment, for example https://app.example.com
security: []
tags:
  - name: Channels
    description: Workspace API — Channels
  - name: Contacts
    description: Workspace API — Contacts
  - name: Custom Fields
    description: Workspace API — Custom Fields
  - name: Labels
    description: Workspace API — Labels
  - name: WhatsApp
    description: Workspace API — WhatsApp
  - name: Email
    description: Workspace API — Email
  - name: Automations
    description: Workspace API — Automations
paths:
  /api/workspace/v1/whatsapp/message/read:
    post:
      tags:
        - WhatsApp
      summary: Mark a message as read
      description: >-
        Tell WhatsApp your integration has read a received message (blue ticks
        for the customer), via the authorized channel. Call it only when your
        system really handled the message; nothing is sent automatically. In a
        1:1 chat earlier messages are marked read too; in a group, mark each
        message. Set typing=true to also show the typing indicator while you
        prepare a reply. The message must be received within the last 30 days.


        Authentication: API key via X-API-Key header (or Authorization: Bearer).

        Permissions: User API key

        Rate limit: api_messaging — 20 requests/min per API user.
      parameters:
        - name: channelId
          in: query
          required: false
          description: Channel id. Auto-selects when omitted.
          schema:
            type: string
            example: ch_123
        - name: messageId
          in: query
          required: false
          description: >-
            WhatsApp message id (WAMID) of a received message, e.g.
            wamid.HBgM...AA==
          schema:
            type: string
            example: YOUR_MESSAGEID
        - name: typing
          in: query
          required: false
          description: >-
            true also shows the typing indicator (it disappears after 25 seconds
            or when you send a reply).
          schema:
            type: boolean
            example: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - messageId
              properties:
                channelId:
                  type: string
                  description: Channel id. Auto-selects when omitted.
                  example: ch_123
                messageId:
                  type: string
                  description: >-
                    WhatsApp message id (WAMID) of a received message, e.g.
                    wamid.HBgM...AA==
                  example: YOUR_MESSAGEID
                typing:
                  type: boolean
                  description: >-
                    true also shows the typing indicator (it disappears after 25
                    seconds or when you send a reply).
                  example: false
            example:
              channelId: ch_123
              messageId: wamid.HBgM...AA==
      responses:
        '200':
          description: 'Success. Envelope: { success:true, data, message? }.'
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                properties:
                  success:
                    type: boolean
                    example: true
                  data: {}
                  message:
                    type: string
                  pagination:
                    type: object
                  total:
                    type: number
              example:
                success: true
                data:
                  channelId: ch_123
                  messageId: wamid.HBgM...AA==
                  typing: false
                message: Message marked as read
        '400':
          description: >-
            Missing/invalid parameters. Body has success:false plus error and
            message.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                  message:
                    type: string
        '401':
          description: >-
            Missing or invalid API key (or session expired for session
            endpoints).
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                  message:
                    type: string
        '403':
          description: >-
            Authenticated but not authorized — wrong permissions or cross-tenant
            resource.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                  message:
                    type: string
        '404':
          description: >-
            No received message with this WAMID in a WhatsApp conversation of
            the channel.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                  message:
                    type: string
        '429':
          description: >-
            Rate limited. Retry after the Retry-After seconds; see RateLimit-*
            headers.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                  message:
                    type: string
        '500':
          description: >-
            Unexpected server error. Body has success:false plus error and
            message.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                  message:
                    type: string
        '502':
          description: WhatsApp did not accept the read receipt.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - error
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                  message:
                    type: string
      security:
        - apiKeyHeader: []
        - bearerAuth: []
components:
  securitySchemes:
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: Preferred. API key value directly.
    bearerAuth:
      type: http
      scheme: bearer
      description: Alternative. API key as the bearer token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.