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

# Create Prior Auth

> Creates a new prior authorization. The status and intake_status fields can have the following values: Processing, Succeeded, Cancelled, Failed



## OpenAPI

````yaml POST /prior_auths
openapi: 3.1.0
info:
  title: CaseHealth API
  description: API for managing prior authorizations
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.casehealth.ai/api/v1/
security:
  - apiKeyAuth: []
paths:
  /prior_auths:
    post:
      description: >-
        Creates a new prior authorization with optional FHIR clinical data. The
        fhir_bundle can contain Patient, Practitioner, and MedicationRequest
        objects following FHIR standards.
      requestBody:
        description: Prior authorization data with optional FHIR clinical information
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewPriorAuth'
        required: true
      responses:
        '201':
          description: Prior authorization created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  intake_status:
                    type: string
                  document_url:
                    type: string
                  created_at:
                    type: string
                  updated_at:
                    type: string
        '400':
          description: Bad request - Invalid data provided or FHIR Bundle validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    NewPriorAuth:
      required:
        - case_id
      type: object
      properties:
        case_id:
          description: Unique ID from the UM platform (used for tracking + linking)
          type: string
        document_url:
          description: URL to a PDF document
          type: string
          format: uri
        ePA:
          description: Electronic Prior Authorization data
          type: object
          properties:
            document_urls:
              description: Array of document URLs
              type: array
              items:
                type: string
                format: uri
            epa_payload:
              description: ePA payload in FHIR JSON format
              type: object
        synchronous_request:
          description: Whether to process the request synchronously
          type: boolean
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````