# Upload a file

```http
POST https://api.signapi.lumin.example/v1/uploads
```

Uploads a PDF, DOCX, PNG, Markdown or HTML file as the raw request body.

Uploads are temporary: they expire after 24 hours unless you store them. Use the upload's
`url` as a document or image URL in an envelope. Files may be up to 20 MB; Markdown and HTML
up to 1 MB.

## Request body

Send the file as the raw request body with one of these content types:

| Content type | Notes |
|---|---|
| `application/pdf` | At most 20 MB (20,971,520 bytes). |
| `application/vnd.openxmlformats-officedocument.wordprocessingml.document` | At most 20 MB (20,971,520 bytes). |
| `image/png` | At most 20 MB (20,971,520 bytes). |
| `text/markdown` | At most 1 MB (1,048,576 bytes). Sign API extension. |
| `text/html` | At most 1 MB (1,048,576 bytes). Sign API extension. |

## Responses

### 201

Body: [`Upload.TemporaryUpload`](https://docs.signapi.dev/schemas/Upload.TemporaryUpload).

### 422

The request failed validation. The [problem body](https://docs.signapi.dev/errors) lists each problem in `errors`.

### 4xx

A client error, as an `application/problem+json` body. Its `type` links to the [error page](https://docs.signapi.dev/errors) for the code.

### 5xx

A server error, as an `application/problem+json` body. Retry with backoff.
