iBOX API

Get started

Authentication

Every request carries an API key as a bearer token. The key decides whose account the request acts on.

bash
curl https://api.iboxdelivery.com/v1/shipments \
  -H "Authorization: Bearer ibx_live_9x2…"

Creating keys

Owners and admins of a merchant account create keys in the merchant portal, under Settings → API keys. A key is shown once, when it is created. We keep only a fingerprint of it, so a lost key cannot be recovered: create a new one and revoke the old.

What a key can see

A key belongs to one merchant account, and every request made with it is limited to that account's parcels. The account is never read from the request body. Asking for another account's parcel answers 404, exactly as for one that does not exist.

Revoking a key

Revoke a key in the portal and it stops working on the next request. Rotate keys by creating the new one, deploying it, then revoking the old.

There is no sandbox yet

Every key books real parcels into real lockers, including keys that begin ibx_test_. To try the API without sending a parcel, use the read endpoints (stations, tracking) or book to the demo locker by arrangement with us.

When a key is refused

A missing, malformed, unknown or revoked key all answer 401 with code: "unauthorized", so the response never tells anyone which keys exist.