---
name: ateliq-api
description: Write code that calls the Ateliq public REST API (https://ateliq.co/api/v1) - search and read ateliq.co, list Ateliq products and prices, list the twelve AI agents, read the international gold price, and create or check demo requests - with no API key, OpenAPI 3.1, cursor pagination, RFC 9457 errors, rate limits, idempotency keys and a sandbox. Use when a developer asks to integrate Ateliq, call the Ateliq API, build on Ateliq data, or generate an Ateliq API client.
license: MIT
metadata:
  homepage: https://ateliq.co/docs/api/
  openapi: https://ateliq.co/openapi.json
  version: 1.0.0
---

# Ateliq API

The Ateliq API is the public, read-mostly API of ateliq.co. **No key, no account.** It serves the same data the website shows, so a price from the API always matches the pricing page.

| | |
| --- | --- |
| Base address | `https://ateliq.co/api/v1` |
| Sandbox | `https://ateliq.co/api/sandbox/v1` - same answers; a demo request is checked but nothing is kept or sent |
| OpenAPI 3.1 | `https://ateliq.co/openapi.json` - generate a typed client from this |
| Docs | https://ateliq.co/docs/api/ |
| Same data over MCP | `https://ateliq.co/api/mcp` (see the `ateliq-mcp` skill) |

## Before you write code

1. Fetch `https://ateliq.co/openapi.json` and build request and response types from it. Do not invent fields.
2. Point tests and development at the **sandbox**. Switch the base address to `/api/v1` only for production.
3. `GET https://ateliq.co/api/v1` lists every endpoint with its full address.

## Endpoints

| Method and path | Returns |
| --- | --- |
| `GET /search?q=&section=&limit=&cursor=` | Pages that match, best first, with the matching passage (`limit` 1-25) |
| `GET /pages?section=` | Every public page with title and summary |
| `GET /pages/{path}` | One page as Markdown, e.g. `/pages/product/mirror` |
| `GET /sections` | Site sections and page counts |
| `GET /products`, `GET /products/{id}` | The Mirror, the Counter and the software products (`id`: `mirror`, `counter`, `design-studio`, `studio`, `insights`, `head-office`) |
| `GET /pricing` | Plans, add-ons, hardware by size, implementation fee, credits; all in USD |
| `GET /agents`, `GET /agents/{id}` | The twelve AI agents |
| `GET /gold-price` | International spot gold per troy ounce and per gram at 24/22/18/14 karat in USD, INR, GBP, AED |
| `POST /demo-requests` | Request a demo for a person - **the only call that writes** |
| `GET /demo-requests/{id}` | Status of a demo request (`received` or `delivered`) |

## Lists and pagination

Every list answers `{ "object": "list", "data": [...], "pagination": { "limit", "next_cursor", "has_more", "total" } }`. Pass `next_cursor` back as `cursor` until `has_more` is false. `limit` is 1-100 (1-25 for search).

```js
// Node 18+ or any browser: read every page of a list
async function listAll(path) {
  const out = [];
  let cursor = null;
  do {
    const url = new URL(`https://ateliq.co/api/v1${path}`);
    url.searchParams.set("limit", "100");
    if (cursor) url.searchParams.set("cursor", cursor);
    const res = await fetch(url, { headers: { accept: "application/json" } });
    if (!res.ok) throw await problem(res);
    const page = await res.json();
    out.push(...page.data);
    cursor = page.pagination.has_more ? page.pagination.next_cursor : null;
  } while (cursor);
  return out;
}
```

## Errors

Every error is `application/problem+json` (RFC 9457): branch on `code`, show `detail`, and read `errors` (one message per field) on a 422.

```js
async function problem(res) {
  const p = await res.json().catch(() => ({}));
  const e = new Error(`${res.status} ${p.code}: ${p.detail}`);
  Object.assign(e, { status: res.status, code: p.code, fields: p.errors, retryAfter: Number(res.headers.get("retry-after")) || null });
  return e;
}
```

| `code` | Status | Do this |
| --- | --- | --- |
| `missing_query`, `invalid_limit`, `invalid_cursor`, `invalid_json`, `invalid_idempotency_key` | 400 | Fix the request; do not retry as is |
| `not_found` | 404 | `detail` lists the ids that exist |
| `method_not_allowed` | 405 | Use the method in the `Allow` header |
| `unsupported_media_type` | 415 | Send `Content-Type: application/json` |
| `invalid_request` | 422 | Fix the fields named in `errors` |
| `rate_limited` | 429 | Wait `Retry-After` seconds, then retry |
| `gold_price_unavailable`, `storage_unavailable` | 503 | Retry after `Retry-After` |

## Rate limits

120 requests a minute per address; 10 demo requests an hour. Every answer carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`. Back off on 429 using `Retry-After`; never retry 4xx errors other than 429.

## Demo requests (writes)

Only send one when a real person has asked for a demo and confirmed their details. A work email is required (free mailboxes are refused).

```bash
curl -X POST https://ateliq.co/api/sandbox/v1/demo-requests \
  -H "content-type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"name":"Asha Rao","email":"asha@yourbrand.com","brand":"Your Brand","sells":"Jewellery","stores":"5 to 20"}'
```

```python
import uuid, requests
r = requests.post("https://ateliq.co/api/sandbox/v1/demo-requests",
    headers={"Idempotency-Key": str(uuid.uuid4())},
    json={"name": "Asha Rao", "email": "asha@yourbrand.com", "brand": "Your Brand"})
r.raise_for_status()           # 202 Accepted
print(r.json()["id"], r.headers["Location"])
```

- Required: `name`, `email`, `brand`. Optional: `role` (`Founder or CEO`, `Head of retail`, `Marketing`, `Digital or CX`, `Other`), `sells` (`Jewellery`, `Fashion`, `Both`), `stores` (`Online only`, `1 to 4`, `5 to 20`, `21 to 100`, `More than 100`), `message`.
- Always send an `Idempotency-Key` (8-200 characters, a UUID is ideal). A retry with the same key returns the first request with `replayed: true`, so a network retry never books twice.
- The answer is `202` with `id`, `status` and a `Location` header for `GET /demo-requests/{id}`. A person from Ateliq replies by email within two working days.

## Versions

The version is in the path. `v1` only gains fields and endpoints. A breaking change ships as `/api/v2`, and `v1` then answers with `Deprecation` and `Sunset` headers for at least six months. Ignore unknown fields so new ones never break your client.

## Not this API

A brand's own workspace (running its agents, approvals, knowledge, webhooks) is a separate API at `https://app.ateliq.co/api/v1` that needs OAuth 2.1 or an API key - see the `ateliq-workspace` skill.
