---
title: "Auth Token Create"
method: POST
path: "/api/v1.admin.auth-token.create"
tags: ["Admin"]
---

# Auth Token Create

`POST /api/v1.admin.auth-token.create`

Create an auth token

## Request body

- AdminAuthTokenCreateIn
  - `name` string, required
  - `role` string, required
  - `expiry_ms` integer, nullable — Milliseconds from now until the token expires.
  - `enabled` boolean — Whether the token is enabled. Defaults to `true`.

## Response `200`

- AdminAuthTokenCreateOut
  - `id` string, required
  - `token` string, required
  - `created` integer, required
  - `updated` integer, required

## Other responses

- `400`
- `401`
- `403`
- `422`

---

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