Authentication
A request is authorised by an API key that acts for one organisation. The key has scopes, an optional source allowlist and an optional expiry, and it can be rotated or revoked at any time.
Creating a key
Open Integrations in the operator dashboard, choose Create a key, and name it for the application that will use it. The full key is returned once. Store it in the application secret store; it cannot be recovered later.
Sending the key
Send it as x-api-key on every request. The Authorization header is reserved for identity-service sessions and is not used by the integration API.
x-api-key: sk-pan-live-0123456789abcdef_YOUR_SECRET_VALUE
Response language
Every request may carry Accept-Language. The API answers with the message in that language and names the language it used in Content-Language. The header is optional; the default is English.
Accept-Language: en
The codes a client may ask for are the ones the platform ships:
enEnglishfrFrançaisigIgboyoYorùbáhaHausa
Only a code in that list is used. An unsupported tag is ignored and English is the response language; a request is never refused because of the language it asked for.
Discovering the list
The public languages operation returns the current set, so a client reads it rather than hardcoding a language that a later release could add to.
GET/api/v1/languagesNo authentication
Returns the language codes the API accepts in Accept-Language and the default it uses when none is recognised.
This route takes no path, query or body input.
Responses
200SuccessdefaultAny other failure
Store keys
A customer store key uses the same x-api-key header but a different prefix, sk-pan-cus-live-. It is created in the customer portal, acts through the verified customer address, and never carries an organisation scope. The Stores section documents its access levels, orders, payment and webhooks.
Sandbox keys
A key created for the sandbox writes only to an isolated test workspace. It never sends email, push or webhook deliveries, it does not require the operator's compliance checks, and the live workspace cannot see its records. Scopes and the plan rate limit are the same as a live key.
x-api-key: sk-pan-test-0123456789abcdef_YOUR_SECRET_VALUE
Reset the sandbox from the dashboard to delete its records and start again; the sandbox keys keep their secrets and continue to work.
Scopes
A key carries only the scopes it was given. Scopes name resources and actions, so a route added later does not silently widen an existing key. A key with no scopes can do nothing.
- organisation:read reads the organisation the key acts for.
- customers:read and customers:write list, create and correct senders.
- recipients:read and recipients:write list, create and correct the people a parcel goes to.
- deliveries:read reads deliveries and their history; deliveries:write creates one and assigns a leg.
- fleet:read lists the drivers and vehicles a dispatch bot can choose.
- support:read reads customer conversations; support:write replies to one.
Source restriction
Optionally list IPv4 or IPv6 addresses or CIDR blocks. The key is refused from every other address. Leave the list empty to allow any source.
Expiry
A key can expire at a chosen time or never. An expired key is refused on the next request and remains in the list as expired, so a person can see why the integration stopped.
Rotation
Rotating replaces the secret and returns the new key once. The old secret stops working immediately, so deploy the new key in the same change.
Revocation
Revoking refuses the key on its next request and records who did it and when. The row stays for the audit; it cannot be restored, so create a new key instead.
Rate limits
The organisation plan sets a requests-per-minute limit for every key. Each response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. A refused request is 429 with Retry-After.
X-RateLimit-Limit: 60 X-RateLimit-Remaining: 57 X-RateLimit-Reset: 1770000000 Retry-After: 12
Refused credentials
A missing, unknown, revoked or expired key is 401. A source outside the allowlist is 403 IP_RESTRICTED; a key without the route scope and a plan without API access are 403 as well. The response is the same error envelope as every other failure.