Auth
Authenticate the user and obtain an access token
This operation exchanges the user’s username and password directly for an access token.
The client ID and client secret are used for client authentication (basic). Certain endpoints require the access token in the Authorization header to perform admin functions like creating menus.
If an existing access token is associated with the user, it will be invalidated before a new one is generated.
POST
Authorizations
The auth type used by all protected endpoints.
Body
application/json
The request body to create a token requires the following properties: grant_type
, user_name
, and password
.
The body is of type object
.
Response
201
application/json
Resource created successfully. The response body contains the newly created resource.
The response object returned for both /auth
endpoints.