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

# Begin a direct upload for a file too large for a JSON body: returns a signed


> URL to PUT the bytes to.




## OpenAPI

````yaml /api/openapi.json post /v1/files/uploads
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-11-21'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/files/uploads:
    post:
      summary: >
        Begin a direct upload for a file too large for a JSON body: returns a
        signed
      description: |
        URL to PUT the bytes to.
      operationId: POST:mcp.BeginFileUploadAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                byte_size:
                  description: >
                    and the stored size is checked again when the upload
                    completes.
                  format: int64
                  title: >
                    ByteSize is the size the caller intends to send; it is
                    checked against MaxBytes

                    up front
                  type: integer
                filename:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  content_type:
                    type: string
                  expires_at:
                    format: date-time
                    type: string
                  max_bytes:
                    format: int64
                    type: integer
                  upload_id:
                    format: uuid
                    type: string
                  upload_url:
                    title: >
                      UploadURL accepts exactly one PUT of the bytes with
                      Content-Type ContentType.
                    type: string
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.