Xigzag Public REST & Webhooks API

OpenAPI 3.1 Version v1

Site-pinned, scoped programmatic interface for e-commerce, entities, collections, orders, and automated webhooks.

Authentication: All endpoints require a scoped Bearer token: Authorization: Bearer xzk_<id>_<secret>. API keys can be minted directly under Studio > Platform > Integrations.
GET /api/ext/collections
scope: collections:read

List the site's collections and their field shape

cURL Example
curl -X GET "https://xigzag.com/api/ext/collections" \
  -H "Authorization: Bearer xzk_YOUR_API_KEY" \
GET /api/ext/entities
scope: entities:read

Read a collection's stored entries (paged)

Query Parameters
Name Required Description
collection Required collection id
offset Optional first row
limit Optional page size
cURL Example
curl -X GET "https://xigzag.com/api/ext/entities" \
  -H "Authorization: Bearer xzk_YOUR_API_KEY" \
POST /api/ext/entities
scope: entities:write

Create an entry in a collection

Request Body (JSON)
{ collection, data, status? }
cURL Example
curl -X POST "https://xigzag.com/api/ext/entities" \
  -H "Authorization: Bearer xzk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ collection, data, status? }'
GET /api/ext/orders
scope: orders:read

List orders

cURL Example
curl -X GET "https://xigzag.com/api/ext/orders" \
  -H "Authorization: Bearer xzk_YOUR_API_KEY" \
POST /api/ext/orders
scope: orders:write

Create a draft order

Request Body (JSON)
{ customer:{name,email}, lines:[{label,amount,qty?}], currency? }
cURL Example
curl -X POST "https://xigzag.com/api/ext/orders" \
  -H "Authorization: Bearer xzk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ customer:{name,email}, lines:[{label,amount,qty?}], currency? }'
PUT /api/ext/orders
scope: orders:write

Set an order's status (a refund is made in the Studio)

Request Body (JSON)
{ id, status }
cURL Example
curl -X PUT "https://xigzag.com/api/ext/orders" \
  -H "Authorization: Bearer xzk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ id, status }'
GET /api/ext/pages
scope: pages:read

List the site's pages (id, title, slug, draft)

cURL Example
curl -X GET "https://xigzag.com/api/ext/pages" \
  -H "Authorization: Bearer xzk_YOUR_API_KEY" \
GET /api/ext/customers
scope: customers:read

List customer records (email, name, tags, consent)

cURL Example
curl -X GET "https://xigzag.com/api/ext/customers" \
  -H "Authorization: Bearer xzk_YOUR_API_KEY" \
POST /api/ext/customers
scope: customers:write

Import customers from CSV; consent flags honoured, opted-out people are never re-subscribed

Request Body (JSON)
{ csv, source?, preview? }
cURL Example
curl -X POST "https://xigzag.com/api/ext/customers" \
  -H "Authorization: Bearer xzk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ csv, source?, preview? }'
GET /api/ext/webhook-events
scope: webhooks:read

The webhook event catalogue this site can subscribe to

cURL Example
curl -X GET "https://xigzag.com/api/ext/webhook-events" \
  -H "Authorization: Bearer xzk_YOUR_API_KEY" \