x-api-key header.
ch_org_. The prefix identifies the credential type; the complete value is secret.
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.
Business-organization-scoped keys
A key scoped to a business organization can reach that organization and its child locations. For example:GET /v1/organizationsreturns the organization.GET /v1/locationsreturns 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/locationsreturns the key’s location.GET /v1/organizationsreturns 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 formresource.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:
X-Request-Id response header, but never the API key itself. Include the request ID when asking Chataigne support to investigate a call.