---
title: "Create a New Authentication Token"
method: POST
path: "/tokens/"
---

# Create a New Authentication Token

`POST /tokens/`

## Request

- Base URL: `https://client.apimetrics.io/api/2`
- URL: `https://client.apimetrics.io/api/2/tokens/`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/apicontext/apis/api-settings/docs/tokens/post.ts> (a function with typed inputs; its response is checked against the schema)

Use this API to create a new Token for an Authentication Setting.

## Request body

- object
  - `meta` object
    - `auth_id` string, required: The ID of the Auth Setting this token belongs to
    - `name` string, required: The name for this token

## Response `200`

200

- object
  - `token` object
    - `expire_time` unknown
  - `meta` object
    - `auth_type` string
    - `domain` string
    - `name` string
    - `created` string
    - `last_update` string
    - `owner` string
    - `auth_id` string
  - `id` string

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/apicontext/apis/api-settings.md) - [All operations](https://skmtc.dev/apicontext/apis/api-settings/llms.txt) - [OpenAPI document](https://skmtc.dev/apicontext/apis/api-settings/revisions/2e9a62324e82?raw)
