Skip to main content

Refresh a session

PUT/users/self/sessions/
v2
PUT
user-refresh-session

Request

Responses

application/json

Your token refresh was successful and you've got new a new access token. The used one in this call is no longer valid.

  • expiresAtstring (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 public api.

Usage examples

$ curl \
--fail \
--location \
-X PUT \
-d '{"refreshToken":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/users/self/sessions