---
title: "Request video token"
method: POST
path: "/api/v1/videos/{id}/token"
tags: ["Video"]
---

# Request video token

`POST /api/v1/videos/{id}/token`

Request special tokens that expire quickly to use them in some context (like accessing private static files)

## Path parameters

- `id` union, required
  - integer
  - string, uuid
  - string — translation of a uuid v4 with a bigger alphabet to have a shorter uuid

## Response `200`

successful operation

- VideoTokenResponse
  - `files` object
    - `expires` string, date-time
    - `token` string

## Other responses

- `400` — incorrect parameters
- `404` — video not found

---

[API](https://skmtc.net/cpy/apis/peertube.md) · [All operations](https://skmtc.net/cpy/apis/peertube/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpy/peertube/versions/efe11b159e43/schema)
