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

# Create Patients Insurance Card

> Create a new insurance card for a patient



## OpenAPI

````yaml post /api/2.0/patients/{id}/insurance_cards/
openapi: 3.1.0
info:
  contact:
    name: Elation Health
    url: https://www.elationhealth.com/
  description: Elation Health API v2.0
  title: Patient Profile API
  version: 2.0.0
servers:
  - description: Sandbox Server
    url: https://sandbox.elationemr.com
  - description: Production Server
    url: https://api.app.elationemr.com
security: []
paths:
  /api/2.0/patients/{id}/insurance_cards/:
    post:
      tags:
        - Insurance Card
      summary: Create Patients Insurance Card
      description: Create a new insurance card for a patient
      operationId: patients_insurance_cards_create
      parameters:
        - in: path
          name: id
          required: true
          schema:
            format: int64
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateInsuranceCard'
        required: true
      responses:
        '201':
          description: No response body
      security:
        - oauth2: []
components:
  schemas:
    CreateInsuranceCard:
      properties:
        image:
          allOf:
            - $ref: '#/components/schemas/ImageContent'
          description: >-
            Base64 encoded image of the insurance card. Only JPG and PNG files
            are supported.
        rank:
          description: Primary or secondary insurances (1 or 2).
          type: integer
        side:
          description: Insurance card side. Usually front (1) or back (2).
          type: integer
      required:
        - image
        - rank
        - side
      type: object
    ImageContent:
      properties:
        base64_content:
          type: string
        original_filename:
          type: string
      required:
        - base64_content
        - original_filename
      type: object
  securitySchemes:
    oauth2:
      flows:
        clientCredentials:
          scopes:
            act_as_user: >-
              Impersonate a provider via X-On-Behalf-Of (combinable with apiv2
              or system scopes)
            apiv2: Full access to the API
            system/{resource_name}.read: Read access to a specific resource
            system/{resource_name}.write: Write access to a specific resource
          tokenUrl: /api/2.0/oauth2/token/
      type: oauth2

````