Authorization

The Chargetrip API uses special HTTP headers to authenticate requests. You can view and manage your credentials in the dashboard.


The setup

Once all credentials are configured inside the dashboard, use the following base URL to start making requests.

Base URL
bash
https://api.chargetrip.io/graphql

Authorization headers

After obtaining the base URL, add the following headers to each request.

x-client-id · required
A project id that contains the project configuration
x-app-id · required
An app id for security and splitting up analytics
x-app-identifier
An iOS or Android bundle identifier
x-app-fingerprint
An Android SHA fingerprint

Sending an authorized request

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.

Example request
bash
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
  • Getting started

    Get started with the Chargetrip API.

  • API reference

    Browse our api and endpoints.

  • Examples

    Explore examples and start building.