Authorization
The Chargetrip API uses special HTTP headers to authenticate requests. You can view and manage your credentials in the dashboard.
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
Authorization headers
To communicate with the Chargetrip API, you must authenticate each request with the headers x-client-id
and x-app-id
. By default, a unique x-app-id
is generated for each project. You can either use this default x-app-id
or configure a new one according to your requirements.
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