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

# Auth Token Create

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

Create Auth Token

## Request body

- AuthTokenCreateIn
  - `namespace` string, nullable
  - `name` string, required
  - `prefix` string
  - `suffix` string, nullable
  - `expiry_ms` integer, nullable — Milliseconds from now until the token expires.
  - `metadata` object
  - `owner_id` string, required
  - `scopes` string[]
  - `enabled` boolean — Whether the token is enabled. Defaults to `true`.

## Response `200`

- AuthTokenCreateOut
  - `id` string, required
  - `created` integer, required
  - `updated` integer, required
  - `token` string, 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/revisions/e98d7f3a3e10/schema)
