Start free

Help center / Developers and AI agents

API keys and scopes

Create a scoped key for one site, choose what it can do, and revoke it when you are done.

An API key lets your own backend, script or AI agent work with one xigzag site. Keys start with xzk_, belong to a single site, and can only do what their scopes allow. Anything not granted is refused.

Create a key

  1. Open your site in the Studio and go to Connections.
  2. Under Developer API keys, choose to issue an API key and give it a name you will recognise later. Alternatively, under AI Agents & MCP Connections, press one of the preset buttons.
  3. Choose the scopes, or let the preset choose them.
  4. Copy the key immediately. It is shown only once and is stored hashed, so it cannot be shown again.

You need permission to manage the site's settings. A site can hold up to 25 keys. If you reach the limit, revoke one you no longer use.

Scopes

ScopeAllows
collections:readList collections (such as products or posts) and their fields.
entities:readRead the entries in a collection.
entities:writeCreate entries. For agents, also draft edits and requests that need your approval.
orders:readList orders.
orders:writeCreate draft orders and update order status.
pages:readList pages.
customers:readList customer records.
customers:writeImport customers from CSV.
webhooks:readRead the webhook event catalogue.

Presets

PresetIncludes
Read-only assistantRead scopes only. Cannot change anything.
Content & catalog editorReads collections, entries and pages, and writes entries.
Store & orders managerReads and writes entries, orders and customers.
Full external connectorEvery scope in the table above.

Use a key

Send the key in the Authorization header:

curl -sS https://xigzag.com/api/ext/collections \
  -H "Authorization: Bearer $API_KEY"

Revoke a key

In Developer API keys, press the remove button next to the key and confirm with Revoke key. Anything using it stops working immediately.

Important
Treat a key like a password. Keep it on a server or in your agent's secret settings, never in page code, a public repository or a chat message. Grant the smallest set of scopes that does the job.

Related articles

Still need help?
Open a support ticket or write to hello@xigzag.com.