---
title: "Create Api Token"
method: POST
path: "/v1/api-tokens"
tags: ["Authentication"]
---

# Create Api Token

`POST /v1/api-tokens`

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Request body

- ApiTokenIn
  - `name` string, required

## Response `200`

Successful Response

- ApiToken
  - `token` string, required
  - `created_at` integer, required — creation unix timestamp
  - `name` string, required
  - `token_id` string, nullable
  - `allowed_ips` string[], nullable

## Other responses

- `409` — Conflict
- `422` — Validation Error

---

[API](https://skmtc.net/deepinfra/apis/deepinfra-api.md) · [All operations](https://skmtc.net/deepinfra/apis/deepinfra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepinfra/deepinfra-api/revisions/79ff347d29e2/schema)
