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

# Get a conversation

> Retrieves a single conversation, including its transcript and recording when your token's role allows. Read-only tokens receive a reduced set of fields. Requires a token with read access.



## OpenAPI

````yaml /openapi.json get /core/conversations/{conversation_id}
openapi: 3.0.3
info:
  title: AnyReach API
  version: 1.0.0
  description: REST API for the AnyReach platform.
servers:
  - url: https://api.anyreach.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Conversations
    description: >-
      Create, list, retrieve, and message conversations between your users and
      AnyReach agents.
paths:
  /core/conversations/{conversation_id}:
    get:
      tags:
        - Conversations
      summary: Get a conversation
      description: >-
        Retrieves a single conversation, including its transcript and recording
        when your token's role allows. Read-only tokens receive a reduced set of
        fields. Requires a token with read access.
      operationId: getConversation
      parameters:
        - name: conversation_id
          in: path
          required: true
          schema:
            type: string
          description: The conversation's unique ID.
      responses:
        '200':
          description: The conversation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversation'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Conversation:
      type: object
      description: >-
        Fields marked sensitive are only returned to tokens whose role grants
        access to them.
      properties:
        id:
          type: string
          description: Unique conversation ID.
        organization_id:
          type: string
          description: Your organization ID.
        direction:
          $ref: '#/components/schemas/Direction'
        channel:
          $ref: '#/components/schemas/Channel'
        status:
          $ref: '#/components/schemas/Status'
        user_id:
          type: string
          description: The end user's identifier (a phone number for telephony).
        agent_id:
          type: string
          description: The agent handling the conversation.
        agent_version_id:
          type: string
          description: The specific agent version in use.
        agent_number:
          type: string
          description: The agent's phone number (telephony).
        web_widget_id:
          type: string
          nullable: true
          description: The web widget that originated the conversation, if any.
        duration:
          type: integer
          nullable: true
          description: Conversation length in seconds.
        user_turn_count:
          type: integer
          nullable: true
          description: Number of user turns.
        created_at:
          type: string
          format: date-time
          description: Creation timestamp.
        updated_at:
          type: string
          format: date-time
          description: Last-update timestamp.
        agent:
          type: object
          description: Sensitive. The handling agent.
          properties:
            id:
              type: string
            name:
              type: string
        summary:
          type: string
          description: Sensitive. Generated conversation summary.
        initial_context:
          type: string
          description: >-
            Sensitive. Context injected into the agent at the start of the
            conversation.
        custom_metadata:
          type: object
          additionalProperties: true
          nullable: true
          description: Sensitive. Metadata you attached when creating the conversation.
        conversation:
          type: object
          additionalProperties: true
          nullable: true
          description: Sensitive. The transcript.
        recording_details:
          type: object
          additionalProperties: true
          nullable: true
          description: >-
            Sensitive. Recording information, including a time-limited
            recording_url.
    Direction:
      type: string
      enum:
        - inbound
        - outbound
      description: Who initiated the conversation.
    Channel:
      type: string
      enum:
        - telephone
        - webrtc
        - email
        - text
      description: The conversation channel.
    Status:
      type: string
      enum:
        - token_created
        - triggered
        - ringing
        - in_progress
        - completed
        - failed
        - cancelled
        - transferred
        - unanswered
      description: Current state of the conversation.
    Error:
      type: object
      properties:
        detail:
          type: string
          description: A human-readable description of the error.
          example: Conversation not found
  responses:
    Forbidden:
      description: The token's role doesn't grant access to this action.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The conversation does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Personal access token. See Authentication.

````