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

# Get a conversation

> Get a conversation



## OpenAPI

````yaml openapi.json GET /v1/conversations/{conversationId}
openapi: 3.1.0
info:
  title: Watahub API
  version: 0.2.0
  description: >-
    Tenant API of Watahub, the multi-tenant WhatsApp Cloud API gateway.
    Authenticate every request with your API key as `Authorization: Bearer
    <key>` or `X-API-Key: <key>`.


    - Shapes the gateway owns are closed: no other field appears.

    - Records that come from Meta are open: documented fields are listed and any
    other field Meta adds is passed through.

    - The `/vN.N` proxy passes Meta's body and status through untouched; the
    version in the path is accepted and ignored.
servers:
  - url: https://cloud.watahub.dev
security:
  - bearerApiKey: []
  - headerApiKey: []
tags:
  - name: Messages
  - name: Media
  - name: Templates
  - name: Graph-compatible proxy
    description: >-
      Drop-in for Meta's Graph API on three routes. Meta's response is returned
      as is.
  - name: Phones
    description: Phones
  - name: Conversations
    description: Conversations
  - name: Connect
    description: Connect
  - name: Customers
    description: Customers
  - name: Webhooks
    description: Webhooks
  - name: Logs
    description: Logs
  - name: Health
    description: Health
  - name: Message templates
    description: >-
      Templates cached by the gateway per WABA; synced from Meta and required by
      broadcasts.
  - name: Broadcasts
    description: >-
      Send one approved template to up to 500 recipients; sending is queued and
      drained in the background.
paths:
  /v1/conversations/{conversationId}:
    parameters:
      - $ref: '#/components/parameters/ConversationId'
    get:
      tags:
        - Conversations
      summary: Get a conversation
      operationId: getConversation
      responses:
        '200':
          description: Conversation.
          content:
            application/json:
              schema:
                type: object
                required:
                  - conversation
                properties:
                  conversation:
                    $ref: '#/components/schemas/Conversation'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  parameters:
    ConversationId:
      name: conversationId
      in: path
      required: true
      description: URL-encoded `{phoneNumberId}:{waId}`.
      schema:
        type: string
  schemas:
    Conversation:
      type: object
      properties:
        id:
          type: string
          description: '`{phoneNumberId}:{waId}`; URL-encode it in paths.'
        phoneNumberId:
          type: string
          pattern: ^\d{1,32}$
        waId:
          type: string
        contactName:
          type:
            - string
            - 'null'
        assigneeEmail:
          type:
            - string
            - 'null'
          format: email
        updatedAt:
          type: integer
          format: int64
          description: Unix epoch milliseconds.
        lastMessage:
          $ref: '#/components/schemas/LastMessage'
    LastMessage:
      type:
        - object
        - 'null'
      properties:
        body:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
        direction:
          type:
            - string
            - 'null'
        createdAt:
          type: integer
          format: int64
          description: Unix epoch milliseconds.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PaymentRequired:
      description: Account requires payment.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found or not owned by this account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: >-
        Too many requests (account rate limit, 10 failed keys/min per IP, or 20
        setup links/hour).
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: Gateway paused, in maintenance, or Meta app not configured.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerApiKey:
      type: http
      scheme: bearer
      description: Tenant API key.
    headerApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Tenant API key.

````

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