---
title: "Get Bearer Token"
method: POST
path: "/auth/api-key"
tags: ["Advanced authentication"]
---

# Get Bearer Token

`POST /auth/api-key`

Returns a bearer token that can be used to authenticate other endpoint.

You can find the tutorial on using the disposable bearer token [here](https://docs.api.video/reference/disposable-bearer-token-authentication).

## Request body

- AuthenticatePayload
  - `apiKey` string, required — Your account API key. You can use your sandbox API key, or you can use your production API key.

## Response `200`

Success

- AccessToken
  - `access_token` string — The access token containing security credentials allowing you to acccess the API. The token lasts for one hour.
  - `token_type` string — The type of token you have.
  - `refresh_token` string — A token you can use to get the next access token when your current access token expires.
  - `expires_in` integer — Lists the time in seconds when your access token expires. It lasts for one hour.

## Other responses

- `400` — Bad Request

---

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