A versioned, token-authenticated REST + webhook surface that exposes every Design Engine capability — token resolution, brand synthesis, component generation, governance audit, memory, and cross-OS distribution.
Base URL
https://api.ailysi.com/v1 path prefix · Accept-Version header for opt-in v2 · deprecations announced 90 days out.Bearer API Key
Per-tenant API key. Header: Authorization: Bearer de_live_xxx.
scopes: tokens, brands, components, governance, memory
OAuth2 (platform)
For platform-level integrations (Ailysi marketplace, partner apps).
scopes: admin:all
Session (UI)
Frontend calls from the Ailysi app reuse the logged-in user session.
scopes: inherits user RLS
Tokens
4 routes/v1/tokensGenerate a token set from a tenant theme manifest
/v1/tokens/:tenant_idResolve the live token set for a tenant (dark/light)
/v1/tokens/:tenant_idOverride individual tokens (pin or mutate)
/v1/tokens/:tenant_id/pinPin a token — freeze it from auto-evolution
Brands
5 routes/v1/brandsCreate brand identity via AI palette + typography synthesis
/v1/brands/:idRetrieve a brand profile + resolved tokens
/v1/brands/:idUpdate brand config (tone, palette, fonts)
/v1/brands/:id/logoGenerate logo candidates via AI image synthesis
/v1/brands/:id/complianceBrand compliance scorecard (contrast, usage, clear-space)
Components
3 routes/v1/componentsGenerate a component variant spec from tokens
/v1/components/:idRetrieve a stored variant spec
/v1/components/bulkBulk-sync multiple variant specs
Layouts
2 routes/v1/layouts/:vertical/resolveResolve a page skeleton for a tenant vertical
/v1/layouts/composeCompose a full landing from section blocks
Governance
4 routes/v1/governance/auditRun all 4 AEON-Design gates on a rendered surface
/v1/governance/audit/:idRetrieve an audit result + gate breakdown
/v1/governance/drift/:tenant_idSnapshot diff vs last known-good baseline
/v1/governance/approveApprove a high-risk BrandChangeRequest
Memory
4 routes/v1/memoryRecord a design learning (pillar↔engagement correlation)
/v1/memory/:tenant_idList stored learnings for a tenant
/v1/memory/evolvePropose token micro-adjustments from memory
/v1/memory/abShip + score a design variant A/B test
Distribution
2 routes/v1/distributeFederate a content/brand asset across OS modules
/v1/distribution/:asset_idRetrieve the per-OS distribution manifest
Hand-off
2 routes/v1/handoff/:tenant_idExport the design hand-off pack (tokens + components)
/v1/handoff/:tenant_id/figmaFigma-mirror export bundle
brand.createdA new brand identity was AI-synthesized and persisted
brandsbrand.updatedBrand config (palette, tone, fonts) changed
brandslogo.generatedLogo candidates were synthesized
brandsgovernance.passedA rendered surface passed all AEON-Design gates
governancegovernance.blockedA gate blocked output (brand, a11y, drift)
governancememory.learnedA new design learning was recorded
memoryevolution.proposedToken micro-adjustment proposed by auto-evolution
memorydistribution.completeCross-OS asset federation finished
distributionWebhooks signed with HMAC-SHA256 via X-Ailysi-Signature header. Retry: exponential backoff, 24h max.
Starter
100
req/min · burst 20
Solo founder / single brand
Pro
1000
req/min · burst 100
Growing team, multiple brands
Studio
10000
req/min · burst 500
Agencies, multi-brand operators
Enterprise
Unlimited
req/min · burst —
Platform / white-label SaaS
Responses include X-RateLimit-Remaining and X-RateLimit-Reset headers. 429 on exceed.
{
"error": {
"code": "governance_blocked",
"message": "Output failed the accessibility gate: contrast 3.2:1 below WCAG AA 4.5:1.",
"details": {
"gate": "accessibility",
"violations": [
{ "token": "--text-body", "ratio": 3.2, "required": 4.5 }
]
},
"request_id": "req_8f3a2b"
}
}Every error returns HTTP 4xx/5xx + a consistent envelope. request_id enables trace lookup in GovernanceAuditLog.
# Generate a brand identity
curl -X POST https://api.ailysi.com/v1/brands \
-H "Authorization: Bearer de_live_abc123" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 9c1f2a7e-3b4d-4e5f-8a9b" \
-d '{
"name": "Acme Labs",
"industry": "logistics",
"mood": "confident",
"auto_logo": true
}'JavaScript
npm i @ailysi/design-engineTyped, tree-shakeable, auto-retry on 429
Python
pip install ailysi-design-engineAsync + sync clients, dataclasses
cURL / HTTP
any HTTP clientRaw REST — see quick start above
One surface, every capability
The API mirrors the 5-layer architecture 1:1 — tokens, brands, components, governance, memory, distribution — so any external app can drive the Design Engine the same way the Ailysi frontend does.