Skip to main content

Store a new ApiToken

POST /v2/users/self/api-tokens/
v2
POST
user-create-api-token

Request

Responses

application/json

ApiToken was added.

  • tokenstring
    required

    The ApiToken.

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"description":"Api Token - read","expiresAt":"2024-10-11T00:26:58.528Z","roles":{"value":["api_read"]}}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/users/self/api-tokens