API Key
To Use the Core API you require an API key. The API key can be created in the chargecloud OS. An API Key consists of:- Public key, used as the username
- Private key, used as the password
Get an access token
Before you can call protected endpoints, you first need an OAuth access token.Request
- HTTP Request
- cURL
Response
access_token value and send it with each request using the Authorization header:
Authorization: Bearer <access_token>
List locations
With a valid access token, you can call the Asset endpoints. The example below fetches all locations.Request
- HTTP Request
- cURL