Before you start
Two credential options are supported for the OAuth token endpoint. Both are set up outside the API, in the chargecloud OS. For step-by-step setup instructions, see the chargecloud Help Center.A — Sign in as a person: chargecloud OS user credentials
Use this when a real team member is behind the integration. An administrator creates a user in the chargecloud OS and assigns the correct role. The role then determines the scopes available to that user.Best for: integrations your team builds and maintains itself, where you want to see in the chargecloud OS who did what.Technical:
email = username, password = password.B — Sign in as a system: API key
Use this when there is no person involved — for example a nightly job that syncs data on its own. An administrator creates an API key in the chargecloud OS and assigns it a role.Best for: automated jobs and machine-to-machine integrations that run without anyone clicking a button.Technical:
public key = username, private key = password.The full token endpoint reference is available in the Core API documentation.
The context parameter
The chargecloud OS serves multiple entity types within a single tenant. The optional context parameter on the token request tells the IDP which entity type to look up credentials against.
Supported values
Get a token
1 · Request token
2 · Response
3 · Call the API