For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication

Generate an API key in the app and send the required headers with every request.

Get an API key

1

Generate a key in the app

In the Zapiet - Rates by Zip Code app, go to Settings, find the Rates API section and click Generate API key.

2

Copy it right away

The full key is shown once. Copy it before you close the window, because you can't view it again after that. The app then shows only the start of the key (for example dbz_a1b2c3d4...), with the date it was created and when it was last used.

3

Store it as a secret

Keep it on your server, for example in an environment variable or a secrets manager.

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:

Header
Value

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.