Skip to main content

Authenticate yourself to get an access token

POST/authenticate/
v2
POST
user-authenticate

Request

Responses

application/json

Your authentication request was successfull and you've got an access token.

  • expiresstring (date-time)
    required

    The expiration date of the token.

  • refreshTokenstring
    required

    Refresh token to refresh your access token even after it has expired.

  • tokenstring
    required

    Public token to identify yourself against the api gateway.

application/json

Multi factor authentication is activated for this user. After calling this, you need to call '/authentication/mfa' with a valid multi factor code.

  • name"SecondFactorRequired"

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"email":"a.lovelace@example.com","password":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/authenticate