---
title: "Create Api Token"
method: POST
path: "/api/v1/management/authentication/{env_id}/api-token"
tags: ["Authentication"]
---

# Create Api Token

`POST /api/v1/management/authentication/{env_id}/api-token`

Create a new API Token.

## Path parameters

- `env_id` string, required — The Environment's ID.

## Headers

- `idempotency-key` string

## Request body

- ApiTokenIn
  - `name` string, required
  - `scopes` string[], nullable

## Response `200`

- ApiTokenOut
  - `token` string, required
  - `id` string, required
  - `name` string, nullable
  - `createdAt` string, date-time, required
  - `expiresAt` string, date-time, nullable
  - `scopes` string[], nullable

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Validation Error
- `429` — Too Many Requests

---

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