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

# List archived chats

> Archived chats of the session, by latest message. Paginated: limit defaults to 20, maximum 100.



## OpenAPI

````yaml /api-reference/openapi.en.json get /api/v1/chats/archived
openapi: 3.1.0
info:
  title: D-API - Complete WhatsApp Infrastructure
  description: >-
    A scalable, robust solution for automation managers, SaaS products and end
    users who need a reliable WhatsApp integration. It offers multiple
    simultaneous instances, real-time webhooks, an intuitive dashboard and a
    documented REST API with 99.9% uptime and latency under 30ms.
  version: 1.2.1
  contact:
    name: Suporte D-API
    email: suporte@d-api.cloud
    url: https://d-api.cloud
servers:
  - url: https://api.d-api.cloud
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Home
    description: Base endpoints
  - name: Sessions
    description: Endpoints for managing sessions
  - name: Messages
    description: Endpoints for sending messages
  - name: Cloud API
    description: >-
      WhatsApp Official API (Meta Cloud API): manual connection, template
      management (list/create/delete) and template sending.
  - name: IVR Calls
    description: 'Voice call dispatch (IVR): single or bulk, with audio or an IVR flow.'
  - name: SMS
    description: 'SMS sending: single or bulk.'
  - name: Commands
    description: >-
      Look up asynchronous commands (async: true) by the commandId returned when
      enqueued.
paths:
  /api/v1/chats/archived:
    get:
      tags:
        - Chat
      summary: List archived chats
      description: >-
        Archived chats of the session, by latest message. Paginated: limit
        defaults to 20, maximum 100.
      operationId: getApiV1ChatsArchived
      parameters:
        - schema:
            minLength: 1
            type: string
          in: query
          name: sessionId
          required: true
        - schema:
            type: string
          in: query
          name: page
          required: false
        - schema:
            type: string
          in: query
          name: limit
          required: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              example:
                success: true
                data:
                  - id: 18234
                    chatId: 5511999999999@s.whatsapp.net
                    contact:
                      id: 991
                      phone: '5511999999999'
                      lid: 123456789@lid
                      pushName: Maria
                      profilePicture: https://...
                    chatName: Maria
                    unreadMessages: 0
                    isGroup: false
                    archived: true
                    pinned: false
                    muted: true
                    mutedUntil: '2026-11-14T22:37:25.024Z'
                    last_message_id: 554321
                    last_message_timestamp: '2026-11-14T14:20:11.000Z'
                    last_message_preview: oi
                    messagesUrl: /api/chats/18234/messages
                pagination:
                  page: 1
                  limit: 20
                  hasMore: false
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'API Key for authentication. Format: <API_KEY>'

````

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