Creating a key
- Open Account Settings → API Keys in the dashboard
- Click Create New API Key and name it after the integration that will use it
- Select its scopes
- Copy the key
Required headers
Scopes
Each key carries a fixed set of scopes, chosen when you create it. They decide which endpoints it can reach:stores.orders.view to read orders, stores.orders.refund to refund them, and so on.
Scopes can’t be edited afterwards. To change what a key can do, create a new one and retire the old.
Two habits worth adopting from the start:
- One key per integration. You can then revoke a single integration without breaking everything else.
- Only the scopes it needs. A reporting script has no business holding
stores.orders.refund.
All scopes
Every permission a key can carry, and what each one unlocks.
When authentication fails
Both return the standard error envelope, with
code set to AccessDenied. See Responses & Errors.