---
title: "Import document with filename (deprecated)"
method: POST
path: "/api/v1/queues/{id}/upload/{filename}"
tags: ["Queue"]
deprecated: true
---

# Import document with filename (deprecated)

`POST /api/v1/queues/{id}/upload/{filename}`

> **Deprecated.**

**Deprecated**: Please note that this upload endpoint is deprecated in favor of [create upload](/api/upload#create-upload) endpoint.

Uploads a document to the queue with filename specified in URL (starting in the importing state). This creates a document object and an empty annotation object.

UTF-8 filenames must be URL encoded.

Upload endpoint also supports basic authentication to enable easy integration with third-party systems.

## Path parameters

- `id` integer, required
- `filename` string, required

## Response `201`

Created

- object
  - `results` object[], required
    - `annotation` string, uri, required — URL of created annotation.
    - `document` string, uri, required — Document URL.
  - `annotation` string, uri — (Obsolete) URL of first created annotation.
  - `document` string, uri — Document URL.

## Other responses

- `400` — Invalid input data.
- `401` — The username/password is invalid or token is invalid (e.g. expired).
- `403` — Insufficient permission, missing authentication, invalid CSRF token and similar issue.
- `404` — The specified resource was not found.
- `409` — Conflict
- `413` — Payload too large (especially for files uploaded).
- `429` — Request rate is too high, wait before sending more requests. See [Rate Limiting](/guides/overview#rate-limiting) for more details.
- `500` — Server failure while processing the request.
- `502` — Invalid response from the upstream server.
- `503` — We're temporarily offline for maintenance. Please try again later.
- `504` — Upstream server could not complete the request in time.

---

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