[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"openapi-document":3},{"host":4,"swagger":5,"info":6,"basePath":14,"schemes":15,"consumes":17,"produces":19,"securityDefinitions":20,"security":27,"tags":32,"paths":54,"definitions":862},"api.brila.ai","2.0",{"version":7,"title":8,"description":9,"termsOfService":10,"contact":11},"v1","Brila API","Brila turns a business listing (Google Maps or Yelp) into a published landing page.\nGeneration is **asynchronous**: you start a generation, then poll it until the site is ready.\n\n## Authentication\n\nEvery request must carry your API key in the `Api-Key` header:\n\n```\nApi-Key: sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\nYour key is shown in your Brila account once you have an **active subscription** — the public API is a\nsubscriber feature. Keep the key secret; it is tied to your account.\n\n- Missing \u002F invalid \u002F revoked key → `401 INVALID_API_KEY`.\n- Valid key but no active subscription → `403 SUBSCRIPTION_REQUIRED`.\n\n## Limits & fair use\n\nTwo kinds of limits apply:\n\n- **Creation limit** — your plan allows a fixed number of site generations per billing period.\n- **Request rate** — don't flood the API. Too many requests in a short window (for example,\n  polling too aggressively) return `429 TOO_MANY_REQUESTS`.\n\n**Best practices:** poll no faster than the `Retry-After` header suggests, back off when you\nget a `429`, and avoid tight retry loops.\n","https:\u002F\u002Fbrila.ai\u002Fterms-and-conditions",{"name":12,"url":13,"email":12},"support@brila.ai","https:\u002F\u002Fbrila.ai","\u002Fapi\u002Fpublic",[16],"https",[18],"application\u002Fjson",[18],{"api_key":21,"publishable_key":25},{"type":22,"name":23,"in":24},"apiKey","Api-Key","header",{"type":22,"name":23,"in":24,"description":26},"Read-only publishable key (pk_). Works only on section reads.",[28,30],{"api_key":29},[],{"publishable_key":31},[],[33,36,39,42,45,48,51],{"name":34,"description":35},"Generations","Generating a site is **asynchronous**: start a generation, then poll it by id until it finishes.\n\nCreate a generation, then poll it until `status` is `ready` or `failed`:\n\n- `queue` — accepted, waiting in the queue;\n- `processing` — generation is running;\n- `ready` — done; fetch the site via `GET \u002Fv1\u002Fsites\u002F{id}` (same id);\n- `failed` — generation failed.\n\nRespect the `Retry-After` header (seconds) between polls.\n",{"name":37,"description":38},"Sites","Read and export the sites you've generated. A site shows up here once its generation reaches `ready`.\n\nYou can list your sites, fetch one by id, inspect which content sections it has, and export its\ncontent as **HTML**, **JSON**, or **Markdown** — the whole site or only selected sections.\n",{"name":40,"description":41},"Domains","Attach, remove, or re-verify a **custom domain** on a site - a subscriber feature, one domain\nper site. Point the domain CNAME at your site in your DNS provider (no DNS records are returned\nby the API); the current domain and its `status` are shown on the site object. Attach and remove\nshare a rate limit of **5 requests per hour per IP** - exceeding it returns `429`.\n\nAfter pointing the CNAME, check the status yourself with `POST \u002Fv1\u002Fsites\u002F{id}\u002Fdomain\u002Fverify`\n(it returns the current `pending`\u002F`active`). Verification also runs **automatically in the\nbackground**, so `status` on `GET \u002Fv1\u002Fsites\u002F{id}` moves from `pending` to `active` on its own\nonce the CNAME resolves - no need to poll aggressively.\n",{"name":43,"description":44},"Uploads","Upload images to the CDN. Use uploaded image URLs when editing site sections.",{"name":46,"description":47},"User","Your account and the plan limits that apply to API usage (creation budget).",{"name":49,"description":50},"🤖 Agent Skills","[![Discord](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-Join-5865F2?logo=discord&logoColor=white)](https:\u002F\u002Fdiscord.gg\u002FuQ97scyNTX)\n\n**Repo:** [github.com\u002Fbrila-ai\u002Fagent-skills](https:\u002F\u002Fgithub.com\u002Fbrila-ai\u002Fagent-skills)\n\nPrefer to let an AI assistant do the work? The Brila plugin ships **skills + slash commands**\n(the [**🔌 MCP**](#tag\u002Fmcp) server included, registered automatically on install) that drive\nBrila for you end-to-end:\n\n- `\u002Fbrila:generate-site \u003Cgoogle-maps-or-yelp-url>` — generate a site from a Google Maps or\n  Yelp business listing, poll until `ready`, and return the **live URL** plus the site\n  content as **Markdown**.\n- `\u002Fbrila:widget \u003Csite>` — build an embeddable **reviews widget** from a site's content,\n  styled to match the store it will live on.\n\n### Install (Claude Code)\n\n```\n\u002Fplugin marketplace add brila-ai\u002Fagent-skills\n\u002Fplugin install brila@brila\n```\n\nAlso works in **OpenAI Codex** (`SKILL.md` is supported natively), or install into any agent via:\n\n```\nnpx skills add brila-ai\u002Fagent-skills --skill brila-generate-site\n# add --skill brila-widget for the reviews-widget skill\n```\n\n### What it does\n\n- **Generate** — `POST \u002Fv1\u002Fgenerations`, polls `GET \u002Fv1\u002Fgenerations\u002F{id}` until `ready`\u002F`failed`,\n  then exports `GET \u002Fv1\u002Fsites\u002F{id}\u002Fexport?format=md`.\n- **Edit sections** — `GET`\u002F`PUT \u002Fv1\u002Fsites\u002F{id}\u002Fsections\u002F{name}`, reading each section's schema\n  so it only changes what's allowed.\n- **Upload images** — `POST \u002Fv1\u002Fuploads`, then uses the returned CDN URL in a section's image field.\n- **Custom domain** — `POST`\u002F`DELETE \u002Fv1\u002Fsites\u002F{id}\u002Fdomain` + `POST \u002Fv1\u002Fsites\u002F{id}\u002Fdomain\u002Fverify`:\n  attach a domain, point the CNAME, and it verifies to `active` in the background.\n- **Manage sites** — `GET \u002Fv1\u002Fsites` to find a site by name, `DELETE \u002Fv1\u002Fsites\u002F{id}` to take one offline.\n- **Reviews widget** *(the `brila-widget` skill)* — reads the reviews already on your site,\n  **matches the destination store's visual style**, and generates a **self-contained** snippet\n  (inline HTML\u002FCSS\u002FJS, no API key, no calls) to paste into Shopify (Customize → Custom Liquid),\n  WordPress, Webflow, or any HTML block. It's a **static snapshot** — rebuild to refresh.\n\n### Using it\n\n- **Authenticate** one of two ways — connect the Brila **MCP server** and sign in with OAuth\n  (no key to copy), or set your **API key** (`BRILA_API_KEY`, or simply **paste it into the\n  chat**). An **active subscription** is required either way.\n- Then run `\u002Fbrila:generate-site \u003Cgoogle-maps-or-yelp-url>` (or just ask) — it returns the live\n  URL plus the site content as Markdown.\n\n*Under the hood the skill runs over the **MCP server** when you're connected, otherwise via a\nbundled **Python script** that calls the API with your key — same result either way. Want to\nwire up your own MCP client directly? See [**🔌 MCP**](#tag\u002Fmcp).*\n",{"name":52,"description":53},"🔌 MCP","Let an AI agent drive Brila through a hosted **remote MCP server** — connect any MCP client and\nBrila's tools show up in your agent. Nothing to install; sign in with OAuth or bring your API key.\n\n**Endpoint:** `https:\u002F\u002Fmcp.brila.ai\u002Fmcp` (Streamable HTTP).\n\n**Auth — OAuth or API key.** By default your MCP client opens a browser to sign in to Brila and\nauthorize access — nothing to copy. Already have an **API key**? Skip the browser and pass it as\nan `Api-Key` header instead. Either way the server only ever touches your own account. Most tools\nrequire an **active subscription**; `account_info` and `create_subscription_checkout` work without\none, so a new user can check status and subscribe.\n\n**Connect — Claude Code** (most common):\n\n```\nclaude mcp add --transport http brila https:\u002F\u002Fmcp.brila.ai\u002Fmcp\n```\n\n**Any other MCP client** — add it to your `mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"brila\": { \"type\": \"http\", \"url\": \"https:\u002F\u002Fmcp.brila.ai\u002Fmcp\" }\n  }\n}\n```\n\nTo use an API key instead of the browser sign-in, add a header to that entry:\n`\"headers\": { \"Api-Key\": \"sk_xxxxxxxx\" }`.\n\n### Product workflows\n\nGoal-oriented tools that chain several API calls and return rich, product-shaped results:\n\n- `generate_site` — start a site from a Google Maps or Yelp business URL; returns a\n  `generation_id` right away (build runs server-side), then poll `get_generation` until\n  `ready` and fetch it with `get_site` \u002F `export_site`; auto-resumes an in-progress generation.\n- `connect_domain` — attach a custom domain and poll verification until it's live (or hand back\n  the DNS to set and re-verify).\n- `set_section_image` — upload an image to the CDN and set it on a section in one step.\n- `analyze_reviews` — summarize a business's reviews: schema.org aggregate rating plus the\n  review-derived highlights on the site (advantages, popular items, special touches, tips).\n\n### Atomic tools\n\nThin, direct operations over the public API:\n\n- `get_generation` — check the status of a site generation by id.\n- `list_sites` — list your published Brila sites.\n- `get_site` — get a site overview (live URL, business, publish and domain status).\n- `delete_site` — take a site down (delete it).\n- `export_site` — get a site's content as Markdown, HTML, or JSON.\n- `list_sections` — list the parts of a site you can edit.\n- `get_section` — read one editable part of a site.\n- `update_section` — edit the text\u002Fcontent of a site section.\n- `add_domain` — attach a custom domain to a site.\n- `remove_domain` — remove the custom domain from a site.\n- `verify_domain` — check whether a site's custom domain is connected yet.\n- `list_uploads` — list your uploaded images.\n- `upload_image` — upload an image for use in a site.\n- `delete_upload` — delete an uploaded image by id.\n- `account_info` — your Brila plan and remaining site-creation budget; on the free plan it also\n  lists the purchasable plans and points to `create_subscription_checkout`.\n- `create_subscription_checkout` — start a subscription purchase; returns a payment link to open\n  in a browser (works without an active subscription).\n\nPrefer ready-made slash-commands instead? See [**🤖 Agent Skills**](#tag\u002Fagent-skills).\n",{"\u002Fv1\u002Fgenerations":55,"\u002Fv1\u002Fgenerations\u002F{id}":171,"\u002Fv1\u002Fsites":215,"\u002Fv1\u002Fsites\u002F{id}":278,"\u002Fv1\u002Fsites\u002F{id}\u002Fexport":347,"\u002Fv1\u002Fsites\u002F{id}\u002Fsections":408,"\u002Fv1\u002Fsites\u002F{id}\u002Fsections\u002F{name}":448,"\u002Fv1\u002Fsites\u002F{id}\u002Fdomain":557,"\u002Fv1\u002Fsites\u002F{id}\u002Fdomain\u002Fverify":672,"\u002Fv1\u002Fuser\u002Finfo":708,"\u002Fv1\u002Fuploads":727,"\u002Fv1\u002Fuploads\u002F{id}":827},{"post":56},{"description":57,"operationId":58,"tags":59,"security":60,"parameters":63,"responses":80},"Start generating a new site. Returns immediately; poll GET \u002Fv1\u002Fgenerations\u002F{id} until status is ready or failed.","createUserGeneration",[34],[61],{"api_key":62},[],[64],{"name":65,"in":65,"required":66,"schema":67},"body",true,{"required":68,"properties":70},[69],"source_url",{"source_url":71,"source":75},{"type":72,"description":73,"example":74},"string","Business listing URL (Google Maps short link or Yelp business URL)","https:\u002F\u002Fmaps.app.goo.gl\u002FywSSBWzGJy57LtKy7",{"type":72,"enum":76,"default":77,"description":79},[77,78],"google_maps","yelp","Business data source (google_maps or yelp)",{"202":81,"401":91,"403":104,"409":118,"422":130,"429":142,"451":152,"503":162},{"description":82,"schema":83,"headers":85},"Generation accepted and processing",{"$ref":84},"#\u002Fdefinitions\u002FGeneration",{"Location":86,"Retry-After":88},{"description":87,"type":72},"URL to poll this generation (GET \u002Fv1\u002Fgenerations\u002F{id})",{"description":89,"type":90},"Seconds to wait before the next poll","integer",{"description":92,"schema":93},"Missing, invalid, or revoked API key",{"required":94,"properties":97},[95,96],"type","message",{"type":98,"message":100,"details":102},{"type":72,"example":99},"INVALID_API_KEY",{"type":72,"example":101},"Invalid API key",{"type":103},"object",{"description":105,"schema":106},"Possible error codes:\n- `SUBSCRIPTION_REQUIRED` — no active subscription\n- `SITE_LIMIT_REACHED` — the plan site limit is reached",{"required":107,"properties":108},[95,96],{"type":109,"message":113,"details":114},{"type":72,"enum":110},[111,112],"SUBSCRIPTION_REQUIRED","SITE_LIMIT_REACHED",{"type":72},{"type":103,"properties":115},{"max_sites":116},{"type":90,"description":117},"The plan site limit (present on SITE_LIMIT_REACHED)",{"description":119,"schema":120},"A generation for this business is already running",{"required":121,"properties":122},[95,96],{"type":123,"message":125,"details":126},{"type":72,"example":124},"GENERATION_IN_PROGRESS",{"type":72},{"type":103,"properties":127},{"site_id":128},{"type":72,"description":129},"ID of the site being generated (only when it belongs to the current user)",{"description":131,"schema":132},"Possible error codes:\n- `INVALID_PARAMS` — invalid request body\n- `INSUFFICIENT_REVIEWS` — the business has too few reviews to generate\n- `BUSINESS_INFO_NOT_FOUND` — no business found for the source_url",{"required":133,"properties":134},[95,96],{"type":135,"message":140,"details":141},{"type":72,"enum":136},[137,138,139],"INVALID_PARAMS","INSUFFICIENT_REVIEWS","BUSINESS_INFO_NOT_FOUND",{"type":72},{"type":103},{"description":143,"schema":144},"Rate limit exceeded for this endpoint",{"required":145,"properties":146},[95,96],{"type":147,"message":149,"details":151},{"type":72,"example":148},"TOO_MANY_REQUESTS",{"type":72,"example":150},"Too many requests, please try again later",{"type":103},{"description":153,"schema":154},"The business is on the blocklist: no site can be generated for it, retrying will not help",{"required":155,"properties":156},[95,96],{"type":157,"message":159,"details":161},{"type":72,"example":158},"BUSINESS_BLOCKED",{"type":72,"example":160},"We can't create a website for this business.",{"type":103},{"description":163,"schema":164},"The site generation service is unavailable or under maintenance",{"required":165,"properties":166},[95,96],{"type":167,"message":169,"details":170},{"type":72,"example":168},"SERVICE_UNAVAILABLE",{"type":72},{"type":103},{"get":172},{"description":173,"operationId":174,"tags":175,"security":176,"parameters":179,"responses":183},"Poll a generation by id. Once status is ready, fetch the site via GET \u002Fv1\u002Fsites\u002F{id} (it also appears in GET \u002Fv1\u002Fsites).","getUserGeneration",[34],[177],{"api_key":178},[],[180],{"name":181,"in":182,"required":66,"type":72},"id","path",{"200":184,"401":187,"403":194,"404":203},{"description":185,"schema":186},"The generation with its current status",{"$ref":84},{"description":92,"schema":188},{"required":189,"properties":190},[95,96],{"type":191,"message":192,"details":193},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":196},"Valid API key, but the account has no active subscription",{"required":197,"properties":198},[95,96],{"type":199,"message":200,"details":202},{"type":72,"example":111},{"type":72,"example":201},"Active subscription required",{"type":103},{"description":204,"schema":205},"Site not found, or its HTML is not available",{"required":206,"properties":207},[95,96],{"type":208,"message":212,"details":214},{"type":72,"enum":209},[210,211],"NOT_FOUND","HTML_NOT_AVAILABLE",{"type":72,"example":213},"Site not found",{"type":103},{"get":216},{"description":217,"operationId":218,"tags":219,"security":220,"parameters":223,"responses":235},"List your sites","getUserSites",[37],[221],{"api_key":222},[],[224,230],{"name":225,"default":226,"minimum":226,"in":227,"description":225,"required":228,"type":90,"format":229},"page",1,"query",false,"int32",{"name":231,"default":232,"minimum":226,"maximum":233,"in":227,"description":234,"required":228,"type":90,"format":229},"per_page",10,100,"number of results to return. Max: 100",{"200":236,"401":245,"403":252,"422":259},{"description":237,"schema":238},"Response",{"properties":239},{"total":240,"sites":241},{"type":90},{"type":242,"items":243},"array",{"$ref":244},"#\u002Fdefinitions\u002FSite",{"description":92,"schema":246},{"required":247,"properties":248},[95,96],{"type":249,"message":250,"details":251},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":253},{"required":254,"properties":255},[95,96],{"type":256,"message":257,"details":258},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":260,"schema":261},"Invalid params, format, or section selection",{"required":262,"properties":263},[95,96],{"type":264,"message":268,"details":270,"fields":271},{"type":72,"enum":265},[137,266,267],"INVALID_FORMAT","INVALID_SECTION",{"type":72,"example":269},"Invalid params",{"type":103},{"type":242,"description":272,"items":273},"Per-field validation errors (present on INVALID_PARAMS).",{"properties":274},{"field":275,"type":276,"message":277},{"type":72},{"type":72},{"type":72},{"get":279,"delete":313},{"description":280,"operationId":281,"tags":282,"security":283,"parameters":286,"responses":288},"Fetch a single site by id","getUserSite",[37],[284],{"api_key":285},[],[287],{"name":181,"in":182,"required":66,"type":72},{"200":289,"401":291,"403":298,"404":305},{"description":237,"schema":290},{"$ref":244},{"description":92,"schema":292},{"required":293,"properties":294},[95,96],{"type":295,"message":296,"details":297},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":299},{"required":300,"properties":301},[95,96],{"type":302,"message":303,"details":304},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":204,"schema":306},{"required":307,"properties":308},[95,96],{"type":309,"message":311,"details":312},{"type":72,"enum":310},[210,211],{"type":72,"example":213},{"type":103},{"description":314,"operationId":315,"tags":316,"security":317,"parameters":320,"responses":322},"Delete a site and take it offline. Note: a site deleted within the current billing period still counts toward your creation limit until the period resets.","deleteUserSite",[37],[318],{"api_key":319},[],[321],{"name":181,"in":182,"required":66,"type":72},{"204":323,"401":325,"403":332,"404":339},{"description":324},"Site deleted",{"description":92,"schema":326},{"required":327,"properties":328},[95,96],{"type":329,"message":330,"details":331},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":333},{"required":334,"properties":335},[95,96],{"type":336,"message":337,"details":338},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":204,"schema":340},{"required":341,"properties":342},[95,96],{"type":343,"message":345,"details":346},{"type":72,"enum":344},[210,211],{"type":72,"example":213},{"type":103},{"get":348},{"description":349,"operationId":350,"tags":351,"produces":352,"security":355,"parameters":358,"responses":369},"Export a site's content. `format=html` returns the raw published HTML, `format=json` the structured section data (`{ id, data }`), `format=md` human-readable Markdown. Use `sections` (json\u002Fmd only, comma-separated) to export only chosen sections — list available section names via GET \u002Fv1\u002Fsites\u002F{id}\u002Fsections.","exportUserSite",[37],[18,353,354],"text\u002Fhtml","text\u002Fmarkdown",[356],{"api_key":357},[],[359,360,366],{"name":181,"in":182,"required":66,"type":72},{"name":361,"in":227,"required":228,"type":72,"enum":362,"default":364},"format",[363,364,365],"html","json","md",{"name":367,"in":227,"required":228,"type":72,"description":368},"sections","Comma-separated section names (json\u002Fmd only)",{"200":370,"401":372,"403":379,"404":386,"422":394},{"description":371},"Site content in the requested format",{"description":92,"schema":373},{"required":374,"properties":375},[95,96],{"type":376,"message":377,"details":378},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":380},{"required":381,"properties":382},[95,96],{"type":383,"message":384,"details":385},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":204,"schema":387},{"required":388,"properties":389},[95,96],{"type":390,"message":392,"details":393},{"type":72,"enum":391},[210,211],{"type":72,"example":213},{"type":103},{"description":260,"schema":395},{"required":396,"properties":397},[95,96],{"type":398,"message":400,"details":401,"fields":402},{"type":72,"enum":399},[137,266,267],{"type":72,"example":269},{"type":103},{"type":242,"description":272,"items":403},{"properties":404},{"field":405,"type":406,"message":407},{"type":72},{"type":72},{"type":72},{"get":409},{"description":410,"operationId":411,"tags":412,"security":413,"parameters":418,"responses":420},"List the site section names (use them in the export `sections` param)","getUserSiteSections",[37],[414,416],{"api_key":415},[],{"publishable_key":417},[],[419],{"name":181,"in":182,"required":66,"type":72},{"200":421,"401":426,"403":433,"404":440},{"description":237,"schema":422},{"properties":423},{"sections":424},{"type":242,"items":425},{"type":72},{"description":92,"schema":427},{"required":428,"properties":429},[95,96],{"type":430,"message":431,"details":432},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":434},{"required":435,"properties":436},[95,96],{"type":437,"message":438,"details":439},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":204,"schema":441},{"required":442,"properties":443},[95,96],{"type":444,"message":446,"details":447},{"type":72,"enum":445},[210,211],{"type":72,"example":213},{"type":103},{"get":449,"put":489},{"description":450,"operationId":451,"tags":452,"security":453,"parameters":458,"responses":463},"Read a section, including its read-only JSON `$schema` (what is editable).","getUserSiteSection",[37],[454,456],{"api_key":455},[],{"publishable_key":457},[],[459,460],{"name":181,"in":182,"required":66,"type":72},{"name":461,"in":182,"required":66,"type":72,"description":462},"name","Section name (e.g. hero, gallery, business)",{"200":464,"401":467,"403":474,"404":481},{"description":237,"schema":465},{"$ref":466},"#\u002Fdefinitions\u002FSiteSection",{"description":92,"schema":468},{"required":469,"properties":470},[95,96],{"type":471,"message":472,"details":473},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":475},{"required":476,"properties":477},[95,96],{"type":478,"message":479,"details":480},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":204,"schema":482},{"required":483,"properties":484},[95,96],{"type":485,"message":487,"details":488},{"type":72,"enum":486},[210,211],{"type":72,"example":213},{"type":103},{"description":490,"operationId":491,"tags":492,"security":493,"parameters":496,"responses":509},"Edit a section. Send the editable fields under `data`. **Image fields must be URLs you host on Brila** — upload your image via `POST \u002Fv1\u002Fuploads` and use the returned `asset.url`; external image URLs are rejected with `SITE_SECTION_INVALID_URL`. The server validates against the stored schema (any `$schema`\u002F`_meta` you send is ignored) and re-renders the site asynchronously.","updateUserSiteSection",[37],[494],{"api_key":495},[],[497,498,499],{"name":181,"in":182,"required":66,"type":72},{"name":461,"in":182,"required":66,"type":72,"description":462},{"name":65,"in":65,"required":66,"schema":500},{"required":501,"properties":503},[502],"data",{"data":504,"disabled":506},{"type":103,"description":505},"Editable fields for the section (must satisfy the stored schema). Image fields must be URLs you host on Brila (from `POST \u002Fv1\u002Fuploads`); external image URLs are rejected.",{"type":507,"description":508},"boolean","Exclude the section from the rendered site.",{"200":510,"401":513,"403":520,"404":531,"422":539},{"description":511,"schema":512},"Section updated; the site re-renders asynchronously.",{"$ref":466},{"description":92,"schema":514},{"required":515,"properties":516},[95,96],{"type":517,"message":518,"details":519},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":521,"schema":522},"Possible error codes:\n- `FORBIDDEN` - not the owner, or the site is locked\n- `SECTION_READ_ONLY` - this section cannot be edited",{"required":523,"properties":524},[95,96],{"type":525,"message":529,"details":530},{"type":72,"enum":526},[527,528],"FORBIDDEN","SECTION_READ_ONLY",{"type":72},{"type":103},{"description":204,"schema":532},{"required":533,"properties":534},[95,96],{"type":535,"message":537,"details":538},{"type":72,"enum":536},[210,211],{"type":72,"example":213},{"type":103},{"description":540,"schema":541},"Possible error codes:\n- `SITE_SECTION_INVALID_DATA` - data failed the stored schema\n- `SITE_SECTION_INVALID_URL` - an image field is not a Brila-hosted URL",{"required":542,"properties":543},[95,96],{"type":544,"message":548,"details":549,"fields":550},{"type":72,"enum":545},[546,547],"SITE_SECTION_INVALID_DATA","SITE_SECTION_INVALID_URL",{"type":72},{"type":103},{"type":242,"description":551,"items":552},"Per-field schema validation errors.",{"properties":553},{"field":554,"type":555,"message":556},{"type":72},{"type":72},{"type":72},{"post":558,"delete":631},{"description":559,"operationId":560,"tags":561,"security":562,"parameters":565,"responses":574},"Attach a custom domain to a site. Subscriber feature; one domain per site. Point the domain CNAME at your site out of band - no DNS records are returned. The current domain is also shown on the site object (`GET \u002Fv1\u002Fsites\u002F{id}`). Rate-limited to 5 requests per hour per IP (shared with domain removal). After pointing the CNAME, check the status yourself with POST \u002Fv1\u002Fsites\u002F{id}\u002Fdomain\u002Fverify (returns the current `pending`\u002F`active`). Verification also runs automatically in the background, so the status on GET \u002Fv1\u002Fsites\u002F{id} moves to `active` on its own once the CNAME resolves.","createSiteDomain",[40],[563],{"api_key":564},[],[566,567],{"name":181,"in":182,"required":66,"type":72},{"name":65,"in":65,"required":66,"schema":568},{"required":569,"properties":571},[570],"domain",{"domain":572},{"type":72,"example":573},"example.com",{"201":575,"401":579,"403":586,"404":593,"409":601,"422":610,"429":624},{"description":576,"schema":577},"Domain attached",{"$ref":578},"#\u002Fdefinitions\u002FSiteDomain",{"description":92,"schema":580},{"required":581,"properties":582},[95,96],{"type":583,"message":584,"details":585},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":587},{"required":588,"properties":589},[95,96],{"type":590,"message":591,"details":592},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":204,"schema":594},{"required":595,"properties":596},[95,96],{"type":597,"message":599,"details":600},{"type":72,"enum":598},[210,211],{"type":72,"example":213},{"type":103},{"description":119,"schema":602},{"required":603,"properties":604},[95,96],{"type":605,"message":606,"details":607},{"type":72,"example":124},{"type":72},{"type":103,"properties":608},{"site_id":609},{"type":72,"description":129},{"description":260,"schema":611},{"required":612,"properties":613},[95,96],{"type":614,"message":616,"details":617,"fields":618},{"type":72,"enum":615},[137,266,267],{"type":72,"example":269},{"type":103},{"type":242,"description":272,"items":619},{"properties":620},{"field":621,"type":622,"message":623},{"type":72},{"type":72},{"type":72},{"description":143,"schema":625},{"required":626,"properties":627},[95,96],{"type":628,"message":629,"details":630},{"type":72,"example":148},{"type":72,"example":150},{"type":103},{"description":632,"operationId":633,"tags":634,"security":635,"parameters":638,"responses":640},"Remove the site's custom domain. Rate-limited to 5 requests per hour per IP (shared with domain creation).","deleteSiteDomain",[40],[636],{"api_key":637},[],[639],{"name":181,"in":182,"required":66,"type":72},{"204":641,"401":643,"403":650,"404":657,"429":665},{"description":642},"Domain removed",{"description":92,"schema":644},{"required":645,"properties":646},[95,96],{"type":647,"message":648,"details":649},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":651},{"required":652,"properties":653},[95,96],{"type":654,"message":655,"details":656},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":204,"schema":658},{"required":659,"properties":660},[95,96],{"type":661,"message":663,"details":664},{"type":72,"enum":662},[210,211],{"type":72,"example":213},{"type":103},{"description":143,"schema":666},{"required":667,"properties":668},[95,96],{"type":669,"message":670,"details":671},{"type":72,"example":148},{"type":72,"example":150},{"type":103},{"post":673},{"description":674,"operationId":675,"tags":676,"security":677,"parameters":680,"responses":682},"Re-check the custom domain now and return its current status. Verification also runs automatically in the background; use this to trigger an immediate check after pointing the CNAME. Returns the domain with status `pending` or `active`.","verifySiteDomain",[40],[678],{"api_key":679},[],[681],{"name":181,"in":182,"required":66,"type":72},{"200":683,"401":686,"403":693,"404":700},{"description":684,"schema":685},"Current domain status",{"$ref":578},{"description":92,"schema":687},{"required":688,"properties":689},[95,96],{"type":690,"message":691,"details":692},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":694},{"required":695,"properties":696},[95,96],{"type":697,"message":698,"details":699},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":204,"schema":701},{"required":702,"properties":703},[95,96],{"type":704,"message":706,"details":707},{"type":72,"enum":705},[210,211],{"type":72,"example":213},{"type":103},{"get":709},{"description":710,"operationId":711,"tags":712,"security":713,"responses":716},"Your account and the plan limits that apply to API usage. Works without an active subscription (you get the `free` plan), so you can check status before subscribing.","getUserInfo",[46],[714],{"api_key":715},[],{"200":717,"401":720},{"description":237,"schema":718},{"$ref":719},"#\u002Fdefinitions\u002FUser",{"description":92,"schema":721},{"required":722,"properties":723},[95,96],{"type":724,"message":725,"details":726},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"get":728,"post":774},{"description":729,"operationId":730,"tags":731,"security":732,"parameters":735,"responses":738},"List your uploads","getUserUploads",[43],[733],{"api_key":734},[],[736,737],{"name":225,"default":226,"minimum":226,"in":227,"description":225,"required":228,"type":90,"format":229},{"name":231,"default":232,"minimum":226,"maximum":233,"in":227,"description":234,"required":228,"type":90,"format":229},{"200":739,"401":746,"403":753,"422":760},{"description":237,"schema":740},{"properties":741},{"total":742,"uploads":743},{"type":90},{"type":242,"items":744},{"$ref":745},"#\u002Fdefinitions\u002FUpload",{"description":92,"schema":747},{"required":748,"properties":749},[95,96],{"type":750,"message":751,"details":752},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":754},{"required":755,"properties":756},[95,96],{"type":757,"message":758,"details":759},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":260,"schema":761},{"required":762,"properties":763},[95,96],{"type":764,"message":766,"details":767,"fields":768},{"type":72,"enum":765},[137,266,267],{"type":72,"example":269},{"type":103},{"type":242,"description":272,"items":769},{"properties":770},{"field":771,"type":772,"message":773},{"type":72},{"type":72},{"type":72},{"description":775,"operationId":776,"tags":777,"consumes":778,"security":780,"parameters":783,"responses":788},"Upload an image to the CDN","createUpload",[43],[779],"multipart\u002Fform-data",[781],{"api_key":782},[],[784],{"name":785,"in":786,"type":785,"required":66,"description":787},"file","formData","Image file to upload (png, jpeg, webp, svg)",{"201":789,"401":792,"403":799,"422":806,"503":820},{"description":790,"schema":791},"Upload created",{"$ref":745},{"description":92,"schema":793},{"required":794,"properties":795},[95,96],{"type":796,"message":797,"details":798},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":800},{"required":801,"properties":802},[95,96],{"type":803,"message":804,"details":805},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":260,"schema":807},{"required":808,"properties":809},[95,96],{"type":810,"message":812,"details":813,"fields":814},{"type":72,"enum":811},[137,266,267],{"type":72,"example":269},{"type":103},{"type":242,"description":272,"items":815},{"properties":816},{"field":817,"type":818,"message":819},{"type":72},{"type":72},{"type":72},{"description":163,"schema":821},{"required":822,"properties":823},[95,96],{"type":824,"message":825,"details":826},{"type":72,"example":168},{"type":72},{"type":103},{"delete":828},{"description":829,"operationId":830,"tags":831,"security":832,"parameters":835,"responses":837},"Delete an upload","deleteUpload",[43],[833],{"api_key":834},[],[836],{"name":181,"in":182,"required":66,"type":72},{"204":838,"401":840,"403":847,"404":854},{"description":839},"Upload deleted",{"description":92,"schema":841},{"required":842,"properties":843},[95,96],{"type":844,"message":845,"details":846},{"type":72,"example":99},{"type":72,"example":101},{"type":103},{"description":195,"schema":848},{"required":849,"properties":850},[95,96],{"type":851,"message":852,"details":853},{"type":72,"example":111},{"type":72,"example":201},{"type":103},{"description":204,"schema":855},{"required":856,"properties":857},[95,96],{"type":858,"message":860,"details":861},{"type":72,"enum":859},[210,211],{"type":72,"example":213},{"type":103},{"Generation":863,"Site":890,"SiteSection":932,"SiteDomain":949,"User":960,"Upload":992,"Error":1019},{"required":864,"properties":866},[181,865],"status",{"id":867,"status_url":870,"status":873,"source":879,"source_url":882,"created_at":884,"estimated_at":887},{"type":72,"description":868,"example":869},"Generation id — poll GET \u002Fv1\u002Fgenerations\u002F{id} with it","69f212e1c0cd718618650bc2",{"type":72,"description":871,"example":872},"URL to poll this generation (same as the Location header on create)","https:\u002F\u002Fapi.brila.ai\u002Fapi\u002Fpublic\u002Fv1\u002Fgenerations\u002F69f212e1c0cd718618650bc2",{"type":72,"enum":874,"example":875},[875,876,877,878],"queue","processing","ready","failed",{"type":72,"enum":880,"description":881,"example":77},[77,78],"The source submitted in the create request",{"type":72,"description":883,"example":74},"The source_url submitted in the create request",{"type":90,"description":885,"example":886},"When the generation was created (ms epoch)",1777472225477,{"type":90,"description":888,"example":889},"Estimated completion time (ms epoch); null until known",1777472345477,{"required":891,"properties":892},[181],{"id":893,"name":895,"site_name":898,"site_url":901,"source_url":904,"description":906,"rating":909,"reviews_count":913,"city":916,"country":919,"created_at":922,"html":924,"domain":930},{"type":72,"description":894,"example":869},"Unique site identifier.",{"type":72,"description":896,"example":897},"Business display name.","Van Stapele Koekmakerij",{"type":72,"description":899,"example":900},"URL slug \u002F subdomain of the published site.","van-stapele-koekmakerij",{"type":72,"description":902,"example":903},"Live URL of the published site.","https:\u002F\u002Fvan-stapele-koekmakerij.brila.ai",{"type":72,"description":905,"example":74},"Business listing (Google Maps or Yelp) the site was generated from.",{"type":72,"description":907,"example":908},"Short business description shown on the site.","Bakery that makes only one cookie: dark chocolate with a gooey white chocolate center.",{"type":910,"description":911,"example":912},"number","Average rating from the source listing (0–5).",4.8,{"type":90,"description":914,"example":915},"Number of reviews on the source listing.",14709,{"type":72,"description":917,"example":918},"City of the business.","Amsterdam",{"type":72,"description":920,"example":921},"Country of the business.","Netherlands",{"type":90,"description":923,"example":886},"When the site was created, epoch ms.",{"type":103,"description":925,"properties":926},"Exported static HTML of the site.",{"url":927},{"type":72,"description":928,"example":929},"URL of the exported HTML file on the CDN.","https:\u002F\u002Fsrc.brila.ai\u002Fye\u002Fsites\u002Fobv4VE_zSbe7X6QC.html",{"$ref":578,"description":931},"The site's custom domain, or null if none is attached.",{"required":933,"properties":934},[461,502],{"name":935,"disabled":937,"data":938},{"type":72,"example":936},"hero",{"type":507,"example":228},{"type":103,"description":939,"example":940},"The section's editable content, plus a read-only `$schema` describing the editable shape. When editing, send only the editable fields under `data` - any `$schema`\u002F`_meta` you send is ignored and the server validates against the stored schema.",{"$schema":941,"headline":947,"image":948},{"type":103,"required":942,"properties":944},[943],"headline",{"headline":945,"image":946},{"type":72},{"type":72},"The best coffee in town","https:\u002F\u002Fsrc.brila.ai\u002Fye\u002Fhero\u002Fabc.jpg",{"required":950,"properties":951},[461,865],{"name":952,"status":955},{"type":72,"description":953,"example":954},"The custom domain attached to the site.","www.example.com",{"type":72,"enum":956,"description":959},[957,958],"pending","active","Verification status. Starts pending; becomes active once the CNAME is verified.",{"required":961,"properties":964},[962,963],"user","subscription",{"user":965,"subscription":972},{"type":103,"required":966,"properties":968},[181,967],"email",{"id":969,"email":970},{"type":72,"example":869},{"type":72,"example":971},"you@company.com",{"type":103,"description":973,"required":974,"properties":979},"The account plan and its creation budget; the **free** plan when there is no active subscription.",[975,976,977,978],"plan","max_sites","sites_used","resets_at",{"plan":980,"max_sites":983,"sites_used":986,"resets_at":989},{"type":72,"description":981,"example":982},"Current plan — `free` when there is no active subscription, otherwise the paid plan.","free",{"type":90,"description":984,"example":985},"Maximum number of sites allowed by the current plan.",3,{"type":90,"description":987,"example":988},"Sites using the creation budget this monthly window (incl. deleted-in-window).",2,{"type":90,"description":990,"example":991},"Creation budget reset, epoch ms. Monthly window, even on annual plans.",1735689600000,{"required":993,"properties":996},[181,994,995],"asset","created_at",{"id":997,"asset":1000,"created_at":1016},{"type":72,"description":998,"example":999},"Upload ID","6679a0e8b1c2d3f4e5a6b7c8",{"type":103,"description":1001,"required":1002,"properties":1006},"The uploaded image on the CDN.",[1003,1004,1005],"url","width","height",{"url":1007,"width":1010,"height":1013},{"type":72,"description":1008,"example":1009},"CDN URL of the uploaded image","https:\u002F\u002Fcdn.brila.ai\u002Fphotos\u002Fabc123.jpg",{"type":90,"description":1011,"example":1012},"Image width in pixels",1920,{"type":90,"description":1014,"example":1015},"Image height in pixels",1080,{"type":90,"description":1017,"example":1018},"When the upload was created, epoch ms.",1719600000,{"required":1020,"properties":1021},[95,96],{"type":1022,"message":1024,"details":1025,"fields":1027},{"type":72,"enum":1023},[99,111,112,137,210,211,266,267,546,528,124,138,139,158,148,168],{"type":72},{"type":103,"description":1026},"Additional context about the error. Structure depends on type.",{"type":242,"description":272,"items":1028},{"required":1029,"properties":1031},[1030,96],"field",{"field":1032,"type":1034,"message":1036},{"type":72,"description":1033},"Field name in dot-notation (e.g. id, sections)",{"type":72,"description":1035},"Field error type (e.g. REQUIRED, FORMAT, TYPE)",{"type":72}]