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

# Mark chat as unread

> Marks a chat as unread.



## OpenAPI

````yaml openapi.evolution-v2.json POST /chat/markChatUnread/{instance}
openapi: 3.1.0
info:
  title: Evolution V2 Layer
  version: 1.0.0
  description: >-
    Pilot Status API Layer — Evolution V2. Base URL
    `https://pilotstatus.com.br/api/layer/evolution-v2`. Authenticate with the
    `apikey` header (your Pilot Status `ps_` key). Instance/session endpoints
    are NOT available through the layer.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-v2
security:
  - apiKey: []
tags:
  - name: Call & Business
  - name: Chat
  - name: Group
  - name: Label
  - name: Message
  - name: Profile
  - name: Settings & Proxy
  - name: Storage (S3)
  - name: Template
paths:
  /chat/markChatUnread/{instance}:
    post:
      tags:
        - Chat
      summary: Mark chat as unread
      description: Marks a chat as unread.
      operationId: post__chat_markChatUnread_instance
      parameters:
        - name: instance
          in: path
          required: true
          schema:
            type: string
          description: The number's display name in the Pilot Status dashboard.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                lastMessage:
                  type: object
                  description: Reference to the chat's last message.
                  example:
                    key:
                      id: BAE5F5A632EAE722
                      remoteJid: 5511999999999@s.whatsapp.net
                      fromMe: false
                    messageTimestamp: 1720540800
                lastMessage.key:
                  type: object
                  description: Message key with `id`, `remoteJid`, `fromMe`.
                lastMessage.messageTimestamp:
                  type: integer
                  description: Unix timestamp of the last message.
                chat:
                  type: string
                  description: Chat JID to mark unread.
                  example: 5511999999999@s.whatsapp.net
              required:
                - lastMessage
                - lastMessage.key
      responses:
        '200':
          description: Success — provider-native response body.
          content:
            application/json:
              schema:
                type: object
                properties:
                  chatId:
                    type: string
                    description: RemoteJid of the chat that was marked unread.
                  markedChatUnread:
                    type: boolean
                    description: Whether the chat was successfully marked as unread.
                required:
                  - chatId
                  - markedChatUnread
              example:
                chatId: 5511999999999@s.whatsapp.net
                markedChatUnread: true
        default:
          description: Error — provider or layer error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  response:
                    type: object
              example:
                status: 400
                error: Bad Request
                message: Invalid payload
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Your Pilot Status API key (ps_...). Evolution GO also accepts
        `Authorization: Bearer <key>`.

````