---
title: "Create a single access token"
method: POST
path: "/admin/accesstokens/create"
tags: ["Internal", "Admin"]
---

# Create a single access token

`POST /admin/accesstokens/create`

## Request body

- object
  - `name` string
  - `scopes` string[]

## Response `200`

The new external API user

- ExternalAPIUser
  - `createdAt` string, date-time
  - `lastUsedAt` string, date-time
  - `id` string
  - `accessToken` string
  - `displayName` string
  - `type` string
  - `scopes` string[]
  - `displayColor` integer
  - `isBot` boolean

## Other responses

- `400` — Bad request
- `401` — Basic auth failure
- `default` — Unexpected error

---

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