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

# Create Claim Attachment

> Uploads a document as a claim attachment and returns an attachment ID that can be used with other claim APIs



## OpenAPI

````yaml POST /api/claim/attachment/v1
openapi: 3.1.0
info:
  title: Cair Health APIs
  description: APIs for the Cair Health platform
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://forecaster.cairhealth.com
security:
  - bearerAuth: []
paths:
  /api/claim/attachment/v1:
    post:
      description: >-
        Uploads a document as a claim attachment and returns an attachment ID
        that can be used with other claim APIs
      parameters:
        - name: content-type
          in: header
          description: >-
            Content type of the attachment (e.g., 'application/pdf',
            'image/jpeg', 'text/plain')
          required: true
          schema:
            type: string
      requestBody:
        description: Raw content of the document to be attached
        content:
          text/plain:
            schema:
              type: string
              description: Plain text content
          application/json:
            schema:
              type: object
              description: JSON content
          application/pdf:
            schema:
              type: string
              format: binary
              description: Binary content of a PDF document
          image/jpeg:
            schema:
              type: string
              format: binary
              description: Binary content of a JPEG image
          image/png:
            schema:
              type: string
              format: binary
              description: Binary content of a PNG image
        required: true
      responses:
        '200':
          description: Attachment uploaded successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  attachmentId:
                    type: string
                    description: >-
                      ID of the created attachment that can be used with other
                      claim APIs
              example:
                attachmentId: 12345678-1234-1234-1234-123456789012
        '400':
          description: Invalid request or document processing error
          content:
            text/plain:
              schema:
                type: string
                example: Bad Request
        '401':
          description: Unauthorized access or invalid organization ID
          content:
            text/plain:
              schema:
                type: string
                example: Unauthorized
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````