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
- Open your site in the Studio and go to Connections.
- 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.
- Choose the scopes, or let the preset choose them.
- 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
| Scope | Allows |
|---|---|
collections:read | List collections (such as products or posts) and their fields. |
entities:read | Read the entries in a collection. |
entities:write | Create entries. For agents, also draft edits and requests that need your approval. |
orders:read | List orders. |
orders:write | Create draft orders and update order status. |
pages:read | List pages. |
customers:read | List customer records. |
customers:write | Import customers from CSV. |
webhooks:read | Read the webhook event catalogue. |
Presets
| Preset | Includes |
|---|---|
| Read-only assistant | Read scopes only. Cannot change anything. |
| Content & catalog editor | Reads collections, entries and pages, and writes entries. |
| Store & orders manager | Reads and writes entries, orders and customers. |
| Full external connector | Every 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.
