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-12-30T00:33:33.683Z","roles":{"value":["api_read"]}}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/users/self/api-tokens