Authorization
The EV landscape is changing rapidly and our ever-evolving API is reflecting that. This results in deprecated fields when there are better solutions or structures.
Step 1
The base URL
Once all credentials are set-up, copy the base URL on the right to start using the API.
Authorization / Base URL
- 01
https://api.chargetrip.io/graphql
Step 2
The headers
After obtaining the base URL, add one or more of the following headers to each request.
x-client-id | string | A project id that contains the project configuration | Required |
x-app-id | string | An app id for security and splitting up analytics | Required |
x-app-identifier | string | An iOS or Android bundle identifier | Optional |
x-app-fingerprint | string | An Android SHA fingerprint | Optional |
Step 3
The authorization process
To communicate with the Chargetrip API, authorization on the endpoints and websocket is required. Authentication should be done on two levels. With every request, an x-client-id
and an associated x-app-id
is expected. With every project, a default x-app-id
is created. It's possible to either use the default one or configure a new one.
Authorization / Headers
- 01
- 02
- 03
- 04
- 05
- 06
curl -X POST \
-H "Content-Type: application/json" \
-H "x-client-id: 5e8c22366f9c5f23ab0eff39" \
-H "x-app-id: 5e8c22366f9c5f23ab0eff39" \
-d 'query { }' \
https://api.chargetrip.io/graphql