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

# Create Member Document

> Uploads a PDF up to 5 MiB and associates it with a member. Supported document types are 1095_c, insurance_id_card, and general. Requires the memberdocument:write scope.



## OpenAPI

````yaml schemas/2023-08-25/schema.yaml post /member_documents
openapi: 3.0.3
info:
  title: ''
  version: 0.0.0
servers: []
security: []
paths:
  /member_documents:
    post:
      tags:
        - member_documents
      description: >-
        Uploads a PDF up to 5 MiB and associates it with a member. Supported
        document types are 1095_c, insurance_id_card, and general. Requires the
        memberdocument:write scope.
      operationId: member_documents_create
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/MemberDocumentRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemberDocument'
          description: ''
      security:
        - tokenAuth: []
components:
  schemas:
    MemberDocumentRequest:
      type: object
      properties:
        member:
          type: string
          description: Member ID. This association cannot be changed after upload.
          example: mem_123
        file:
          type: string
          format: binary
          description: A valid, non-empty PDF no larger than 5 MiB.
        name:
          type: string
          maxLength: 255
          example: 2026 Medical Insurance Card
        document_type:
          $ref: '#/components/schemas/MemberDocumentTypeEnum'
      required:
        - document_type
        - file
        - member
        - name
    MemberDocument:
      type: object
      properties:
        id:
          type: string
          readOnly: true
          pattern: ^[-a-zA-Z0-9_]+$
          example: mdoc_123
        member:
          type: string
          example: mem_123
        file:
          type: string
          format: uri
          readOnly: true
          description: Temporary signed URL for the private PDF.
        name:
          type: string
          maxLength: 255
          example: 2026 Medical Insurance Card
        document_type:
          $ref: '#/components/schemas/MemberDocumentTypeEnum'
        created_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - created_at
        - document_type
        - file
        - id
        - member
        - name
    MemberDocumentTypeEnum:
      enum:
        - 1095_c
        - insurance_id_card
        - general
      type: string
      description: |-
        * `1095_c` - 1095-C
        * `insurance_id_card` - Insurance ID Card
        * `general` - General
  securitySchemes:
    tokenAuth:
      type: http
      scheme: bearer
      description: API Key authentication with required prefix "Bearer"

````