> ## 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.

# Complete a direct upload once its bytes have been PUT to the signed URL.




## OpenAPI

````yaml /api/openapi.json post /v1/files/uploads/{id}/complete
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/{id}/complete:
    post:
      summary: |
        Complete a direct upload once its bytes have been PUT to the signed URL.
      operationId: POST:mcp.CompleteFileUploadAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: id
          required: true
          schema:
            format: uuid
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              properties:
                access:
                  type: string
                filename:
                  type: string
                metadata:
                  type: object
                source:
                  type: string
                source_ref:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  expires_at:
                    format: date-time
                    type: string
                  file:
                    $ref: '#/components/schemas/file.File'
                  signed_url:
                    type: string
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    file.File:
      properties:
        access:
          type: string
        byte_size:
          format: int64
          type: integer
        content_hash:
          type: string
        created_at:
          format: date-time
          type: string
        derivations:
          items:
            $ref: '#/components/schemas/file.Derivation'
          type: array
        filename:
          type: string
        handle:
          type: string
        id:
          format: uuid
          type: string
        media_type:
          type: string
        metadata:
          type: object
        source:
          type: string
        source_ref:
          type: string
        updated_at:
          format: date-time
          type: string
      title: >
        File is the metadata contract; storage locations remain private to the
        service.
      type: object
    file.Derivation:
      properties:
        attempts:
          format: int32
          maximum: 2147483647
          minimum: -2147483648
          type: integer
        error:
          type: string
        kind:
          type: string
        lease_until:
          format: date-time
          type: string
          nullable: true
        next_attempt_at:
          format: date-time
          type: string
        result_ref:
          type: string
        state:
          type: string
        version:
          format: int32
          maximum: 2147483647
          minimum: -2147483648
          type: integer
        waiting_reason:
          type: string
      type: object
  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.