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

# Upload document

> Uploads a document for this business, such as its articles of incorporation, operating agreement, or EIN letter, as multipart form data. Returns the created document, including its `id`. Use that `id` with the [document endpoint](/api-reference/v1/documents/retrieve-a-document) to retrieve its details, or the [download endpoint](/api-reference/v1/documents/download-a-document) to download the file.



## OpenAPI

````yaml /api-reference/v1/openapi.json post /v1/business/{business_id}/document
openapi: 3.0.0
info:
  title: Palm Partner API
  description: >-
    The Palm API is identity verification and compliance infrastructure for US
    businesses: onboard businesses, verify businesses and people (KYB/KYC)
    against authoritative sources, monitor them for changes in real time, and
    act on their behalf through filings, formation, and registered agent
    services.
  version: '1.0'
  contact:
    name: Palm Support
    url: https://getpalm.com
    email: support@getpalm.com
  termsOfService: https://getpalm.com/terms
  license:
    name: Proprietary
    url: https://getpalm.com/license
servers:
  - url: https://api.getpalm.com
    description: Production
security: []
tags:
  - name: Registry
    description: Search business registries
  - name: Verification
    description: Identity and business verification
  - name: Monitor
    description: Continuous monitoring of businesses
  - name: Business
    description: Business entity management
  - name: User
    description: User identity management
paths:
  /v1/business/{business_id}/document:
    post:
      tags:
        - Business
      summary: Upload document
      description: >-
        Uploads a document for this business, such as its articles of
        incorporation, operating agreement, or EIN letter, as multipart form
        data. Returns the created document, including its `id`. Use that `id`
        with the [document
        endpoint](/api-reference/v1/documents/retrieve-a-document) to retrieve
        its details, or the [download
        endpoint](/api-reference/v1/documents/download-a-document) to download
        the file.
      operationId: uploadBusinessDocument
      parameters:
        - name: business_id
          required: true
          in: path
          description: The ID of the business to upload the document for.
          schema:
            type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/DocumentUploadRequest'
      responses:
        '201':
          description: Document uploaded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document'
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '404':
          description: Not Found
        '429':
          description: Rate Limited
        '500':
          description: Server Error
      security:
        - ApiKey: []
components:
  schemas:
    DocumentUploadRequest:
      type: object
      properties:
        type:
          type: string
          description: Document type classification
          enum:
            - passport
            - drivers_license
            - national_id
            - government_id
            - articles_of_incorporation
            - certificate_of_formation
            - operating_agreement
            - bylaws
            - ein_letter
            - business_license
            - certificate_of_good_standing
            - bank_statement
            - tax_return
            - proof_of_address
            - notice
            - mail
            - ra_change_confirmation
            - ra_resignation
            - receipt
            - other
          example: articles_of_incorporation
        metadata:
          type: object
          description: Additional metadata
          example:
            verification_id: 123e4567-e89b-12d3-a456-426614174000
            category: incorporation
            notes: Primary incorporation document
      required:
        - type
        - metadata
    Document:
      type: object
      properties:
        id:
          type: string
          description: >-
            Unique identifier for the document. Pass this to the document
            download endpoints.
          format: uuid
          example: 906f369f-a73b-46a2-8184-ccc5c2848abd
        object:
          type: string
          description: Object type identifier, always "document"
          enum:
            - document
          example: document
        mode:
          type: string
          enum:
            - test
            - live
          example: live
          description: >-
            Whether this resource is test or live; test and live data are
            isolated.
        type:
          type: string
          description: Document type classification
          enum:
            - passport
            - drivers_license
            - national_id
            - government_id
            - articles_of_incorporation
            - certificate_of_formation
            - operating_agreement
            - bylaws
            - ein_letter
            - business_license
            - certificate_of_good_standing
            - bank_statement
            - tax_return
            - proof_of_address
            - notice
            - mail
            - ra_change_confirmation
            - ra_resignation
            - receipt
            - other
          example: articles_of_incorporation
        filename:
          type: string
          description: Original filename of the uploaded document
          maxLength: 255
          example: articles_of_incorporation.pdf
        file_size:
          type: number
          description: Size of the file in bytes
          minimum: 0
          example: 524288
        content_type:
          type: string
          description: MIME type of the file
          example: application/pdf
        status:
          type: string
          description: Current status of the document
          enum:
            - pending
            - verified
          example: verified
        upload_date:
          type: string
          description: ISO 8601 timestamp when the document was uploaded
          format: date-time
          example: '2025-10-24T10:30:00Z'
        metadata:
          type: object
          description: Custom metadata
          example:
            category: incorporation
        created_at:
          type: string
          description: ISO 8601 timestamp when the document record was created
          format: date-time
          example: '2025-10-24T10:30:00Z'
        updated_at:
          type: string
          description: ISO 8601 timestamp when the document record was last updated
          format: date-time
          example: '2025-10-24T10:35:00Z'
      required:
        - id
        - object
        - mode
        - type
        - filename
        - file_size
        - content_type
        - status
        - upload_date
        - metadata
        - created_at
        - updated_at
  securitySchemes:
    ApiKey:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: 'Enter your API key in the format: sk_test_xxxxx or sk_live_xxxxx'

````