Authentication

Welcome
Payments
Payouts
Postman

API Authentication and Authorization.

Most requests to the chpter. APIs must be authenticated using API keys and a valid Production Based URL as domain. This key is associated to your chpter. account.

You can view and manage your API keys and Domains in the chpter Dashboard.

Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

🌐
The Domain header value for each request should be a valid registered Production Base Domain.
🔑
The Authorization header value for each request should begin with ‘Token’ followed by the API token value.

Authorization Header Example:

api_token = "chpter_pk_LmMG788NY_MX3Z4B5p5Db6"
domain = "https://www.production_base_url.com"

headers = {
"Content-Type" : "application/json",
"domain" : domain,
"Authorization" : "Token " + api_token,
}

API requests without authentication will also fail. If you do not include your key when making an API request or use one that is incorrect, chpter. will return an error.

"message": "Invalid authentication credentials"