> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/tokens/token-operations/token-apis/creation-of-the-token.md).

# Creation of the token

## Creation of the token

<mark style="color:green;">`POST`</mark> `/tokens`

Creates a new token. Only users with the Standard Registry role are allowed to make the request.

#### Request Body

| Name                               | Type   | Description                            |
| ---------------------------------- | ------ | -------------------------------------- |
| <mark style="color:red;">\*</mark> | String | Object that contains token information |

{% tabs %}
{% tab title="201: Created Created" %}

```
{
    content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TokenInfo'
}
```

{% endtab %}

{% tab title="400: Bad Request Bad Request" %}

```
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
}
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized" %}

{% endtab %}

{% tab title="403: Forbidden Forbidden" %}

{% endtab %}

{% tab title="422: Unprocessable Entity Unprocessable Entity" %}

```
User not registered
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
}
```

{% endtab %}
{% endtabs %}
