---
title: "Creates a new tokens"
method: POST
path: "/token"
tags: ["Authentication"]
---

# Creates a new tokens

`POST /token`

## Request body

- Token
  - `idToken` integer — Id Token
  - `label` string — label of the token
  - `uuid` string, nullable — uuid of the token
  - `idUser` string, nullable — id_user of the token
  - `validity` string, nullable — Date until which tocken is valid, if it is void it will never expire
  - `lastUsage` string, nullable — last_usage of the token

## Response `200`

Incidence type object

- Token
  - `idToken` integer — Id Token
  - `label` string — label of the token
  - `uuid` string, nullable — uuid of the token
  - `idUser` string, nullable — id_user of the token
  - `validity` string, nullable — Date until which tocken is valid, if it is void it will never expire
  - `lastUsage` string, nullable — last_usage of the token

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

---

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