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

---

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