---
title: "Issues an API token"
method: POST
path: "/api/v1/apitoken"
tags: ["API Token"]
---

# Issues an API token

`POST /api/v1/apitoken`

Issues an API token to an authorized user account.

Returns an object representing the issued token.

## Request body

- ApiTokenForm
  - `userId` string
  - `expirationSeconds` integer
  - `network` string
  - `claims` object
  - `shouldBeAdmin` boolean

## Response `200`

Token successfully issued to user

## Other responses

- `400` — Bad request
- `401` — Invalid user
- `403` — Forbidden
- `415` — Unsupported Media Type
- `500` — Unexpected server error

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anzworldline-solutions/dotcms-rest-api/revisions/0f38cbc3bd36/schema)
