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

# Get a conversation

> Returns one conversation with its contact. Pass include=messages to also get the latest messages, oldest first, in the same call.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/conversations/{id}
openapi: 3.0.0
info:
  title: Flowella REST API
  version: 2.1.0
  description: >-
    Public v1 HTTP API for Flowella. Authenticate with `Authorization: Bearer
    <api_key>` (`flo_` prefix) or an OAuth access token (`fla_` prefix).
    Canonical base: `https://api.flowella.io/v1`. Legacy
    `https://app.flowella.io/api/v1/...` requests are permanently redirected
    (308) to the canonical host, preserving method and body.
servers:
  - url: https://api.flowella.io
    description: Canonical API host
  - url: https://app.flowella.io
    description: Legacy app host — /api/v1 permanently redirects (308) to the API host /v1
security: []
tags:
  - name: System
    description: Health and auth checks
  - name: Account
    description: Credential and organisation details
  - name: Messages
    description: Send WhatsApp messages
  - name: Conversations
    description: Inbox conversations
  - name: Contacts
    description: CRM contacts
  - name: Templates
    description: WhatsApp templates and bulk send
  - name: Analytics
    description: Usage and delivery metrics
paths:
  /v1/conversations/{id}:
    get:
      tags:
        - Conversations
      summary: Get a conversation
      description: >-
        Returns one conversation with its contact. Pass include=messages to also
        get the latest messages, oldest first, in the same call.
      operationId: v1GetConversation
      parameters:
        - schema:
            type: string
            minLength: 1
          required: true
          name: id
          in: path
          description: Resource id.
        - schema:
            type: string
            enum:
              - messages
            description: Pass messages to include the latest messages, oldest first.
          required: false
          description: Pass messages to include the latest messages, oldest first.
          name: include
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
            description: How many recent messages to include, 1 to 100. Default 20.
          required: false
          description: How many recent messages to include, 1 to 100. Default 20.
          name: messagesLimit
          in: query
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                    enum:
                      - OPEN
                      - CLOSED
                      - PENDING
                      - ARCHIVED
                      - SNOOZED
                  lastMessageAt:
                    type: string
                    nullable: true
                  lastInboundAt:
                    type: string
                    nullable: true
                    description: >-
                      Last message the contact sent. Free-form messages are
                      allowed for 24 hours after this.
                  createdAt:
                    type: string
                  whatsappChannelId:
                    type: string
                  contact:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                        nullable: true
                      phone:
                        type: string
                      waId:
                        type: string
                        nullable: true
                    required:
                      - id
                      - name
                      - phone
                      - waId
                  messages:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        conversationId:
                          type: string
                        direction:
                          type: string
                        type:
                          type: string
                        status:
                          type: string
                          enum:
                            - PENDING
                            - SENT
                            - DELIVERED
                            - READ
                            - FAILED
                            - HELD
                        body:
                          type: string
                          nullable: true
                        metaMessageId:
                          type: string
                          nullable: true
                        createdAt:
                          type: string
                        updatedAt:
                          type: string
                        mediaUrl:
                          type: string
                          nullable: true
                        statusTimeline:
                          type: array
                          items:
                            type: object
                            properties:
                              status:
                                type: string
                              at:
                                type: string
                            required:
                              - status
                              - at
                      required:
                        - id
                        - conversationId
                        - direction
                        - type
                        - status
                        - body
                        - metaMessageId
                        - createdAt
                        - updatedAt
                        - statusTimeline
                    description: Present only with include=messages. Oldest first.
                required:
                  - id
                  - status
                  - lastMessageAt
                  - createdAt
                  - whatsappChannelId
                  - contact
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      requestId:
                        type: string
                      details:
                        nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
                description: >-
                  Machine codes include INVALID_TEMPLATE_NAME and
                  INVALID_TEMPLATE_COMPONENTS. requestId is copied from
                  X-Request-Id when present.
                example:
                  error:
                    code: INVALID_TEMPLATE_COMPONENTS
                    message: INVALID_TEMPLATE_COMPONENTS
                    requestId: req_019abc
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      requestId:
                        type: string
                      details:
                        nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
                description: >-
                  Machine codes include INVALID_TEMPLATE_NAME and
                  INVALID_TEMPLATE_COMPONENTS. requestId is copied from
                  X-Request-Id when present.
                example:
                  error:
                    code: INVALID_TEMPLATE_COMPONENTS
                    message: INVALID_TEMPLATE_COMPONENTS
                    requestId: req_019abc
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: >-
        Organization API key (`flo_…`) or OAuth access token (`fla_…`). Paste
        the full token; Scalar sends `Authorization: Bearer <token>`.

````

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