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

# Report Anthropic

> Record request logs from Anthropic models



## OpenAPI

````yaml post /report-anthropic
openapi: 3.0.3
info:
  title: OpenPipe API
  description: The public API for reporting API calls to OpenPipe
  version: 0.1.1
servers:
  - url: https://api.openpipe.ai/api/v1
security: []
paths:
  /report-anthropic:
    post:
      description: Record request logs from Anthropic models
      operationId: reportAnthropic
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                requestedAt:
                  type: number
                  description: Unix timestamp in milliseconds
                receivedAt:
                  type: number
                  description: Unix timestamp in milliseconds
                reqPayload:
                  anyOf:
                    - type: object
                      properties:
                        max_tokens:
                          type: number
                        messages:
                          type: array
                          items:
                            type: object
                            properties:
                              content:
                                anyOf:
                                  - type: string
                                  - type: array
                                    items:
                                      anyOf:
                                        - type: object
                                          properties:
                                            text:
                                              type: string
                                            type:
                                              type: string
                                              enum:
                                                - text
                                            cache_control:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - ephemeral
                                                  required:
                                                    - type
                                                  additionalProperties: false
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                            citations:
                                              type: array
                                              items:
                                                anyOf:
                                                  - type: object
                                                    properties:
                                                      cited_text:
                                                        type: string
                                                      document_index:
                                                        type: number
                                                      document_title:
                                                        type: string
                                                        nullable: true
                                                      end_char_index:
                                                        type: number
                                                      start_char_index:
                                                        type: number
                                                      type:
                                                        type: string
                                                        enum:
                                                          - char_location
                                                    required:
                                                      - cited_text
                                                      - document_index
                                                      - document_title
                                                      - end_char_index
                                                      - start_char_index
                                                      - type
                                                    additionalProperties: false
                                                  - type: object
                                                    properties:
                                                      cited_text:
                                                        type: string
                                                      document_index:
                                                        type: number
                                                      document_title:
                                                        type: string
                                                        nullable: true
                                                      end_page_number:
                                                        type: number
                                                      start_page_number:
                                                        type: number
                                                      type:
                                                        type: string
                                                        enum:
                                                          - page_location
                                                    required:
                                                      - cited_text
                                                      - document_index
                                                      - document_title
                                                      - end_page_number
                                                      - start_page_number
                                                      - type
                                                    additionalProperties: false
                                                  - type: object
                                                    properties:
                                                      cited_text:
                                                        type: string
                                                      document_index:
                                                        type: number
                                                      document_title:
                                                        type: string
                                                        nullable: true
                                                      end_block_index:
                                                        type: number
                                                      start_block_index:
                                                        type: number
                                                      type:
                                                        type: string
                                                        enum:
                                                          - content_block_location
                                                    required:
                                                      - cited_text
                                                      - document_index
                                                      - document_title
                                                      - end_block_index
                                                      - start_block_index
                                                      - type
                                                    additionalProperties: false
                                              nullable: true
                                          required:
                                            - text
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            source:
                                              type: object
                                              properties:
                                                data:
                                                  type: string
                                                media_type:
                                                  anyOf:
                                                    - type: string
                                                      enum:
                                                        - image/jpeg
                                                    - type: string
                                                      enum:
                                                        - image/png
                                                    - type: string
                                                      enum:
                                                        - image/gif
                                                    - type: string
                                                      enum:
                                                        - image/webp
                                                type:
                                                  type: string
                                                  enum:
                                                    - base64
                                              required:
                                                - data
                                                - media_type
                                                - type
                                              additionalProperties: false
                                            type:
                                              type: string
                                              enum:
                                                - image
                                            cache_control:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - ephemeral
                                                  required:
                                                    - type
                                                  additionalProperties: false
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                          required:
                                            - source
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            id:
                                              type: string
                                            input: {}
                                            name:
                                              type: string
                                            type:
                                              type: string
                                              enum:
                                                - tool_use
                                            cache_control:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - ephemeral
                                                  required:
                                                    - type
                                                  additionalProperties: false
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                          required:
                                            - id
                                            - name
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            tool_use_id:
                                              type: string
                                            type:
                                              type: string
                                              enum:
                                                - tool_result
                                            content:
                                              anyOf:
                                                - type: string
                                                - type: array
                                                  items:
                                                    anyOf:
                                                      - type: object
                                                        properties:
                                                          text:
                                                            type: string
                                                          type:
                                                            type: string
                                                            enum:
                                                              - text
                                                          cache_control:
                                                            anyOf:
                                                              - type: object
                                                                properties:
                                                                  type:
                                                                    type: string
                                                                    enum:
                                                                      - ephemeral
                                                                required:
                                                                  - type
                                                                additionalProperties: false
                                                              - enum:
                                                                  - 'null'
                                                                nullable: true
                                                          citations:
                                                            type: array
                                                            items:
                                                              anyOf:
                                                                - type: object
                                                                  properties:
                                                                    cited_text:
                                                                      type: {}
                                                                    document_index:
                                                                      type: {}
                                                                    document_title:
                                                                      type: {}
                                                                      nullable: {}
                                                                    end_char_index:
                                                                      type: {}
                                                                    start_char_index:
                                                                      type: {}
                                                                    type:
                                                                      type: {}
                                                                      enum: {}
                                                                  required:
                                                                    - cited_text
                                                                    - document_index
                                                                    - document_title
                                                                    - end_char_index
                                                                    - start_char_index
                                                                    - type
                                                                  additionalProperties: false
                                                                - type: object
                                                                  properties:
                                                                    cited_text:
                                                                      type: {}
                                                                    document_index:
                                                                      type: {}
                                                                    document_title:
                                                                      type: {}
                                                                      nullable: {}
                                                                    end_page_number:
                                                                      type: {}
                                                                    start_page_number:
                                                                      type: {}
                                                                    type:
                                                                      type: {}
                                                                      enum: {}
                                                                  required:
                                                                    - cited_text
                                                                    - document_index
                                                                    - document_title
                                                                    - end_page_number
                                                                    - start_page_number
                                                                    - type
                                                                  additionalProperties: false
                                                                - type: object
                                                                  properties:
                                                                    cited_text:
                                                                      type: {}
                                                                    document_index:
                                                                      type: {}
                                                                    document_title:
                                                                      type: {}
                                                                      nullable: {}
                                                                    end_block_index:
                                                                      type: {}
                                                                    start_block_index:
                                                                      type: {}
                                                                    type:
                                                                      type: {}
                                                                      enum: {}
                                                                  required:
                                                                    - cited_text
                                                                    - document_index
                                                                    - document_title
                                                                    - end_block_index
                                                                    - start_block_index
                                                                    - type
                                                                  additionalProperties: false
                                                            nullable: true
                                                        required:
                                                          - text
                                                          - type
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          source:
                                                            type: object
                                                            properties:
                                                              data:
                                                                type: string
                                                              media_type:
                                                                anyOf:
                                                                  - type: string
                                                                    enum:
                                                                      - image/jpeg
                                                                  - type: string
                                                                    enum:
                                                                      - image/png
                                                                  - type: string
                                                                    enum:
                                                                      - image/gif
                                                                  - type: string
                                                                    enum:
                                                                      - image/webp
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - base64
                                                            required:
                                                              - data
                                                              - media_type
                                                              - type
                                                            additionalProperties: false
                                                          type:
                                                            type: string
                                                            enum:
                                                              - image
                                                          cache_control:
                                                            anyOf:
                                                              - type: object
                                                                properties:
                                                                  type:
                                                                    type: string
                                                                    enum:
                                                                      - ephemeral
                                                                required:
                                                                  - type
                                                                additionalProperties: false
                                                              - enum:
                                                                  - 'null'
                                                                nullable: true
                                                        required:
                                                          - source
                                                          - type
                                                        additionalProperties: false
                                            is_error:
                                              type: boolean
                                            cache_control:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - ephemeral
                                                  required:
                                                    - type
                                                  additionalProperties: false
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                          required:
                                            - tool_use_id
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            source:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    data:
                                                      type: string
                                                    media_type:
                                                      type: string
                                                      enum:
                                                        - application/pdf
                                                    type:
                                                      type: string
                                                      enum:
                                                        - base64
                                                  required:
                                                    - data
                                                    - media_type
                                                    - type
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    data:
                                                      type: string
                                                    media_type:
                                                      type: string
                                                      enum:
                                                        - text/plain
                                                    type:
                                                      type: string
                                                      enum:
                                                        - text
                                                  required:
                                                    - data
                                                    - media_type
                                                    - type
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    content:
                                                      anyOf:
                                                        - type: string
                                                        - type: array
                                                          items:
                                                            anyOf:
                                                              - type: object
                                                                properties:
                                                                  text:
                                                                    type: string
                                                                  type:
                                                                    type: string
                                                                    enum:
                                                                      - text
                                                                  cache_control:
                                                                    anyOf:
                                                                      - {}
                                                                      - {}
                                                                  citations:
                                                                    type: array
                                                                    items:
                                                                      anyOf: {}
                                                                    nullable: true
                                                                required:
                                                                  - text
                                                                  - type
                                                                additionalProperties: false
                                                              - type: object
                                                                properties:
                                                                  source:
                                                                    type: object
                                                                    properties:
                                                                      data: {}
                                                                      media_type: {}
                                                                      type: {}
                                                                    required:
                                                                      - data
                                                                      - media_type
                                                                      - type
                                                                    additionalProperties: false
                                                                  type:
                                                                    type: string
                                                                    enum:
                                                                      - image
                                                                  cache_control:
                                                                    anyOf:
                                                                      - {}
                                                                      - {}
                                                                required:
                                                                  - source
                                                                  - type
                                                                additionalProperties: false
                                                    type:
                                                      type: string
                                                      enum:
                                                        - content
                                                  required:
                                                    - content
                                                    - type
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - url
                                                    url:
                                                      type: string
                                                  required:
                                                    - type
                                                    - url
                                                  additionalProperties: false
                                            type:
                                              type: string
                                              enum:
                                                - document
                                            cache_control:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - ephemeral
                                                  required:
                                                    - type
                                                  additionalProperties: false
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                            citations:
                                              type: object
                                              properties:
                                                enabled:
                                                  type: boolean
                                              additionalProperties: false
                                            context:
                                              anyOf:
                                                - type: string
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                            title:
                                              anyOf:
                                                - type: string
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                          required:
                                            - source
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            thinking:
                                              type: string
                                            signature:
                                              type: string
                                            type:
                                              type: string
                                              enum:
                                                - thinking
                                          required:
                                            - thinking
                                            - signature
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            data:
                                              type: string
                                            type:
                                              type: string
                                              enum:
                                                - redacted_thinking
                                          required:
                                            - data
                                            - type
                                          additionalProperties: false
                              role:
                                anyOf:
                                  - type: string
                                    enum:
                                      - user
                                  - type: string
                                    enum:
                                      - assistant
                            required:
                              - content
                              - role
                            additionalProperties: false
                        model:
                          type: string
                        metadata:
                          type: object
                          properties:
                            user_id:
                              anyOf:
                                - type: string
                                - enum:
                                    - 'null'
                                  nullable: true
                          additionalProperties: false
                        stop_sequences:
                          type: array
                          items:
                            type: string
                        stream:
                          type: boolean
                          enum:
                            - true
                        system:
                          anyOf:
                            - type: string
                            - type: array
                              items:
                                type: object
                                properties:
                                  text:
                                    type: string
                                  type:
                                    type: string
                                    enum:
                                      - text
                                  cache_control:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ephemeral
                                        required:
                                          - type
                                        additionalProperties: false
                                      - enum:
                                          - 'null'
                                        nullable: true
                                  citations:
                                    type: array
                                    items:
                                      anyOf:
                                        - type: object
                                          properties:
                                            cited_text:
                                              type: string
                                            document_index:
                                              type: number
                                            document_title:
                                              type: string
                                              nullable: true
                                            end_char_index:
                                              type: number
                                            start_char_index:
                                              type: number
                                            type:
                                              type: string
                                              enum:
                                                - char_location
                                          required:
                                            - cited_text
                                            - document_index
                                            - document_title
                                            - end_char_index
                                            - start_char_index
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            cited_text:
                                              type: string
                                            document_index:
                                              type: number
                                            document_title:
                                              type: string
                                              nullable: true
                                            end_page_number:
                                              type: number
                                            start_page_number:
                                              type: number
                                            type:
                                              type: string
                                              enum:
                                                - page_location
                                          required:
                                            - cited_text
                                            - document_index
                                            - document_title
                                            - end_page_number
                                            - start_page_number
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            cited_text:
                                              type: string
                                            document_index:
                                              type: number
                                            document_title:
                                              type: string
                                              nullable: true
                                            end_block_index:
                                              type: number
                                            start_block_index:
                                              type: number
                                            type:
                                              type: string
                                              enum:
                                                - content_block_location
                                          required:
                                            - cited_text
                                            - document_index
                                            - document_title
                                            - end_block_index
                                            - start_block_index
                                            - type
                                          additionalProperties: false
                                    nullable: true
                                required:
                                  - text
                                  - type
                                additionalProperties: false
                        temperature:
                          type: number
                        top_k:
                          type: number
                        top_p:
                          type: number
                        thinking:
                          anyOf:
                            - type: object
                              properties:
                                budget_tokens:
                                  type: number
                                type:
                                  type: string
                                  enum:
                                    - enabled
                              required:
                                - budget_tokens
                                - type
                              additionalProperties: false
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - disabled
                              required:
                                - type
                              additionalProperties: false
                        tool_choice:
                          anyOf:
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - auto
                                disable_parallel_tool_use:
                                  type: boolean
                              required:
                                - type
                              additionalProperties: false
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - any
                                disable_parallel_tool_use:
                                  type: boolean
                              required:
                                - type
                              additionalProperties: false
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - tool
                                name:
                                  type: string
                                disable_parallel_tool_use:
                                  type: boolean
                              required:
                                - type
                                - name
                              additionalProperties: false
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - none
                              required:
                                - type
                              additionalProperties: false
                        tools:
                          type: array
                          items:
                            anyOf:
                              - type: object
                                properties:
                                  name:
                                    type: string
                                  input_schema:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - object
                                      properties: {}
                                    required:
                                      - type
                                    additionalProperties: true
                                  description:
                                    type: string
                                  cache_control:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ephemeral
                                        required:
                                          - type
                                        additionalProperties: false
                                      - enum:
                                          - 'null'
                                        nullable: true
                                required:
                                  - name
                                  - input_schema
                                additionalProperties: false
                              - type: object
                                properties:
                                  name:
                                    type: string
                                    enum:
                                      - bash
                                  type:
                                    type: string
                                    enum:
                                      - bash_20250124
                                  cache_control:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ephemeral
                                        required:
                                          - type
                                        additionalProperties: false
                                      - enum:
                                          - 'null'
                                        nullable: true
                                required:
                                  - name
                                  - type
                                additionalProperties: false
                              - type: object
                                properties:
                                  name:
                                    type: string
                                    enum:
                                      - str_replace_editor
                                  type:
                                    type: string
                                    enum:
                                      - text_editor_20250124
                                  cache_control:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ephemeral
                                        required:
                                          - type
                                        additionalProperties: false
                                      - enum:
                                          - 'null'
                                        nullable: true
                                required:
                                  - name
                                  - type
                                additionalProperties: false
                      required:
                        - max_tokens
                        - messages
                        - model
                        - stream
                      additionalProperties: true
                    - type: object
                      properties:
                        max_tokens:
                          type: number
                        messages:
                          type: array
                          items:
                            type: object
                            properties:
                              content:
                                anyOf:
                                  - type: string
                                  - type: array
                                    items:
                                      anyOf:
                                        - type: object
                                          properties:
                                            text:
                                              type: string
                                            type:
                                              type: string
                                              enum:
                                                - text
                                            cache_control:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - ephemeral
                                                  required:
                                                    - type
                                                  additionalProperties: false
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                            citations:
                                              type: array
                                              items:
                                                anyOf:
                                                  - type: object
                                                    properties:
                                                      cited_text:
                                                        type: string
                                                      document_index:
                                                        type: number
                                                      document_title:
                                                        type: string
                                                        nullable: true
                                                      end_char_index:
                                                        type: number
                                                      start_char_index:
                                                        type: number
                                                      type:
                                                        type: string
                                                        enum:
                                                          - char_location
                                                    required:
                                                      - cited_text
                                                      - document_index
                                                      - document_title
                                                      - end_char_index
                                                      - start_char_index
                                                      - type
                                                    additionalProperties: false
                                                  - type: object
                                                    properties:
                                                      cited_text:
                                                        type: string
                                                      document_index:
                                                        type: number
                                                      document_title:
                                                        type: string
                                                        nullable: true
                                                      end_page_number:
                                                        type: number
                                                      start_page_number:
                                                        type: number
                                                      type:
                                                        type: string
                                                        enum:
                                                          - page_location
                                                    required:
                                                      - cited_text
                                                      - document_index
                                                      - document_title
                                                      - end_page_number
                                                      - start_page_number
                                                      - type
                                                    additionalProperties: false
                                                  - type: object
                                                    properties:
                                                      cited_text:
                                                        type: string
                                                      document_index:
                                                        type: number
                                                      document_title:
                                                        type: string
                                                        nullable: true
                                                      end_block_index:
                                                        type: number
                                                      start_block_index:
                                                        type: number
                                                      type:
                                                        type: string
                                                        enum:
                                                          - content_block_location
                                                    required:
                                                      - cited_text
                                                      - document_index
                                                      - document_title
                                                      - end_block_index
                                                      - start_block_index
                                                      - type
                                                    additionalProperties: false
                                              nullable: true
                                          required:
                                            - text
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            source:
                                              type: object
                                              properties:
                                                data:
                                                  type: string
                                                media_type:
                                                  anyOf:
                                                    - type: string
                                                      enum:
                                                        - image/jpeg
                                                    - type: string
                                                      enum:
                                                        - image/png
                                                    - type: string
                                                      enum:
                                                        - image/gif
                                                    - type: string
                                                      enum:
                                                        - image/webp
                                                type:
                                                  type: string
                                                  enum:
                                                    - base64
                                              required:
                                                - data
                                                - media_type
                                                - type
                                              additionalProperties: false
                                            type:
                                              type: string
                                              enum:
                                                - image
                                            cache_control:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - ephemeral
                                                  required:
                                                    - type
                                                  additionalProperties: false
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                          required:
                                            - source
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            id:
                                              type: string
                                            input: {}
                                            name:
                                              type: string
                                            type:
                                              type: string
                                              enum:
                                                - tool_use
                                            cache_control:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - ephemeral
                                                  required:
                                                    - type
                                                  additionalProperties: false
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                          required:
                                            - id
                                            - name
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            tool_use_id:
                                              type: string
                                            type:
                                              type: string
                                              enum:
                                                - tool_result
                                            content:
                                              anyOf:
                                                - type: string
                                                - type: array
                                                  items:
                                                    anyOf:
                                                      - type: object
                                                        properties:
                                                          text:
                                                            type: string
                                                          type:
                                                            type: string
                                                            enum:
                                                              - text
                                                          cache_control:
                                                            anyOf:
                                                              - type: object
                                                                properties:
                                                                  type:
                                                                    type: string
                                                                    enum:
                                                                      - ephemeral
                                                                required:
                                                                  - type
                                                                additionalProperties: false
                                                              - enum:
                                                                  - 'null'
                                                                nullable: true
                                                          citations:
                                                            type: array
                                                            items:
                                                              anyOf:
                                                                - type: object
                                                                  properties:
                                                                    cited_text:
                                                                      type: {}
                                                                    document_index:
                                                                      type: {}
                                                                    document_title:
                                                                      type: {}
                                                                      nullable: {}
                                                                    end_char_index:
                                                                      type: {}
                                                                    start_char_index:
                                                                      type: {}
                                                                    type:
                                                                      type: {}
                                                                      enum: {}
                                                                  required:
                                                                    - cited_text
                                                                    - document_index
                                                                    - document_title
                                                                    - end_char_index
                                                                    - start_char_index
                                                                    - type
                                                                  additionalProperties: false
                                                                - type: object
                                                                  properties:
                                                                    cited_text:
                                                                      type: {}
                                                                    document_index:
                                                                      type: {}
                                                                    document_title:
                                                                      type: {}
                                                                      nullable: {}
                                                                    end_page_number:
                                                                      type: {}
                                                                    start_page_number:
                                                                      type: {}
                                                                    type:
                                                                      type: {}
                                                                      enum: {}
                                                                  required:
                                                                    - cited_text
                                                                    - document_index
                                                                    - document_title
                                                                    - end_page_number
                                                                    - start_page_number
                                                                    - type
                                                                  additionalProperties: false
                                                                - type: object
                                                                  properties:
                                                                    cited_text:
                                                                      type: {}
                                                                    document_index:
                                                                      type: {}
                                                                    document_title:
                                                                      type: {}
                                                                      nullable: {}
                                                                    end_block_index:
                                                                      type: {}
                                                                    start_block_index:
                                                                      type: {}
                                                                    type:
                                                                      type: {}
                                                                      enum: {}
                                                                  required:
                                                                    - cited_text
                                                                    - document_index
                                                                    - document_title
                                                                    - end_block_index
                                                                    - start_block_index
                                                                    - type
                                                                  additionalProperties: false
                                                            nullable: true
                                                        required:
                                                          - text
                                                          - type
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          source:
                                                            type: object
                                                            properties:
                                                              data:
                                                                type: string
                                                              media_type:
                                                                anyOf:
                                                                  - type: string
                                                                    enum:
                                                                      - image/jpeg
                                                                  - type: string
                                                                    enum:
                                                                      - image/png
                                                                  - type: string
                                                                    enum:
                                                                      - image/gif
                                                                  - type: string
                                                                    enum:
                                                                      - image/webp
                                                              type:
                                                                type: string
                                                                enum:
                                                                  - base64
                                                            required:
                                                              - data
                                                              - media_type
                                                              - type
                                                            additionalProperties: false
                                                          type:
                                                            type: string
                                                            enum:
                                                              - image
                                                          cache_control:
                                                            anyOf:
                                                              - type: object
                                                                properties:
                                                                  type:
                                                                    type: string
                                                                    enum:
                                                                      - ephemeral
                                                                required:
                                                                  - type
                                                                additionalProperties: false
                                                              - enum:
                                                                  - 'null'
                                                                nullable: true
                                                        required:
                                                          - source
                                                          - type
                                                        additionalProperties: false
                                            is_error:
                                              type: boolean
                                            cache_control:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - ephemeral
                                                  required:
                                                    - type
                                                  additionalProperties: false
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                          required:
                                            - tool_use_id
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            source:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    data:
                                                      type: string
                                                    media_type:
                                                      type: string
                                                      enum:
                                                        - application/pdf
                                                    type:
                                                      type: string
                                                      enum:
                                                        - base64
                                                  required:
                                                    - data
                                                    - media_type
                                                    - type
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    data:
                                                      type: string
                                                    media_type:
                                                      type: string
                                                      enum:
                                                        - text/plain
                                                    type:
                                                      type: string
                                                      enum:
                                                        - text
                                                  required:
                                                    - data
                                                    - media_type
                                                    - type
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    content:
                                                      anyOf:
                                                        - type: string
                                                        - type: array
                                                          items:
                                                            anyOf:
                                                              - type: object
                                                                properties:
                                                                  text:
                                                                    type: string
                                                                  type:
                                                                    type: string
                                                                    enum:
                                                                      - text
                                                                  cache_control:
                                                                    anyOf:
                                                                      - {}
                                                                      - {}
                                                                  citations:
                                                                    type: array
                                                                    items:
                                                                      anyOf: {}
                                                                    nullable: true
                                                                required:
                                                                  - text
                                                                  - type
                                                                additionalProperties: false
                                                              - type: object
                                                                properties:
                                                                  source:
                                                                    type: object
                                                                    properties:
                                                                      data: {}
                                                                      media_type: {}
                                                                      type: {}
                                                                    required:
                                                                      - data
                                                                      - media_type
                                                                      - type
                                                                    additionalProperties: false
                                                                  type:
                                                                    type: string
                                                                    enum:
                                                                      - image
                                                                  cache_control:
                                                                    anyOf:
                                                                      - {}
                                                                      - {}
                                                                required:
                                                                  - source
                                                                  - type
                                                                additionalProperties: false
                                                    type:
                                                      type: string
                                                      enum:
                                                        - content
                                                  required:
                                                    - content
                                                    - type
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - url
                                                    url:
                                                      type: string
                                                  required:
                                                    - type
                                                    - url
                                                  additionalProperties: false
                                            type:
                                              type: string
                                              enum:
                                                - document
                                            cache_control:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    type:
                                                      type: string
                                                      enum:
                                                        - ephemeral
                                                  required:
                                                    - type
                                                  additionalProperties: false
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                            citations:
                                              type: object
                                              properties:
                                                enabled:
                                                  type: boolean
                                              additionalProperties: false
                                            context:
                                              anyOf:
                                                - type: string
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                            title:
                                              anyOf:
                                                - type: string
                                                - enum:
                                                    - 'null'
                                                  nullable: true
                                          required:
                                            - source
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            thinking:
                                              type: string
                                            signature:
                                              type: string
                                            type:
                                              type: string
                                              enum:
                                                - thinking
                                          required:
                                            - thinking
                                            - signature
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            data:
                                              type: string
                                            type:
                                              type: string
                                              enum:
                                                - redacted_thinking
                                          required:
                                            - data
                                            - type
                                          additionalProperties: false
                              role:
                                anyOf:
                                  - type: string
                                    enum:
                                      - user
                                  - type: string
                                    enum:
                                      - assistant
                            required:
                              - content
                              - role
                            additionalProperties: false
                        model:
                          type: string
                        metadata:
                          type: object
                          properties:
                            user_id:
                              anyOf:
                                - type: string
                                - enum:
                                    - 'null'
                                  nullable: true
                          additionalProperties: false
                        stop_sequences:
                          type: array
                          items:
                            type: string
                        stream:
                          type: boolean
                          enum:
                            - false
                          default: false
                        system:
                          anyOf:
                            - type: string
                            - type: array
                              items:
                                type: object
                                properties:
                                  text:
                                    type: string
                                  type:
                                    type: string
                                    enum:
                                      - text
                                  cache_control:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ephemeral
                                        required:
                                          - type
                                        additionalProperties: false
                                      - enum:
                                          - 'null'
                                        nullable: true
                                  citations:
                                    type: array
                                    items:
                                      anyOf:
                                        - type: object
                                          properties:
                                            cited_text:
                                              type: string
                                            document_index:
                                              type: number
                                            document_title:
                                              type: string
                                              nullable: true
                                            end_char_index:
                                              type: number
                                            start_char_index:
                                              type: number
                                            type:
                                              type: string
                                              enum:
                                                - char_location
                                          required:
                                            - cited_text
                                            - document_index
                                            - document_title
                                            - end_char_index
                                            - start_char_index
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            cited_text:
                                              type: string
                                            document_index:
                                              type: number
                                            document_title:
                                              type: string
                                              nullable: true
                                            end_page_number:
                                              type: number
                                            start_page_number:
                                              type: number
                                            type:
                                              type: string
                                              enum:
                                                - page_location
                                          required:
                                            - cited_text
                                            - document_index
                                            - document_title
                                            - end_page_number
                                            - start_page_number
                                            - type
                                          additionalProperties: false
                                        - type: object
                                          properties:
                                            cited_text:
                                              type: string
                                            document_index:
                                              type: number
                                            document_title:
                                              type: string
                                              nullable: true
                                            end_block_index:
                                              type: number
                                            start_block_index:
                                              type: number
                                            type:
                                              type: string
                                              enum:
                                                - content_block_location
                                          required:
                                            - cited_text
                                            - document_index
                                            - document_title
                                            - end_block_index
                                            - start_block_index
                                            - type
                                          additionalProperties: false
                                    nullable: true
                                required:
                                  - text
                                  - type
                                additionalProperties: false
                        temperature:
                          type: number
                        top_k:
                          type: number
                        top_p:
                          type: number
                        thinking:
                          anyOf:
                            - type: object
                              properties:
                                budget_tokens:
                                  type: number
                                type:
                                  type: string
                                  enum:
                                    - enabled
                              required:
                                - budget_tokens
                                - type
                              additionalProperties: false
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - disabled
                              required:
                                - type
                              additionalProperties: false
                        tool_choice:
                          anyOf:
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - auto
                                disable_parallel_tool_use:
                                  type: boolean
                              required:
                                - type
                              additionalProperties: false
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - any
                                disable_parallel_tool_use:
                                  type: boolean
                              required:
                                - type
                              additionalProperties: false
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - tool
                                name:
                                  type: string
                                disable_parallel_tool_use:
                                  type: boolean
                              required:
                                - type
                                - name
                              additionalProperties: false
                            - type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - none
                              required:
                                - type
                              additionalProperties: false
                        tools:
                          type: array
                          items:
                            anyOf:
                              - type: object
                                properties:
                                  name:
                                    type: string
                                  input_schema:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - object
                                      properties: {}
                                    required:
                                      - type
                                    additionalProperties: true
                                  description:
                                    type: string
                                  cache_control:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ephemeral
                                        required:
                                          - type
                                        additionalProperties: false
                                      - enum:
                                          - 'null'
                                        nullable: true
                                required:
                                  - name
                                  - input_schema
                                additionalProperties: false
                              - type: object
                                properties:
                                  name:
                                    type: string
                                    enum:
                                      - bash
                                  type:
                                    type: string
                                    enum:
                                      - bash_20250124
                                  cache_control:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ephemeral
                                        required:
                                          - type
                                        additionalProperties: false
                                      - enum:
                                          - 'null'
                                        nullable: true
                                required:
                                  - name
                                  - type
                                additionalProperties: false
                              - type: object
                                properties:
                                  name:
                                    type: string
                                    enum:
                                      - str_replace_editor
                                  type:
                                    type: string
                                    enum:
                                      - text_editor_20250124
                                  cache_control:
                                    anyOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            enum:
                                              - ephemeral
                                        required:
                                          - type
                                        additionalProperties: false
                                      - enum:
                                          - 'null'
                                        nullable: true
                                required:
                                  - name
                                  - type
                                additionalProperties: false
                      required:
                        - max_tokens
                        - messages
                        - model
                      additionalProperties: true
                  description: JSON-encoded request payload
                respPayload:
                  type: object
                  properties:
                    id:
                      type: string
                    content:
                      type: array
                      items:
                        anyOf:
                          - type: object
                            properties:
                              text:
                                type: string
                              type:
                                type: string
                                enum:
                                  - text
                              citations:
                                type: array
                                items:
                                  anyOf:
                                    - type: object
                                      properties:
                                        cited_text:
                                          type: string
                                        document_index:
                                          type: number
                                        document_title:
                                          type: string
                                          nullable: true
                                        end_char_index:
                                          type: number
                                        start_char_index:
                                          type: number
                                        type:
                                          type: string
                                          enum:
                                            - char_location
                                      required:
                                        - cited_text
                                        - document_index
                                        - document_title
                                        - end_char_index
                                        - start_char_index
                                        - type
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        cited_text:
                                          type: string
                                        document_index:
                                          type: number
                                        document_title:
                                          type: string
                                          nullable: true
                                        end_page_number:
                                          type: number
                                        start_page_number:
                                          type: number
                                        type:
                                          type: string
                                          enum:
                                            - page_location
                                      required:
                                        - cited_text
                                        - document_index
                                        - document_title
                                        - end_page_number
                                        - start_page_number
                                        - type
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        cited_text:
                                          type: string
                                        document_index:
                                          type: number
                                        document_title:
                                          type: string
                                          nullable: true
                                        end_block_index:
                                          type: number
                                        start_block_index:
                                          type: number
                                        type:
                                          type: string
                                          enum:
                                            - content_block_location
                                      required:
                                        - cited_text
                                        - document_index
                                        - document_title
                                        - end_block_index
                                        - start_block_index
                                        - type
                                      additionalProperties: false
                                nullable: true
                                default: null
                            required:
                              - text
                              - type
                            additionalProperties: false
                          - type: object
                            properties:
                              id:
                                type: string
                              name:
                                type: string
                              type:
                                type: string
                                enum:
                                  - tool_use
                              input: {}
                            required:
                              - id
                              - name
                              - type
                            additionalProperties: false
                          - type: object
                            properties:
                              thinking:
                                type: string
                              signature:
                                type: string
                              type:
                                type: string
                                enum:
                                  - thinking
                            required:
                              - thinking
                              - signature
                              - type
                            additionalProperties: false
                          - type: object
                            properties:
                              data:
                                type: string
                              type:
                                type: string
                                enum:
                                  - redacted_thinking
                            required:
                              - data
                              - type
                            additionalProperties: false
                    model:
                      type: string
                    role:
                      type: string
                      enum:
                        - assistant
                    stop_reason:
                      anyOf:
                        - type: string
                          enum:
                            - end_turn
                        - type: string
                          enum:
                            - max_tokens
                        - type: string
                          enum:
                            - stop_sequence
                        - type: string
                          enum:
                            - tool_use
                        - enum:
                            - 'null'
                          nullable: true
                    stop_sequence:
                      anyOf:
                        - type: string
                        - enum:
                            - 'null'
                          nullable: true
                    type:
                      type: string
                      enum:
                        - message
                    usage:
                      type: object
                      properties:
                        input_tokens:
                          type: number
                        output_tokens:
                          type: number
                        cache_creation_input_tokens:
                          type: number
                          nullable: true
                        cache_read_input_tokens:
                          type: number
                          nullable: true
                      required:
                        - input_tokens
                        - output_tokens
                        - cache_creation_input_tokens
                        - cache_read_input_tokens
                      additionalProperties: false
                  required:
                    - id
                    - content
                    - model
                    - role
                    - stop_reason
                    - stop_sequence
                    - type
                    - usage
                  additionalProperties: false
                  description: JSON-encoded response payload
                statusCode:
                  type: number
                  description: HTTP status code of response
                errorMessage:
                  type: string
                  description: User-friendly error message
                metadata:
                  type: object
                  additionalProperties:
                    type: string
                  description: >-
                    Extra metadata tags to attach to the call for filtering. Eg
                    { "userId": "123", "prompt_id": "populate-title" }
                  default: {}
                tags:
                  type: object
                  additionalProperties:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - enum:
                          - 'null'
                        nullable: true
                  description: 'Deprecated: use "metadata" instead'
                  default: {}
              additionalProperties: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    anyOf:
                      - type: string
                        enum:
                          - ok
                      - type: string
                        enum:
                          - error
                required:
                  - status
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      security:
        - Authorization: []
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer

````