---
title: "Generate an upload token"
method: POST
path: "/upload-tokens"
tags: ["Upload Tokens"]
---

# Generate an upload token

`POST /upload-tokens`

Generates an upload token that can be used to replace the API Key. More information can be found [here](https://docs.api.video/vod/delegated-upload-tokens)

## Request body

- TokenCreationPayload
  - `ttl` integer — Time in seconds that the token will be active. A value of 0 means that the token has no exipration date. The default is to have no expiration.

## Response `200`

Success

- UploadToken
  - `token` string — The unique identifier for the token you will use to authenticate an upload.
  - `ttl` integer — Time-to-live - how long the upload token is valid for.
  - `createdAt` string, date-time — When the token was created, displayed in ATOM UTC format.
  - `expiresAt` string, date-time, nullable — When the token expires, displayed in ATOM UTC format.

## Other responses

- `400` — Bad Request
- `429` — Too Many Requests

## Changes

> 50 revisions in range; 1 not diffed.

- **2024-04-16** `ec2b79bfdc8d` — 1 info
  - added the non-success response with the status `429`
- **2022-04-28** `f9532dd3578c` — 2 info
  - the endpoint scheme security `apiKey` was added to the API
  - the endpoint scheme security `bearerAuth` was removed from the API
- **2022-02-07** `2a4d90a64f88` — 6 warning, 3 info
  - the optional response header `X-RateLimit-Limit` removed for the status `200`
  - the optional response header `X-RateLimit-Limit` removed for the status `400`
  - the optional response header `X-RateLimit-Remaining` removed for the status `200`
  - the optional response header `X-RateLimit-Remaining` removed for the status `400`
  - …5 more

[Change history](https://skmtc.dev/apivideo/apis/api-video/changes/upload-tokens/post.md)

---

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