Skip to main content
Every Chataigne API request must include a Chataigne API key in the x-api-key header.
Keys begin with ch_org_. The prefix identifies the credential type; the complete value is secret.
Keep API keys on servers you control. Do not embed them in websites or mobile applications, commit them to source control, or write them to logs. Store them in an environment variable or secret manager and rotate them if exposed.

Scope and permissions

Access is controlled by two independent rules:
  • Scope determines which organization or locations the key can reach.
  • Permissions determine which actions the key can perform on those resources.
A request succeeds only when the resource is in scope and the key has the endpoint’s required permission.

Business-organization-scoped keys

A key scoped to a business organization can reach that organization and its child locations. For example:
  • GET /v1/organizations returns the organization.
  • GET /v1/locations returns the organization’s accessible locations.
  • A request for a location outside that organization is rejected.

Location-scoped keys

A key scoped to a location can reach only that location. It cannot access a parent organization or another location. For example:
  • GET /v1/locations returns the key’s location.
  • GET /v1/organizations returns an empty list.
  • A request for a sibling location is rejected.
A standalone location has no parent organization. A location-scoped key works the same way whether or not its location belongs to an organization.

Common permissions

Permissions use the form resource.action. Your Chataigne contact configures them when issuing a key. Grant only the permissions your integration needs. A read-only reporting integration, for example, does not need any write, update, or create permission.

Authentication errors

Error bodies include a request ID:
Log the X-Request-Id response header, but never the API key itself. Include the request ID when asking Chataigne support to investigate a call.

Next step

Use Find your resources to see how each key scope affects organization and location discovery.