Authenticate admin or service account

View as Markdown
Authenticate an admin or service account and receive a short-lived JWT access token and a long-lived refresh token. Pass the returned `accessToken` as `Authorization: Bearer <token>` on all admin API calls. > **End-user tokens** are returned by `/api/DigitalIdentity/Register` and login flows — not by this endpoint.

Authentication

ApiKeystring
Static API key issued to your tenant. Obtain from the Vlens dashboard.

Headers

TenancyNamestringRequired
Your Vlens tenant name.

Request

This endpoint expects an object.
tenancyNamestringRequired<=256 characters
Your Vlens tenant name.
userNameOrEmailAddressstringRequired<=256 characters
Admin username or email address.
passwordstringRequiredformat: "password"<=32 characters

Response

Authentication successful.
dataobject
error_codeinteger or null
error_messagestring or null
error_descriptionsany or null