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

# Marcar como leída

> Marca la conversación como leída hasta su último mensaje entrante: pone `unread_count` en 0 para todo el workspace, también en el inbox de Gluu. No lleva body y no cambia nada en el teléfono del contacto.

Requiere una clave `full`.



## OpenAPI

````yaml /openapi.yaml post /conversations/{id}/read
openapi: 3.1.0
info:
  title: API de Gluu
  version: '1.0'
  description: >-
    Manda y recibe mensajes de WhatsApp desde tu sistema, arma tu propio inbox
    con las conversaciones y los contactos del workspace, y recibe webhooks
    cuando algo cambia.
servers:
  - url: https://api.wegluu.com/v1
    description: Producción
security:
  - apiKey: []
tags:
  - name: Mensajes
    description: Envía cualquier tipo de mensaje de WhatsApp y consulta su estado.
  - name: Archivos
    description: Sube archivos o impórtalos desde una URL para enviarlos.
  - name: Conversaciones
    description: La lista de chats, su historial, respuestas y lectura.
  - name: Contactos
    description: Los contactos del workspace y su identidad de WhatsApp.
  - name: Equipo
    description: Los usuarios del workspace.
  - name: Canales
    description: Los canales conectados al workspace.
  - name: Plantillas
    description: Las plantillas de WhatsApp de cada canal.
  - name: Webhooks
    description: Eventos que Gluu manda a tu servidor.
paths:
  /conversations/{id}/read:
    post:
      tags:
        - Conversaciones
      summary: Marcar como leída
      description: >-
        Marca la conversación como leída hasta su último mensaje entrante: pone
        `unread_count` en 0 para todo el workspace, también en el inbox de Gluu.
        No lleva body y no cambia nada en el teléfono del contacto.


        Requiere una clave `full`.
      operationId: markConversationRead
      parameters:
        - $ref: '#/components/parameters/ConversationId'
      responses:
        '200':
          description: La conversación, con `unread_count` en 0.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/ConversationNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    ConversationId:
      name: id
      in: path
      required: true
      description: Id de Gluu de la conversación.
      schema:
        type: string
        format: uuid
  schemas:
    ConversationResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/Conversation'
    Conversation:
      allOf:
        - type: object
          required:
            - id
            - platform
            - status
            - assigned_user_id
            - unread_count
            - last_message
            - created_at
            - updated_at
            - gluu
          properties:
            id:
              type: string
              format: uuid
            platform:
              type: string
              const: whatsapp
            status:
              type: string
              enum:
                - active
                - closed
                - archived
            contact_name:
              type:
                - string
                - 'null'
            assigned_user_id:
              type:
                - string
                - 'null'
              format: uuid
            unread_count:
              type: integer
              description: Mensajes entrantes sin leer.
            last_message:
              type:
                - object
                - 'null'
              description: >-
                Resumen del último mensaje. El mensaje completo sale del
                historial.
              properties:
                id:
                  type: string
                  format: uuid
                type:
                  type: string
                direction:
                  type: string
                  enum:
                    - inbound
                    - outbound
                content:
                  type:
                    - string
                    - 'null'
                timestamp:
                  type:
                    - string
                    - 'null'
            created_at:
              type: string
              format: date-time
            updated_at:
              type: string
              format: date-time
              description: >-
                Cambia con cada mensaje y con cada cambio de estado o asignación
                hecho en Gluu.
            gluu:
              type: object
              properties:
                channel_id:
                  type: string
                  format: uuid
                contact_id:
                  type:
                    - string
                    - 'null'
                  format: uuid
        - $ref: '#/components/schemas/WhatsappIdentity'
    Error:
      type: object
      required:
        - code
        - message
        - request_id
      properties:
        code:
          type: string
          description: Código estable del error, en minúsculas. Programa contra este campo.
        message:
          type: string
          description: Explicación para personas. Puede cambiar.
        request_id:
          type: string
          description: Id de la llamada. Compártelo si escribes a soporte.
        errors:
          type: array
          description: Presente en `validation_error`, con un elemento por campo inválido.
          items:
            type: object
            required:
              - field
              - message
            properties:
              field:
                type: string
              message:
                type: string
        details:
          type: object
          additionalProperties: true
          description: >-
            Datos extra de algunos errores, por ejemplo `missing` en
            `template_variable_missing`.
    WhatsappIdentity:
      type: object
      properties:
        phone_number:
          type:
            - string
            - 'null'
          description: Teléfono, solo dígitos. `null` si el contacto no lo comparte.
        business_scoped_user_id:
          type:
            - string
            - 'null'
          description: BSUID.
        parent_business_scoped_user_id:
          type:
            - string
            - 'null'
          description: BSUID padre.
        username:
          type:
            - string
            - 'null'
          description: Usuario de WhatsApp. Puede cambiar.
  responses:
    Unauthorized:
      description: Falta la clave de API, no existe o fue revocada (`unauthorized`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: unauthorized
            message: La clave de API no existe o fue revocada.
            request_id: 0193a1c9-51de-7d02-8a44-6f0e2b7c9d31
    Forbidden:
      description: La clave no tiene permiso para esta operación (`forbidden`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: forbidden
            message: Esta clave de API no tiene permiso para mandar mensajes.
            request_id: 0193a1c9-51de-7d02-8a44-6f0e2b7c9d31
    ConversationNotFound:
      description: >-
        No hay una conversación de WhatsApp con ese id en el workspace
        (`conversation_not_found`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: conversation_not_found
            message: No hay una conversación con ese id en este workspace.
            request_id: 0193a1c9-51de-7d02-8a44-6f0e2b7c9d31
    RateLimited:
      description: >-
        Superaste el límite de 120 llamadas por minuto con esta clave
        (`rate_limited`).
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: rate_limited
            message: Superaste el límite de 120 llamadas por minuto con esta clave.
            request_id: 0193a1c9-51de-7d02-8a44-6f0e2b7c9d31
  headers:
    Retry-After:
      description: Segundos que conviene esperar antes de reintentar.
      schema:
        type: integer
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        Clave de API del workspace, con el formato `gluu_live_…`. Créala en
        Configuración → Desarrolladores. Permisos: `full` (todo), `send_only`
        (leer, enviar y subir archivos) y `read_only` (solo leer).

````

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