Authentication
One per-organisation API key, sent as a header. The key resolves your organisation, so no tenant header is needed.
Header
api-key: <your_partner_api_key>
Content-Type: application/json| Header | Description |
|---|---|
api-key | Your organisation's partner API key. Resolves the organisation and scopes every request to it. |
x-api-key | Accepted as an alias. It predates the published documentation and is kept working for existing integrations. New ones send api-key. |
The key is the tenant
The key maps one to one to an organisation, and every request is scoped by it. There is no
x-tenant-id header to send, and no way to read or write another organisation's applications with
your key.
A missing key returns 401 missing_api_key. A key that matches no organisation returns
401 invalid_api_key, including a key from the wrong environment.
Handling keys
- Treat it as a credential. Send it only over HTTPS, keep it out of source control and logs, and tell us immediately if it may have been exposed so it can be rotated.
- One key per environment. UAT and production keys are different values and are not interchangeable.
- Keys are issued, not self-service. To obtain one, have one rotated, or confirm which environment a key belongs to, email support@ablecredit.com or your AbleCredit representative.
Once you hold one, the playground is the quickest way to confirm it works against the environment you think it belongs to.