internal

Login

Login and get access token.

If 2FA is enabled, returns requires_2fa=true and a temp_token. Use /login/2fa or /login/recovery to complete authentication.

Sets an httpOnly cookie with the JWT token for browser-based authentication. The token is also returned in the response body for API clients.

post/auth/login

Request

  • Base URL: https://api.companydata.dk (the document declares no server; this is the origin it was published from)
  • URL: https://api.companydata.dk/auth/login
  • Auth: none declared

Request body

emailstring email required
passwordstring required

Response

Successful Response

requires_2faboolean
temp_tokenstring nullable
access_tokenstring nullable
token_typestring

Changes

No recorded changes to this operation across all 2 revisions of this API.