Documentation Index
Fetch the complete documentation index at: https://docs.pickupbell.com/llms.txt
Use this file to discover all available pages before exploring further.
Token format
PickupBell API tokens are UUIDv4 strings — 36 characters of hex with dashes. A token looks like:key_prefix column keeps the first 8 characters (550e8400) so the Keys UI can label a key without exposing the secret.
Using a token
Every authenticated request sends anAuthorization header:
Scoping
A key carries zero or more scopes that authorize specific capabilities. Scopes are checked on every request by the service layer — if the key lacks the scope for the operation, you get403 Forbidden with error.code = "forbidden" and a message naming the missing scope.
See Scopes for the full list. General principles:
- Least-privilege. Start with only what you need. You can mint a second key with different scopes rather than giving one key the union.
- Read vs. write are split.
:readscopes never grant writes. - Billing is never exposed. API tokens cannot read or modify subscriptions, invoices, or payment methods regardless of scope. Use the dashboard.
Location scoping
Tokens are location-scoped, not account-scoped. If a user owns three locations, they mint three tokens — one per location. An API key cannot cross location boundaries even if given an overly broad scope. Inside the token lifetime, you’ll only ever see one location when you callGET /api/v1/locations:
Rotating
- Mint a new key in the dashboard with the same scope set.
- Deploy it to your integration.
- Revoke the old key — any request using the revoked key returns
401 Unauthorizedfrom the next second onward.
Common errors
| Status | error.code | Meaning |
|---|---|---|
| 401 | unauthorized | Missing, malformed, or revoked Bearer token. |
| 403 | forbidden | Token is valid but lacks the scope for this operation. |
| 404 | not_found | Resource doesn’t exist — or belongs to a location you don’t have access to. |