authentication

Login with email and password.

Returns an access token and user information. Legacy clients also receive the refresh token in the response body; the PWA receives it only as an HttpOnly cookie.

post/api/v1/auth/login

Request

  • The document declares no server URL.
  • Auth: none declared

Headers

X-Journiv-Client'legacy' | 'pwa'

Request body

emailstring required
passwordstring required

Response

Successful Response

access_tokenstring required
refresh_tokenstring nullable
token_typestring
userobject required

Changes

    • breaking

      the response property became optional for the status

    • breaking

      response property refresh_token list-of-types was widened by adding types null to media type application/json of response 200

    • info

      added the new optional header request parameter X-Journiv-Client