Access Tokens

User login

Authenticates a user using email/username and password. Returns an access token for API authentication.

post/access-tokens

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/access-tokens
  • Auth: none required

Request body

emailOrUsernamestring required

Email address or username of the user

passwordstring required

Password of the user

withHttpOnlyTokenboolean

Whether to include an HTTP-only authentication cookie

Example request

{
  "emailOrUsername": "john.doe@example.com",
  "password": "SecurePassword123!",
  "withHttpOnlyToken": true
}

Response

Login successful

itemstring required

Access token for API authentication

Example response

{
  "item": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ4..."
}

Changes

No recorded changes to this operation across all 1 revision of this API.