---
title: "Create new API key"
method: POST
path: "/v1/accounts/me/api-keys"
tags: ["accounts"]
---

# Create new API key

`POST /v1/accounts/me/api-keys`

## Request

- Base URL: `https://api.dispatchtickets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dispatchtickets.com/v1/accounts/me/api-keys`
- Auth: HTTP bearer

## Request body

- CreateApiKeyDto
  - `name` string: Name for the API key
  - `allBrands` boolean: Whether this key can access all brands (default: true)
  - `brandIds` string[]: Specific brand IDs this key can access (only if allBrands is false)

## Response `201`

API key created. The key value is only returned once.

---

[API](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api.md) · [All operations](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/revisions/82fc25ab859b?raw)
