This endpoint is used to generate a new access token using a client ID and secret.
Mona's API utilizes Bearer Authorization tokens.
To interact with the API, you'll need to retrieve a JWT token by providing your clientId and API secret to the authentication endpoint.
Generating clientId and Secret
You can find your clientId and secret in the Admin page under API Tokens.
To generate a new clientId and secret:
-
Navigate to the API Tokens section: Admin\ Account Settings\ API Tokens.
-
Click on "Generate Token".
-
Provide a description for the token and assign roles that can utilize this token.
Note: Currently, only the "admin" role is relevant for API access. This may change as more functions are exposed via the API.
-
After creating the token, you'll see both the clientId and secret in a pop-up window. Be sure to copy the secret to a secure location; this is the only time it will be visible.