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

# Create a document upload URL

> Presign a time-limited PUT URL for one document file (.pdf, .png, .jpg, or .jpeg; max 25MB). PUT the raw file bytes to `uploadUrl` with the returned `Content-Type` header, then ingest it with `POST /documents/ingest`. Nothing is recorded until that second call.



## OpenAPI

````yaml /openapi.json post /api/documents/upload-urls
openapi: 3.1.0
info:
  title: Equated API
  version: 1.0.0
  description: >-
    Agent-facing accounting API. Authenticate with a bearer token issued from
    Settings → API Tokens, or via the in-app session cookie when called from the
    web client.
servers:
  - url: https://app.equated.co
    description: API server
security: []
paths:
  /api/documents/upload-urls:
    post:
      tags:
        - Documents
      summary: Create a document upload URL
      description: >-
        Presign a time-limited PUT URL for one document file (.pdf, .png, .jpg,
        or .jpeg; max 25MB). PUT the raw file bytes to `uploadUrl` with the
        returned `Content-Type` header, then ingest it with `POST
        /documents/ingest`. Nothing is recorded until that second call.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                fileName:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: Document file name ending in .pdf, .png, .jpg, or .jpeg.
              required:
                - fileName
      responses:
        '200':
          description: Presigned upload target
          content:
            application/json:
              schema:
                type: object
                properties:
                  uploadUrl:
                    type: string
                    description: Presigned URL to PUT the raw file bytes to. Time-limited.
                  uploadKey:
                    type: string
                    description: >-
                      Handle for the ingest step once the file has been
                      uploaded.
                  contentType:
                    type: string
                    description: Content-Type header the PUT request must send.
                  expiresInSeconds:
                    type: integer
                  maxBytes:
                    type: integer
                required:
                  - uploadUrl
                  - uploadKey
                  - contentType
                  - expiresInSeconds
                  - maxBytes
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token issued from the Equated app under Settings → API Tokens.

````