Authentication
Obtain JWT access tokens for Private API authentication using machine-to-machine (M2M) client credentials.
Authenticate M2M client
Authenticates a machine-to-machine (M2M) client using client credentials. Returns a JWT access token for use with Private API endpoints.
How to obtain credentials:
Contact Chameleoon support to receive your clientId and clientSecret.
Token usage:
Include the returned accessToken in the Authorization header as:
Authorization: Bearer <accessToken>
Token expiration:
Tokens expire after the time indicated by expiresIn (in seconds).
Request a new token before the current one expires.
Authenticate M2M client › Request Body
clientIdM2M client identifier provided by Chameleoon support
clientSecretM2M client secret provided by Chameleoon support
Authenticate M2M client › Responses
Authentication successful
accessTokenJWT access token for Private API authentication
expiresAtWhen the token expires, in UTC (format yyyy-MM-ddTHH:mm:ss.fff)
expiresInNumber of seconds until the token expires