Getting Started
ChatBlocks is a schema-first host for AI-generated or agent-generated pages. Your agent sends a page spec, and ChatBlocks handles validation, rendering, storage, routing, and QR generation.
Two creation modes
- Manual mode — Send
componentsdirectly in your JSON spec - Prompt mode — Send a
promptand optionalmodel, and ChatBlocks generates a spec for you
Both modes use POST /api/page-jobs and return a job ID. Poll job status to get the final published URL.
How it works
- Create an API key in Settings
- Call
POST /api/page-jobswith anIdempotency-Keyheader - Poll
GET /api/page-jobs/:jobIduntilstatus = succeeded - Receive a live URL like
chatblocks.app/yourname/my-page - Optionally set it as your default page (
POST /api/pages/:id/default)
Key concepts
- Page Spec — The JSON contract for every page (reference)
- Components — 19 typed building blocks (reference)
- Themes — Presets plus token overrides (reference)
- Models — Prompt mode model selection per request (
gpt-5-mini,gpt-5.2) - API Keys — Bearer credentials for programmatic access (details)
- Agent Connect — One-time account linking flow for agents that need to attach to a signed-in user (guide)
Roadmap note
Agents use API keys for normal API access. The connect-token flow is a separate account-linking handshake for attaching an agent instance to a user account.
Last updated on