/users
endpoint, including the user_name
, password
, and grant_type
properties in the request body.
Endpoint: POST /users
201 Created
status code with the response body containing the new user account resource.
/auth/token
endpoint.
user_name
and password
.
Endpoint: POST /auth/token
201 Created
status code with an access token in the response body.
Response body properties:
Property | Type | Description |
---|---|---|
access_token | string | The UUID used for authentication, required for accessing protected endpoints |
expires_in | integer | The time, in seconds, the access token remains valid |
refresh_token | string | The value of the refresh token, used to obtain the new access token after it expires |
token_type | string | The type of access token, which will always be Bearer |
access_token
expires, you can refresh the access token by sending a POST call to the /auth/refresh-token
endpoint.
refresh_token
value in the authorization header.
Endpoint: POST /auth/refresh-token
201 Created
status code with the response body containing the new access and refresh tokens.