API keys and permissions
Create, roll and revoke store API keys, and give each key only the permissions it needs.
Every call to the store API uses a key from Developers → API keys, sent as a bearer token:
curl https://api.paidgoods.com/v1/stores/{storeId}/products \
-H "Authorization: Bearer sk_live_…"Developers → API keys → Connection details shows the store ID, and every store's ID when your account reaches more than one.
Create a key
- Developers → API keys, create a key. You'll be asked to confirm it's you.
- Pick Full access, Read-only or a custom set of permissions.
- Copy the secret. It is shown once.
The list shows each key's last four characters (last4), so you can match a key to where you pasted it. Keys can be disabled, edited, rolled (a new secret, shown once) and deleted. Creating, editing, rolling and revoking all ask you to confirm it's you. API keys themselves can never create or roll keys.
- Full access includes permissions added later. Only someone with every permission can create one. In the API, send
fullAccess: true. - A key never gets more than the person who makes it: no permission they lack, and no store they can't open.
- A test-mode key works on test data; a live key on live data.
Permissions
Permissions are per action, with SellAuth-style names such as product-read, product-create, product-update, product-delete, invoice-process, invoice-refund and coupon-create.
GET /v1/stores/{storeId}/api-keys/scopeslists them all.GET /v1/stores/{storeId}/team/permissionsadds each one's label, group, and whether it is in the Read-only preset.- Each route needs exactly one permission, on the native API and the SellAuth format alike. The API reference shows it under
x-actionson each operation. - Bulk routes check the operation: archiving products through
POST products/bulkneedsproduct-delete, duplicating needsproduct-create. - Area names (
products:read,invoices:writeand so on) are still accepted when you create or edit a key and mean every action in that area.
Give each key the narrowest set that does the job.
Errors
| Status | Meaning |
|---|---|
401 | Missing or unknown key. |
403 with "code": "missing_scope" | The key lacks the permission named in details.scope. |
429 | Too many requests. See Rate limits. |
Signing secrets
Developers → API keys → Signing secrets holds two secrets: the Dynamic delivery secret signs dynamic delivery requests and the Webhook secret signs webhooks. Showing or replacing one asks you to confirm it's you. Replacing a secret stops the old one at once.
If a key leaks
Roll it (the old secret stops working) or delete it, then check Settings → Activity logs for what it did.