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