---
title: "Upload a File"
method: POST
path: "/api/v1/eevee/apikey/upload/"
tags: ["Documents"]
---

# Upload a File

`POST /api/v1/eevee/apikey/upload/`

Upload a document file directly. The file will be processed according to the specified document type.

## Headers

- `apikey` string, required

## Response `200`

OK

- InlineResponse200
  - `data` InlineResponse200Data — Contains data related to the uploaded document.
    - `document` InlineResponse200DataDocument[]
      - `created_at` string — Timestamp indicating when the document was created.
      - `doc_id` string — Unique identifier for the uploaded document.
      - `doc_meta_data` string — Metadata associated with the document, provided during upload.
      - `email` string — Email associated with the uploaded document.
      - `review_url` string — URL for reviewing the uploaded document. This will be a signed URL if `review_token` was set to `true` in the upload request.
      - `status` string — The current processing status of the document (e.g., 'new').
      - `title` string — The title of the uploaded document, typically derived from the filename.
      - `type` string — The type of the uploaded document.
      - `user_doc_id` string — The custom identifier you provided for the document for internal tracking.
      - `user_id` string — Unique identifier for the user who uploaded the document.
  - `error` string — A message describing any errors encountered during the request.
  - `error_code` string — A code representing the specific error, if any.
  - `message` string — Additional information or context about the response.
  - `status` string — The status of the request (e.g., 'success' or 'fail').
  - `status_code` integer — The HTTP status code of the response.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.dev/docsumo/apis/docsumo-api.md) · [All operations](https://skmtc.dev/docsumo/apis/docsumo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/docsumo/docsumo-api/revisions/b29ba62ebe9b/schema)
