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

# Upload patient doc

> Customer API v1 endpoint.

Upload patient doc. Authenticate with a Bearer access token unless the endpoint is the authentication token exchange.


## OpenAPI

````yaml POST /v1/contacts/upload-patient-doc
openapi: 3.1.0
info:
  title: Amplify Customer API
  version: 1.0.0
  description: |-
    Canonical contract for the Amplify customer-facing API. This YAML file is
    the source of truth for Postman and Mintlify. Operations marked with
    x-amplify-validation-status: pending were migrated from the legacy Postman
    collection and must be validated before their contract is considered final.
servers:
  - url: https://api.amplify.xyz
    description: Production
  - url: https://dev-api.amplify.xyz
    description: Development
security: []
tags:
  - name: Authentication
  - name: Fax
  - name: Send Faxes
  - name: Receive Faxes
  - name: Manage Faxes
  - name: Workspace
  - name: Numbers
  - name: Contacts
  - name: Documents
  - name: Templates
paths:
  /v1/contacts/upload-patient-doc:
    post:
      tags:
        - Contacts
      summary: Upload patient doc
      description: Uploads a document for use by patient-contact extraction workflows.
      operationId: postv1ContactsUploadPatientDoc
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file_name:
                  type: string
                file_data:
                  type: string
              required:
                - file_name
      responses:
        '200':
          description: Successful response. The response body has not yet been validated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnvalidatedApiResponse'
        '422':
          description: Required document information was not supplied.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationMessageResponse'
              example:
                status: 0
                message: The file name field is required.
      security:
        - bearerAuth: []
components:
  schemas:
    UnvalidatedApiResponse:
      type: object
      description: >-
        Provisional response envelope. The exact success response remains
        pending live validation.
      properties:
        status:
          type: integer
          description: Operation status, when returned.
        message:
          type: string
          description: Human-readable result message, when returned.
        data:
          nullable: true
          description: >-
            Endpoint-specific response data. Its structure remains pending
            validation.
    ValidationMessageResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: integer
          description: Indicates that the request was not accepted.
        message:
          type: string
          description: Human-readable validation message.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````