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

# UploadDatasetFileAPI mirrors the erdo_upload_dataset_file MCP tool as a REST


> endpoint. (/v1/datasets/upload would conflict with the /v1/datasets/:datasetID routes, hence the hyphenated path — same convention as /v1/datasets-search.)




## OpenAPI

````yaml /api/openapi.json post /v1/datasets-upload
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, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/datasets-upload:
    post:
      summary: >
        UploadDatasetFileAPI mirrors the erdo_upload_dataset_file MCP tool as a
        REST
      description: >
        endpoint. (/v1/datasets/upload would conflict with the
        /v1/datasets/:datasetID routes, hence the hyphenated path — same
        convention as /v1/datasets-search.)
      operationId: POST:mcp.UploadDatasetFileAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                content_base64:
                  title: >
                    ContentBase64 is the raw file bytes encoded as standard
                    base64.
                  type: string
                description:
                  type: string
                filename:
                  title: >
                    Filename must include the extension — it drives file-type
                    detection.
                  type: string
                name:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  dataset_id:
                    format: uuid
                    type: string
                  name:
                    type: string
                  ready:
                    type: boolean
                  slug:
                    type: string
                  warning:
                    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_...).

````