Get Token

POST/api/v1/oauth2/token

Issue OAuth access + refresh tokens for a user.

Returns standard access_token / refresh_token as Bearer credentials for all subsequent API calls.

Operation ID: get_token_api_v1_oauth2_token_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Responses

200Successful Response

access_tokenstringrequired

The access token (JWT)

token_typestring

Token type (always 'Bearer')

expires_inintegerrequired

Access token lifetime in seconds

refresh_tokenstring

Refresh token for obtaining new access tokens

scopestring

Granted scope (may differ from requested)

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject