Sending the key
Authorization: Bearer yk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKeys are created in Settings → API keys. The full value is shown once, at creation. We store only a keyed hash, so we genuinely cannot show it again or recover it for you — if it is lost, revoke it and make another.
What a key is
- A key belongs to one workspace, chosen when it is created, and can never be switched to another. It acts as that workspace: uploads count against its storage, sends spend its plan.
- Only the workspace owner can create or revoke keys. A key outlives the session that made it, so letting a member mint one would create a credential for an account they can be removed from.
- Revocation is immediate. The key is checked on every request, so nothing is cached and no session can outlive it.
- A key's write access stops the moment the workspace's subscription lapses, and resumes when it does. Reads keep working either way. Nothing needs re-issuing.
Scopes
Pick the narrowest set that does the job. A :write scope also grants read of the same resource — every write endpoint returns what it changed, so pretending otherwise would be a boundary that does not hold. Scopes never leak across resources.
| Scope | Grants |
|---|---|
transfers:read | List transfers, read detail and download receipts. |
transfers:write | Create, upload to, send, amend and revoke transfers. |
collections:read | List collections, files, folders and guests. |
collections:write | Create collections, upload files, manage folders and guests. |
contacts:read | Read the address book. |
contacts:write | Add, edit and remove contacts. |
There is no scope for billing, plan changes, workspace members or account deletion, and there will not be one. Those act on a person's own account rather than on a workspace, and a machine credential has no business reaching them.
Failures
| Status | Means |
|---|---|
401 | Missing, malformed, unknown, revoked or expired key — deliberately indistinguishable, so a stolen key reveals nothing about which. |
402 | A write on a free plan. Reads are free; creating, sending and uploading are not. |
403 | The key is valid but lacks the scope this endpoint needs. The response names it. |