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

# Read a conversation's transcript, oldest turn first

> Emits a PHI-disclosure audit event.

GET /v1/conversations/{conversation}/messages



## OpenAPI

````yaml /openapi/v1.json get /conversations/{conversation}/messages
openapi: 3.1.0
info:
  title: HASP AI API
  version: '2026-07-12'
  description: >-
    The HASP Public AI API is the regulated-AI substrate for healthcare and
    other

    regulated industries — identity, policy, audit, compliance, and PHI handling

    for AI inference, exposed via two surfaces:


    - **Native (`/v1/ai/*`)**: HASP-native chat with full event taxonomy, run
    lifecycle,
      and PHI metadata.
    - **Anthropic-compat (`/v1/messages`)**: Drop-in replacement for
    `@anthropic-ai/sdk` —
      change only `baseURL`. All Gateway compliance checks (BAA, credits, PHI policy) apply.

    All requests require an API key (`Authorization: Bearer
    hasp_api_live_<key>`). See

    [Authentication](https://docs.usehasp.com/ai-api/authentication) for key
    management.
servers:
  - url: https://api.usehasp.com/v1
    description: Production
security:
  - http: []
paths:
  /conversations/{conversation}/messages:
    get:
      tags:
        - ConversationMessages
      summary: Read a conversation's transcript, oldest turn first
      description: |-
        Emits a PHI-disclosure audit event.

        GET /v1/conversations/{conversation}/messages
      operationId: v1.conversations.messages
      parameters:
        - name: conversation
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A page of messages, oldest first.
          content:
            application/json:
              schema:
                type: object
                examples:
                  - data:
                      - object: conversation_message
                        id: msg_01JQREQ7XZQK5N6PZ1VVXHYB8T
                        role: user
                        content: Summarize this intake form.
                        model: null
                        feedback: null
                        citations: null
                        input_tokens: null
                        output_tokens: null
                        created_at: '2026-07-27T12:00:00Z'
                    meta:
                      next_cursor: null
                      has_more: false
                properties:
                  data:
                    type: array
                    items: {}
                  meta:
                    type: object
                    properties:
                      next_cursor:
                        type: string
                      has_more:
                        type: boolean
                    required:
                      - next_cursor
                      - has_more
                required:
                  - data
                  - meta
        '401':
          description: Bearer token is missing, malformed, or revoked.
          content:
            application/json:
              schema:
                type: object
                example:
                  success: false
                  error:
                    type: authentication
                    code: INVALID_API_KEY
                    message: Bearer token is missing, malformed, or revoked.
                    param: null
                    details: null
                    retryable: false
                    request_id: 01JQREQ7XZQK5N6PZ1VVXHYB8T
                  meta:
                    request_id: 01JQREQ7XZQK5N6PZ1VVXHYB8T
        '403':
          description: >-
            The caller is authenticated but lacks the scope or capability this
            route requires.
          content:
            application/json:
              schema:
                type: object
                example:
                  success: false
                  error:
                    type: permission
                    code: MISSING_SCOPE
                    message: >-
                      The caller is authenticated but lacks the scope or
                      capability this route requires.
                    param: null
                    details: null
                    retryable: false
                    request_id: 01JQREQ7XZQK5N6PZ1VVXHYB8T
                  meta:
                    request_id: 01JQREQ7XZQK5N6PZ1VVXHYB8T
        '404':
          description: ''
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      success:
                        type: boolean
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                          code:
                            type: string
                          message:
                            type: string
                            const: Conversation not found.
                          param:
                            type: 'null'
                          details:
                            type:
                              - string
                              - 'null'
                          retryable:
                            type: boolean
                          request_id:
                            type: string
                        required:
                          - type
                          - code
                          - message
                          - param
                          - details
                          - retryable
                          - request_id
                      meta:
                        type: object
                        properties:
                          request_id:
                            type: string
                        required:
                          - request_id
                      errors:
                        type: string
                    required:
                      - success
                      - error
                      - meta
                      - errors
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          message:
                            type: string
                            const: Conversation not found.
                          type:
                            type: string
                            enum:
                              - authentication_error
                              - permission_error
                              - invalid_request_error
                              - not_found_error
                              - rate_limit_error
                              - api_error
                          param:
                            type: 'null'
                          code:
                            type: string
                          hasp_code:
                            type: string
                          hasp_details:
                            type: string
                        required:
                          - message
                          - type
                          - param
                          - code
                          - hasp_code
                          - hasp_details
                    required:
                      - error
                  - type: object
                    properties:
                      type:
                        type: string
                        const: error
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - authentication_error
                              - permission_error
                              - invalid_request_error
                              - not_found_error
                              - rate_limit_error
                              - api_error
                              - overloaded_error
                          message:
                            type: string
                            const: Conversation not found.
                          hasp_code:
                            type: string
                          hasp_request_id:
                            type: string
                          hasp_details:
                            type: string
                        required:
                          - type
                          - message
                          - hasp_code
                          - hasp_request_id
                          - hasp_details
                    required:
                      - type
                      - error
components:
  securitySchemes:
    http:
      type: http
      scheme: bearer

````