Zum Hauptinhalt springen

Store a new ApiToken

POST/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-11-21T11:19:12.823Z","roles":{"value":["api_read"]}}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/users/self/api-tokens