Authentication
Generate an API key in the app and send the required headers with every request.
Get an API key
Keys start with dbz_. Each key belongs to one shop. You cannot quote another shop with your key.
If Zapiet support issued your key before, it already appears in the Rates API section. You don't need to generate a new one.
Required headers
Send these on every request:
Authorization
Bearer dbz_your_key_here (or use X-Api-Key: dbz_your_key_here instead)
Content-Type
application/json
Accept
application/json
A missing, unknown or revoked key returns 401:
{ "message": "Unauthenticated." }Rotate or revoke a key
Manage your key in the Rates API section of Settings:
Rotate key replaces your key with a new one. The new key is shown once, so copy it before you close the window.
Revoke key turns your key off. It can't be restored. To get a new key, click Generate API key again.
Either way, the old key stops working immediately. Any integration using it fails until you update your server with the new key, so be ready to do that right after the change.
Optional shop check
If one backend talks to more than one store, send shop (for example your-store.myshopify.com) in the request body. If it does not match the key's shop, the API returns 422 with The shop does not match this API key.