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
Now that you have all necessary credentials you can start using our API. The first thing you need is the following base url on the right.
Authorization / Base URL
- 01
https://api.chargetrip.io/graphql
Step 2
The headers
After you have our base URL you will need to authenticate yourself. You can do this by using one or more of the following headers.
x-client-id | string | Your project id that contains the project configuration | Required |
x-app-id | string | Your app id for splitting up analytics and security | Required |
x-app-identifier | string | Your iOS or Android bundle identifier | Optional |
x-app-fingerprint | string | Your Android SHA fingerprint | Optional |
Step 3
The authorization process
To communicate with the chargetrip API, authorization on our endpoints and our 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. You can either use that one or configure a new one.
If you also provide an app-id we will automatically use this configuration and security measurements.
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