Create an API key
API keys (prefixed oh_) authenticate server-to-server calls to the Hub API.
Manage them under API Keys. Creating and deleting keys is limited to
organization admins and owners.
Create a key
Click Create API Key and set:
- Name, a descriptive label such as "Warehouse integration".
- Scopes, the permissions the key carries. Pick only what the integration needs (see below). At least one is required.
- Expiration: Never, or 7, 30, 90 days, or 1 year.
Click Create Key.
After creation, Orderly shows the full key in an API Key Created dialog. Copy
it now. It is never displayed again, and the list only ever shows the oh_...
prefix. If you lose it, delete the key and create a new one.
Scopes
Scopes gate what a key can do. A call outside a key's scopes returns 403. They
come in read/write pairs per resource:
| Scope | Grants |
|---|---|
orders:read / orders:write | View / create and update orders |
shipments:read / shipments:write | View / create and update shipments |
bridges:read / bridges:write | View / manage bridges |
transformations:read / transformations:write | View / manage transformations |
carrier-accounts:read / carrier-accounts:write | View / manage carrier accounts |
rates:read | Request rate quotes |
pickups:read / pickups:write | View / schedule pickups |
dispatchers:read / dispatchers:write | View / manage dispatch rules |
operations:read / operations:write / operations:execute | View / manage / run bulk operations |
webhooks:manage | Configure webhook endpoints |
embed:manage | Create embed sessions and manage embed config |
Use a key
Send it as a bearer token, and select your organization with X-Organization-Id:
curl https://api.orderly-hub.com/api/v1/orders \
-H "Authorization: Bearer oh_live_xxx" \
-H "X-Organization-Id: <organization-uuid>"
Delete a key
Hover a key and click the trash icon. Deletion is immediate and permanent, and any application using that key loses access at once.
Next steps
- Authentication: the full auth reference.
- API Reference: try endpoints against the test server.