{
 "openapi": "3.1.0",
 "info": {
  "title": "Ateliq API",
  "version": "1.0.0",
  "summary": "Search and read ateliq.co, get Ateliq's products, prices and agents, read the gold price, and request a demo.",
  "description": "The public API of ateliq.co. Ateliq is AI for fashion and jewellery brands: an in-store AI stylist with live try-on in the Ateliq Mirror and Counter, and twelve AI agents for trends, design, shoots and campaigns.\n\n**No key is needed.** Every operation here is open. Reads are cached for five minutes.\n\n**Sandbox.** The same API at `https://ateliq.co/api/sandbox/v1` checks and answers a demo request the same way but keeps and sends nothing. Use it to test.\n\n**Versioning.** The version is in the path (`/api/v1`). Changes inside a version only add fields and operations. A breaking change ships as a new path (`/api/v2`), and the old version then answers with `Deprecation` and `Sunset` headers (RFC 9745, RFC 8594) for at least six months before it is switched off. The changelog is at https://ateliq.co/docs/api/#versions.\n\n**Rate limits.** 120 requests a minute for each address, and 10 demo requests an hour. Every answer carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`; a 429 also carries `Retry-After`.\n\n**Errors.** Every error is `application/problem+json` (RFC 9457) with a stable `code`, a `detail` that says how to fix it, and `errors` for each wrong field.\n\n**Pagination.** Lists answer with `data` and `pagination` (`next_cursor`, `has_more`, `limit`, `total`). Send `next_cursor` back as `cursor`.\n\n**Idempotency.** Send an `Idempotency-Key` header with a demo request; the same key always answers with the first request.\n\n**A brand's own workspace** (its agents, runs, approvals, knowledge and leads) is a separate, signed-in API at https://app.ateliq.co/api/v1 with OAuth 2.1 and scopes: see https://ateliq.co/auth.md and https://app.ateliq.co/api/v1/openapi.json.",
  "contact": {
   "name": "Ateliq",
   "url": "https://ateliq.co/contact/",
   "email": "pb@ateliq.co"
  },
  "termsOfService": "https://ateliq.co/terms/"
 },
 "servers": [
  {
   "url": "https://ateliq.co/api/v1",
   "description": "Live"
  },
  {
   "url": "https://ateliq.co/api/sandbox/v1",
   "description": "Sandbox: demo requests are checked and answered, but nothing is kept or sent"
  }
 ],
 "externalDocs": {
  "description": "The Ateliq API guide",
  "url": "https://ateliq.co/docs/api/"
 },
 "tags": [
  {
   "name": "Content",
   "description": "Search and read the pages of ateliq.co."
  },
  {
   "name": "Catalogue",
   "description": "Products, prices and the twelve AI agents."
  },
  {
   "name": "Tools",
   "description": "Live data."
  },
  {
   "name": "Demo requests",
   "description": "Ask for a demo for a person who wants one."
  }
 ],
 "security": [],
 "paths": {
  "/": {
   "get": {
    "operationId": "getApiIndex",
    "summary": "What this API offers",
    "description": "The API's name, version, links to the documentation, the OpenAPI file and the MCP servers, and every endpoint.",
    "tags": [
     "Content"
    ],
    "parameters": [],
    "security": [],
    "responses": {
     "200": {
      "description": "The API index.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The API index.",
         "required": [
          "name",
          "version",
          "endpoints"
         ],
         "additionalProperties": true,
         "properties": {
          "name": {
           "type": "string",
           "description": "Ateliq API."
          },
          "version": {
           "type": "string",
           "description": "The API version."
          },
          "endpoints": {
           "type": "array",
           "description": "Every endpoint.",
           "items": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
             "method": {
              "type": "string",
              "description": "The HTTP method."
             },
             "path": {
              "type": "string",
              "description": "The path under the server address."
             },
             "description": {
              "type": "string",
              "description": "What it does."
             }
            }
           }
          }
         }
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  },
  "/search": {
   "get": {
    "operationId": "searchSite",
    "summary": "Search ateliq.co",
    "description": "Find the pages of ateliq.co that answer a question, best match first: product pages, documentation, pricing, customer stories, the journal and the free tools. Each hit has the part of the page that matched. Read a hit in full with GET /pages/{path}.",
    "tags": [
     "Content"
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "description": "The words to search for, for example `virtual try-on for jewellery`.",
      "schema": {
       "type": "string",
       "minLength": 1,
       "maxLength": 200
      }
     },
     {
      "name": "section",
      "in": "query",
      "description": "Only pages in this section, for example product, docs, blog, tools or customers. GET /sections lists them.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "How many items to return, 1 to 25.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 25,
       "default": 10
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "The `next_cursor` from the page before. Leave out for the first page.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "security": [],
    "responses": {
     "200": {
      "description": "Matching pages, best first.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "A page of search hits.",
         "required": [
          "object",
          "data",
          "pagination"
         ],
         "additionalProperties": false,
         "properties": {
          "object": {
           "type": "string",
           "const": "list",
           "description": "Always list."
          },
          "data": {
           "type": "array",
           "description": "The items on this page.",
           "items": {
            "$ref": "#/components/schemas/SearchHit"
           }
          },
          "pagination": {
           "$ref": "#/components/schemas/Pagination"
          }
         }
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  },
  "/pages": {
   "get": {
    "operationId": "listPages",
    "summary": "List the pages of ateliq.co",
    "description": "Every public page of ateliq.co with its title and summary, in path order. Use `section` to narrow it, or GET /search to find a page by what it says.",
    "tags": [
     "Content"
    ],
    "parameters": [
     {
      "name": "section",
      "in": "query",
      "description": "Only pages in this section, for example product, docs, blog, tools or customers. GET /sections lists them.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "How many items to return, 1 to 100.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "The `next_cursor` from the page before. Leave out for the first page.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "security": [],
    "responses": {
     "200": {
      "description": "A page of pages.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "A page of pages.",
         "required": [
          "object",
          "data",
          "pagination"
         ],
         "additionalProperties": false,
         "properties": {
          "object": {
           "type": "string",
           "const": "list",
           "description": "Always list."
          },
          "data": {
           "type": "array",
           "description": "The items on this page.",
           "items": {
            "$ref": "#/components/schemas/PageSummary"
           }
          },
          "pagination": {
           "$ref": "#/components/schemas/Pagination"
          }
         }
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  },
  "/pages/{path}": {
   "get": {
    "operationId": "getPage",
    "summary": "Read one page as Markdown",
    "description": "The main content of one page of ateliq.co as Markdown, with its title, summary and the date it last changed.",
    "tags": [
     "Content"
    ],
    "parameters": [
     {
      "name": "path",
      "in": "path",
      "required": true,
      "description": "The page's path without the first slash, for example `pricing` or `product/mirror`. Slashes inside the path are fine.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "security": [],
    "responses": {
     "200": {
      "description": "The page.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page"
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  },
  "/sections": {
   "get": {
    "operationId": "listSections",
    "summary": "List the site's sections",
    "description": "The sections of ateliq.co and how many pages each has. Use a section's id as the `section` filter on search and pages.",
    "tags": [
     "Content"
    ],
    "parameters": [],
    "security": [],
    "responses": {
     "200": {
      "description": "The sections.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The sections.",
         "required": [
          "object",
          "data"
         ],
         "additionalProperties": false,
         "properties": {
          "object": {
           "type": "string",
           "const": "list",
           "description": "Always list."
          },
          "data": {
           "type": "array",
           "description": "The sections, largest first.",
           "items": {
            "$ref": "#/components/schemas/Section"
           }
          }
         }
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  },
  "/products": {
   "get": {
    "operationId": "listProducts",
    "summary": "List Ateliq's products",
    "description": "Every Ateliq product: the Mirror and the Counter (hardware, on pre-order) and Design Studio, Studio, Insights and Head office (software, available now).",
    "tags": [
     "Catalogue"
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "description": "How many items to return, 1 to 100.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "The `next_cursor` from the page before. Leave out for the first page.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "security": [],
    "responses": {
     "200": {
      "description": "The products.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "A page of products.",
         "required": [
          "object",
          "data",
          "pagination"
         ],
         "additionalProperties": false,
         "properties": {
          "object": {
           "type": "string",
           "const": "list",
           "description": "Always list."
          },
          "data": {
           "type": "array",
           "description": "The items on this page.",
           "items": {
            "$ref": "#/components/schemas/Product"
           }
          },
          "pagination": {
           "$ref": "#/components/schemas/Pagination"
          }
         }
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  },
  "/products/{id}": {
   "get": {
    "operationId": "getProduct",
    "summary": "Get one product",
    "description": "One Ateliq product in full: its description, starting price, availability (available now or on pre-order) and specifications.",
    "tags": [
     "Catalogue"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "The product's id: mirror, counter, design-studio, studio, insights or head-office.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "security": [],
    "responses": {
     "200": {
      "description": "The product.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Product"
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  },
  "/pricing": {
   "get": {
    "operationId": "getPricing",
    "summary": "Get every Ateliq price",
    "description": "The software plans, add-ons, the Mirror and Counter by size, the implementation fee, yearly billing, credit packs and pricing questions, in US dollars. The same figures as https://ateliq.co/pricing/.",
    "tags": [
     "Catalogue"
    ],
    "parameters": [],
    "security": [],
    "responses": {
     "200": {
      "description": "The prices.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Pricing"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  },
  "/agents": {
   "get": {
    "operationId": "listAgents",
    "summary": "List the twelve AI agents",
    "description": "The AI agents that work for a brand's head office: what each does, when it runs and who approves its work.",
    "tags": [
     "Catalogue"
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "description": "How many items to return, 1 to 100.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 100,
       "default": 25
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "The `next_cursor` from the page before. Leave out for the first page.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "security": [],
    "responses": {
     "200": {
      "description": "The agents.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "A page of agents.",
         "required": [
          "object",
          "data",
          "pagination"
         ],
         "additionalProperties": false,
         "properties": {
          "object": {
           "type": "string",
           "const": "list",
           "description": "Always list."
          },
          "data": {
           "type": "array",
           "description": "The items on this page.",
           "items": {
            "$ref": "#/components/schemas/Agent"
           }
          },
          "pagination": {
           "$ref": "#/components/schemas/Pagination"
          }
         }
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  },
  "/agents/{id}": {
   "get": {
    "operationId": "getAgent",
    "summary": "Get one AI agent",
    "description": "One of the twelve AI agents in full: what it does, when it runs, who approves its work, and its page and documentation.",
    "tags": [
     "Catalogue"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "The agent's id, for example trend-scout or retail-analyst.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "security": [],
    "responses": {
     "200": {
      "description": "The agent.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Agent"
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  },
  "/gold-price": {
   "get": {
    "operationId": "getGoldPrice",
    "summary": "Get the international gold price",
    "description": "The international spot price of gold, per troy ounce and per gram at 24, 22, 18 and 14 karat, in US dollars, rupees, pounds and dirhams. Read at most every half hour. Not a shop's retail rate.",
    "tags": [
     "Tools"
    ],
    "parameters": [],
    "security": [],
    "responses": {
     "200": {
      "description": "The gold price.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GoldPrice"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     },
     "503": {
      "$ref": "#/components/responses/Unavailable"
     }
    }
   }
  },
  "/demo-requests": {
   "post": {
    "operationId": "createDemoRequest",
    "summary": "Request a demo for a person",
    "tags": [
     "Demo requests"
    ],
    "security": [],
    "description": "Ask Ateliq for a demo on behalf of a person who wants one. The request is saved, sent to the Ateliq team and added to its CRM; a person replies by email within two working days. Only send this when the person has asked for a demo and given these details. The answer is 202 with the request's id and a `Location` to check its status. Send an `Idempotency-Key` so a retry never makes a second request. On the sandbox server nothing is kept or sent.",
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "A unique value for this request (8 to 200 printable characters, for example a UUID). Sending the same key again answers with the first request and `replayed: true`.",
      "schema": {
       "type": "string",
       "minLength": 8,
       "maxLength": 200
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DemoRequestInput"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Accepted. The request is saved and is being passed to the team; check `status_url` (the `Location` header) for its status.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       },
       "Location": {
        "description": "Where to check the request's status.",
        "schema": {
         "type": "string",
         "format": "uri"
        }
       },
       "Idempotent-Replayed": {
        "description": "true when this answer repeats an earlier request with the same key.",
        "schema": {
         "type": "string",
         "enum": [
          "true"
         ]
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DemoRequest"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "422": {
      "$ref": "#/components/responses/Invalid"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     },
     "503": {
      "$ref": "#/components/responses/Unavailable"
     }
    }
   }
  },
  "/demo-requests/{id}": {
   "get": {
    "operationId": "getDemoRequest",
    "summary": "Check a demo request",
    "description": "Where a demo request stands: `received` (saved and being passed to the team) or `delivered` (the team has it). The person's details are never returned.",
    "tags": [
     "Demo requests"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "The id from the answer to POST /demo-requests.",
      "schema": {
       "type": "string",
       "pattern": "^dr_(test_)?[0-9a-f]{20,24}$"
      }
     }
    ],
    "security": [],
    "responses": {
     "200": {
      "description": "The request's status.",
      "headers": {
       "RateLimit-Limit": {
        "$ref": "#/components/headers/RateLimit-Limit"
       },
       "RateLimit-Remaining": {
        "$ref": "#/components/headers/RateLimit-Remaining"
       },
       "RateLimit-Reset": {
        "$ref": "#/components/headers/RateLimit-Reset"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DemoRequest"
        }
       }
      }
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "429": {
      "$ref": "#/components/responses/RateLimited"
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "PageSummary": {
    "type": "object",
    "description": "One page of ateliq.co, without its text.",
    "properties": {
     "path": {
      "type": "string",
      "description": "The page's path on ateliq.co, for example /pricing/."
     },
     "url": {
      "type": "string",
      "description": "The page's full address.",
      "format": "uri"
     },
     "title": {
      "type": "string",
      "description": "The page's title."
     },
     "description": {
      "type": "string",
      "description": "The page's one-line summary."
     },
     "section": {
      "type": "string",
      "description": "The site section the page is in, for example product, docs, blog or tools."
     },
     "updated": {
      "type": [
       "string",
       "null"
      ],
      "description": "The date the page last changed (YYYY-MM-DD), when known."
     },
     "words": {
      "type": "integer",
      "description": "How many words the page has."
     }
    },
    "required": [
     "path",
     "url",
     "title",
     "description",
     "section",
     "updated",
     "words"
    ],
    "additionalProperties": false
   },
   "Page": {
    "type": "object",
    "description": "One page of ateliq.co with its text.",
    "properties": {
     "path": {
      "type": "string",
      "description": "The page's path on ateliq.co, for example /pricing/."
     },
     "url": {
      "type": "string",
      "description": "The page's full address.",
      "format": "uri"
     },
     "title": {
      "type": "string",
      "description": "The page's title."
     },
     "description": {
      "type": "string",
      "description": "The page's one-line summary."
     },
     "section": {
      "type": "string",
      "description": "The site section the page is in, for example product, docs, blog or tools."
     },
     "updated": {
      "type": [
       "string",
       "null"
      ],
      "description": "The date the page last changed (YYYY-MM-DD), when known."
     },
     "words": {
      "type": "integer",
      "description": "How many words the page has."
     },
     "markdown": {
      "type": "string",
      "description": "The page's main content as Markdown."
     }
    },
    "required": [
     "path",
     "url",
     "title",
     "description",
     "section",
     "updated",
     "words",
     "markdown"
    ],
    "additionalProperties": false
   },
   "SearchHit": {
    "type": "object",
    "description": "A page that matched a search.",
    "properties": {
     "path": {
      "type": "string",
      "description": "The page's path on ateliq.co, for example /pricing/."
     },
     "url": {
      "type": "string",
      "description": "The page's full address.",
      "format": "uri"
     },
     "title": {
      "type": "string",
      "description": "The page's title."
     },
     "description": {
      "type": "string",
      "description": "The page's one-line summary."
     },
     "section": {
      "type": "string",
      "description": "The site section the page is in, for example product, docs, blog or tools."
     },
     "updated": {
      "type": [
       "string",
       "null"
      ],
      "description": "The date the page last changed (YYYY-MM-DD), when known."
     },
     "words": {
      "type": "integer",
      "description": "How many words the page has."
     },
     "snippet": {
      "type": "string",
      "description": "The part of the page that matched."
     },
     "score": {
      "type": "number",
      "description": "How well the page matched; higher is better."
     }
    },
    "required": [
     "path",
     "url",
     "title",
     "description",
     "section",
     "updated",
     "words",
     "snippet",
     "score"
    ],
    "additionalProperties": false
   },
   "Section": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "The section's name, as used in `section` filters."
     },
     "pages": {
      "type": "integer",
      "description": "How many pages it has."
     }
    },
    "required": [
     "id",
     "pages"
    ],
    "additionalProperties": false
   },
   "Pagination": {
    "type": "object",
    "description": "Cursor pagination, the same on every list.",
    "properties": {
     "limit": {
      "type": "integer",
      "description": "The page size used."
     },
     "next_cursor": {
      "type": [
       "string",
       "null"
      ],
      "description": "Send this as `cursor` to get the next page; null on the last page."
     },
     "has_more": {
      "type": "boolean",
      "description": "True when another page follows."
     },
     "total": {
      "type": "integer",
      "description": "How many items there are in all."
     }
    },
    "required": [
     "limit",
     "next_cursor",
     "has_more",
     "total"
    ],
    "additionalProperties": false
   },
   "Product": {
    "type": "object",
    "description": "One Ateliq product.",
    "properties": {
     "id": {
      "type": "string",
      "description": "The product's id, for example mirror or design-studio."
     },
     "name": {
      "type": "string",
      "description": "The product's name."
     },
     "kind": {
      "type": "string",
      "description": "hardware or software.",
      "enum": [
       "hardware",
       "software"
      ]
     },
     "summary": {
      "type": "string",
      "description": "One line on what it is."
     },
     "description": {
      "type": "string",
      "description": "A longer description."
     },
     "url": {
      "type": "string",
      "description": "The product's page.",
      "format": "uri"
     },
     "price_from_usd": {
      "type": [
       "integer",
       "null"
      ],
      "description": "The lowest price in US dollars for hardware; null for software, which is priced by plan."
     },
     "availability": {
      "type": "string",
      "description": "available or pre-order.",
      "enum": [
       "available",
       "pre-order"
      ]
     },
     "specs": {
      "type": "array",
      "description": "Sizes, forms and finishes, for hardware.",
      "items": {
       "type": "string",
       "description": "One specification."
      }
     }
    },
    "required": [
     "id",
     "name",
     "kind",
     "summary",
     "description",
     "url",
     "price_from_usd",
     "availability",
     "specs"
    ],
    "additionalProperties": false
   },
   "Plan": {
    "type": "object",
    "description": "One software plan.",
    "properties": {
     "id": {
      "type": "string",
      "description": "starter, scale or enterprise."
     },
     "name": {
      "type": "string",
      "description": "The plan's name."
     },
     "summary": {
      "type": "string",
      "description": "Who the plan is for."
     },
     "best_for": {
      "type": "string",
      "description": "A short label."
     },
     "price_monthly_usd": {
      "type": [
       "integer",
       "null"
      ],
      "description": "US dollars a month; null when the price is custom."
     },
     "price_yearly_usd": {
      "type": [
       "integer",
       "null"
      ],
      "description": "US dollars a year when paid yearly; null when custom."
     },
     "pricing": {
      "type": "string",
      "description": "fixed or custom.",
      "enum": [
       "fixed",
       "custom"
      ]
     },
     "includes": {
      "type": "array",
      "description": "What the plan includes.",
      "items": {
       "type": "string",
       "description": "One allowance or feature."
      }
     },
     "url": {
      "type": "string",
      "description": "The pricing page.",
      "format": "uri"
     }
    },
    "required": [
     "id",
     "name",
     "summary",
     "best_for",
     "price_monthly_usd",
     "price_yearly_usd",
     "pricing",
     "includes",
     "url"
    ],
    "additionalProperties": false
   },
   "AddOn": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "The add-on's id."
     },
     "name": {
      "type": "string",
      "description": "The add-on's name."
     },
     "price_monthly_usd": {
      "type": "integer",
      "description": "US dollars a month."
     },
     "unit": {
      "type": "string",
      "description": "What the price is per: workspace or store."
     },
     "includes": {
      "type": "array",
      "description": "What it adds.",
      "items": {
       "type": "string",
       "description": "One feature."
      }
     }
    },
    "required": [
     "id",
     "name",
     "price_monthly_usd",
     "unit",
     "includes"
    ],
    "additionalProperties": false
   },
   "HardwarePrice": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "mirror or counter."
     },
     "name": {
      "type": "string",
      "description": "The device's name."
     },
     "price_from_usd": {
      "type": [
       "integer",
       "null"
      ],
      "description": "The lowest price in US dollars."
     },
     "unit": {
      "type": "string",
      "description": "What the price is per."
     },
     "availability": {
      "type": "string",
      "description": "available or pre-order."
     },
     "specs": {
      "type": "array",
      "description": "Sizes, forms and finishes.",
      "items": {
       "type": "string",
       "description": "One specification."
      }
     }
    },
    "required": [
     "id",
     "name",
     "price_from_usd",
     "unit",
     "availability",
     "specs"
    ],
    "additionalProperties": false
   },
   "HardwareSize": {
    "type": "object",
    "properties": {
     "product": {
      "type": "string",
      "description": "mirror or counter."
     },
     "size": {
      "type": "string",
      "description": "The screen size."
     },
     "price_usd": {
      "type": "integer",
      "description": "US dollars for one piece."
     }
    },
    "required": [
     "product",
     "size",
     "price_usd"
    ],
    "additionalProperties": false
   },
   "CreditPack": {
    "type": "object",
    "properties": {
     "credits": {
      "type": "integer",
      "description": "How many credits."
     },
     "price_usd": {
      "type": "integer",
      "description": "US dollars."
     },
     "discount": {
      "type": [
       "string",
       "null"
      ],
      "description": "The discount on this pack, if any."
     }
    },
    "required": [
     "credits",
     "price_usd",
     "discount"
    ],
    "additionalProperties": false
   },
   "CreditUse": {
    "type": "object",
    "properties": {
     "action": {
      "type": "string",
      "description": "What a shopper or the team did."
     },
     "credits": {
      "type": "integer",
      "description": "Credits it uses."
     }
    },
    "required": [
     "action",
     "credits"
    ],
    "additionalProperties": false
   },
   "Faq": {
    "type": "object",
    "properties": {
     "question": {
      "type": "string",
      "description": "The question."
     },
     "answer": {
      "type": "string",
      "description": "The answer."
     }
    },
    "required": [
     "question",
     "answer"
    ],
    "additionalProperties": false
   },
   "Pricing": {
    "type": "object",
    "description": "Every Ateliq price.",
    "properties": {
     "currency": {
      "type": "string",
      "description": "Always USD."
     },
     "url": {
      "type": "string",
      "description": "The pricing page.",
      "format": "uri"
     },
     "plans": {
      "type": "array",
      "description": "The software plans.",
      "items": {
       "$ref": "#/components/schemas/Plan"
      }
     },
     "add_ons": {
      "type": "array",
      "description": "Monthly add-ons.",
      "items": {
       "$ref": "#/components/schemas/AddOn"
      }
     },
     "hardware": {
      "type": "array",
      "description": "The Mirror and the Counter.",
      "items": {
       "$ref": "#/components/schemas/HardwarePrice"
      }
     },
     "hardware_sizes": {
      "type": "array",
      "description": "The price of each size.",
      "items": {
       "$ref": "#/components/schemas/HardwareSize"
      }
     },
     "implementation_fee_usd": {
      "type": "integer",
      "description": "A one-time fee in US dollars."
     },
     "yearly_billing": {
      "type": "string",
      "description": "What paying yearly changes."
     },
     "credit_packs": {
      "type": "array",
      "description": "Top-up packs.",
      "items": {
       "$ref": "#/components/schemas/CreditPack"
      }
     },
     "credit_use": {
      "type": "array",
      "description": "What each action uses.",
      "items": {
       "$ref": "#/components/schemas/CreditUse"
      }
     },
     "taxes": {
      "type": "string",
      "description": "How taxes apply."
     },
     "faq": {
      "type": "array",
      "description": "Pricing questions and answers.",
      "items": {
       "$ref": "#/components/schemas/Faq"
      }
     }
    },
    "required": [
     "currency",
     "url",
     "plans",
     "add_ons",
     "hardware",
     "hardware_sizes",
     "implementation_fee_usd",
     "yearly_billing",
     "credit_packs",
     "credit_use",
     "taxes",
     "faq"
    ],
    "additionalProperties": false
   },
   "Agent": {
    "type": "object",
    "description": "One of the twelve AI agents that work for a brand's head office.",
    "properties": {
     "id": {
      "type": "string",
      "description": "The agent's id, for example trend-scout."
     },
     "name": {
      "type": "string",
      "description": "The agent's name."
     },
     "summary": {
      "type": "string",
      "description": "One line on what it does."
     },
     "does": {
      "type": "string",
      "description": "What it does, in full."
     },
     "runs": {
      "type": "string",
      "description": "When it runs."
     },
     "approval": {
      "type": "string",
      "description": "Who approves its work."
     },
     "status": {
      "type": "string",
      "description": "live or new."
     },
     "url": {
      "type": "string",
      "description": "The agent's page.",
      "format": "uri"
     },
     "docs_url": {
      "type": "string",
      "description": "The agent's documentation.",
      "format": "uri"
     }
    },
    "required": [
     "id",
     "name",
     "summary",
     "does",
     "runs",
     "approval",
     "status",
     "url",
     "docs_url"
    ],
    "additionalProperties": false
   },
   "GoldPrice": {
    "type": "object",
    "description": "The international gold price.",
    "properties": {
     "as_of": {
      "type": "string",
      "description": "When the price was read.",
      "format": "date-time"
     },
     "usd_per_troy_ounce": {
      "type": "number",
      "description": "US dollars for one troy ounce of pure gold."
     },
     "exchange_rates_per_usd": {
      "type": "object",
      "description": "The exchange rates used.",
      "properties": {
       "INR": {
        "type": "number",
        "description": "Rupees for one US dollar."
       },
       "GBP": {
        "type": "number",
        "description": "Pounds for one US dollar."
       },
       "AED": {
        "type": "number",
        "description": "Dirhams for one US dollar."
       }
      },
      "required": [
       "INR",
       "GBP",
       "AED"
      ],
      "additionalProperties": false
     },
     "per_gram": {
      "type": "object",
      "description": "The price of one gram at each purity.",
      "properties": {
       "24k": {
        "type": "object",
        "description": "The price of one gram in four currencies.",
        "properties": {
         "USD": {
          "type": "number",
          "description": "US dollars"
         },
         "INR": {
          "type": "number",
          "description": "Indian rupees"
         },
         "GBP": {
          "type": "number",
          "description": "Pounds sterling"
         },
         "AED": {
          "type": "number",
          "description": "UAE dirhams"
         }
        },
        "required": [
         "USD",
         "INR",
         "GBP",
         "AED"
        ],
        "additionalProperties": false
       },
       "22k": {
        "type": "object",
        "description": "The price of one gram in four currencies.",
        "properties": {
         "USD": {
          "type": "number",
          "description": "US dollars"
         },
         "INR": {
          "type": "number",
          "description": "Indian rupees"
         },
         "GBP": {
          "type": "number",
          "description": "Pounds sterling"
         },
         "AED": {
          "type": "number",
          "description": "UAE dirhams"
         }
        },
        "required": [
         "USD",
         "INR",
         "GBP",
         "AED"
        ],
        "additionalProperties": false
       },
       "18k": {
        "type": "object",
        "description": "The price of one gram in four currencies.",
        "properties": {
         "USD": {
          "type": "number",
          "description": "US dollars"
         },
         "INR": {
          "type": "number",
          "description": "Indian rupees"
         },
         "GBP": {
          "type": "number",
          "description": "Pounds sterling"
         },
         "AED": {
          "type": "number",
          "description": "UAE dirhams"
         }
        },
        "required": [
         "USD",
         "INR",
         "GBP",
         "AED"
        ],
        "additionalProperties": false
       },
       "14k": {
        "type": "object",
        "description": "The price of one gram in four currencies.",
        "properties": {
         "USD": {
          "type": "number",
          "description": "US dollars"
         },
         "INR": {
          "type": "number",
          "description": "Indian rupees"
         },
         "GBP": {
          "type": "number",
          "description": "Pounds sterling"
         },
         "AED": {
          "type": "number",
          "description": "UAE dirhams"
         }
        },
        "required": [
         "USD",
         "INR",
         "GBP",
         "AED"
        ],
        "additionalProperties": false
       }
      },
      "required": [
       "24k",
       "22k",
       "18k",
       "14k"
      ],
      "additionalProperties": false
     },
     "note": {
      "type": "string",
      "description": "What the price is and is not."
     },
     "source_url": {
      "type": "string",
      "description": "The calculator this feeds.",
      "format": "uri"
     }
    },
    "required": [
     "as_of",
     "usd_per_troy_ounce",
     "exchange_rates_per_usd",
     "per_gram",
     "note",
     "source_url"
    ],
    "additionalProperties": false
   },
   "DemoRequestInput": {
    "type": "object",
    "description": "A request for a demo of Ateliq, made for a person who asked for one.",
    "properties": {
     "name": {
      "type": "string",
      "description": "The person's full name.",
      "maxLength": 100
     },
     "email": {
      "type": "string",
      "description": "The person's work email. Free mailboxes such as gmail.com are refused.",
      "format": "email",
      "maxLength": 200
     },
     "brand": {
      "type": "string",
      "description": "The brand or company the person works for.",
      "maxLength": 120
     },
     "role": {
      "type": "string",
      "description": "The person's role.",
      "enum": [
       "Founder or CEO",
       "Head of retail",
       "Marketing",
       "Digital or CX",
       "Other"
      ]
     },
     "sells": {
      "type": "string",
      "description": "What the brand sells.",
      "enum": [
       "Jewellery",
       "Fashion",
       "Both"
      ]
     },
     "stores": {
      "type": "string",
      "description": "How many stores the brand has.",
      "enum": [
       "Online only",
       "1 to 4",
       "5 to 20",
       "21 to 100",
       "More than 100"
      ]
     },
     "message": {
      "type": "string",
      "description": "Anything the team should know before the demo.",
      "maxLength": 1000
     }
    },
    "required": [
     "name",
     "email",
     "brand"
    ],
    "additionalProperties": false
   },
   "DemoRequest": {
    "type": "object",
    "description": "A demo request and where it stands.",
    "properties": {
     "id": {
      "type": "string",
      "description": "The request's id; use it to check the status."
     },
     "status": {
      "type": "string",
      "description": "received: saved and being passed to the team. delivered: the team has it.",
      "enum": [
       "received",
       "delivered"
      ]
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "description": "When the request was made.",
      "format": "date-time"
     },
     "test": {
      "type": "boolean",
      "description": "True for a sandbox or dry-run request, which keeps and sends nothing."
     },
     "replayed": {
      "type": "boolean",
      "description": "True when this answer repeats an earlier request with the same Idempotency-Key."
     },
     "status_url": {
      "type": "string",
      "description": "Where to check the status.",
      "format": "uri"
     },
     "next_step": {
      "type": "string",
      "description": "What happens next, in words to pass on to the person."
     }
    },
    "required": [
     "id",
     "status",
     "test",
     "next_step"
    ],
    "additionalProperties": false
   },
   "Problem": {
    "type": "object",
    "description": "An error, as RFC 9457 problem details.",
    "required": [
     "type",
     "title",
     "status",
     "code",
     "detail"
    ],
    "additionalProperties": true,
    "properties": {
     "type": {
      "type": "string",
      "description": "A link to the documentation for this error.",
      "format": "uri"
     },
     "title": {
      "type": "string",
      "description": "A short name for the error."
     },
     "status": {
      "type": "integer",
      "description": "The HTTP status."
     },
     "code": {
      "type": "string",
      "description": "A stable code to branch on, for example not_found or rate_limited."
     },
     "detail": {
      "type": "string",
      "description": "What went wrong and how to fix it."
     },
     "instance": {
      "type": "string",
      "description": "The request path."
     },
     "errors": {
      "type": "object",
      "description": "For invalid_request: the field names and what is wrong with each.",
      "additionalProperties": {
       "type": "string"
      }
     }
    }
   }
  },
  "headers": {
   "RateLimit-Limit": {
    "description": "Requests allowed in the current window.",
    "schema": {
     "type": "integer"
    }
   },
   "RateLimit-Remaining": {
    "description": "Requests left in the current window.",
    "schema": {
     "type": "integer"
    }
   },
   "RateLimit-Reset": {
    "description": "Seconds until the window resets.",
    "schema": {
     "type": "integer"
    }
   },
   "Retry-After": {
    "description": "Seconds to wait before trying again.",
    "schema": {
     "type": "integer"
    }
   }
  },
  "responses": {
   "BadRequest": {
    "description": "The request is malformed: a missing or wrong parameter, or a cursor that is not from this API.",
    "headers": {
     "RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimit-Limit"
     }
    },
    "content": {
     "application/problem+json": {
      "schema": {
       "$ref": "#/components/schemas/Problem"
      }
     }
    }
   },
   "NotFound": {
    "description": "Nothing matches that path or id. `detail` says what ids exist.",
    "headers": {
     "RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimit-Limit"
     }
    },
    "content": {
     "application/problem+json": {
      "schema": {
       "$ref": "#/components/schemas/Problem"
      }
     }
    }
   },
   "Invalid": {
    "description": "The body's fields failed the checks. `errors` names each field.",
    "headers": {
     "RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimit-Limit"
     }
    },
    "content": {
     "application/problem+json": {
      "schema": {
       "$ref": "#/components/schemas/Problem"
      }
     }
    }
   },
   "RateLimited": {
    "description": "Too many requests. Wait for `Retry-After` seconds.",
    "headers": {
     "RateLimit-Limit": {
      "$ref": "#/components/headers/RateLimit-Limit"
     },
     "RateLimit-Remaining": {
      "$ref": "#/components/headers/RateLimit-Remaining"
     },
     "RateLimit-Reset": {
      "$ref": "#/components/headers/RateLimit-Reset"
     },
     "Retry-After": {
      "$ref": "#/components/headers/Retry-After"
     }
    },
    "content": {
     "application/problem+json": {
      "schema": {
       "$ref": "#/components/schemas/Problem"
      }
     }
    }
   },
   "Unavailable": {
    "description": "A source this operation needs is down. Try again after `Retry-After` seconds.",
    "headers": {
     "Retry-After": {
      "$ref": "#/components/headers/Retry-After"
     }
    },
    "content": {
     "application/problem+json": {
      "schema": {
       "$ref": "#/components/schemas/Problem"
      }
     }
    }
   }
  },
  "securitySchemes": {
   "workspaceOAuth": {
    "type": "oauth2",
    "description": "Not needed for this API. A brand's own workspace API and MCP server at https://app.ateliq.co use OAuth 2.1 with PKCE and these scopes; see https://ateliq.co/auth.md.",
    "flows": {
     "authorizationCode": {
      "authorizationUrl": "https://app.ateliq.co/oauth/authorize",
      "tokenUrl": "https://app.ateliq.co/api/oauth/token",
      "refreshUrl": "https://app.ateliq.co/api/oauth/token",
      "scopes": {
       "agents:read": "List the workspace's agents",
       "agents:run": "Run an agent",
       "runs:read": "Read runs and their results",
       "approvals:read": "Read approvals waiting for a person",
       "approvals:decide": "Approve or decline",
       "knowledge:read": "Read the workspace's knowledge",
       "knowledge:write": "Add to the workspace's knowledge",
       "webhooks:manage": "Manage webhooks"
      }
     }
    }
   }
  }
 }
}
