We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Agents and the API
An agent builds it. You stay in charge.
Alnitak’s API reaches every part of a page: its blocks, photos, files, styles, themes, fonts and forms. An AI agent can learn it in minutes, build pages, look at them, and save them. You review and edit the same pages in the editor, and nothing the agent did is hidden from you.
No SDK, no integration project
The API explains itself to whoever calls it.
Alnitak publishes its own API definition (OpenAPI 3.1) and a JSON Schema for every block type, with the CSS hooks each block renders. An agent reads them before it starts, so it knows every operation and every field. When Alnitak gains a new block or a new operation, every agent sees it on its next run, with nothing to install or update.
# the whole API, described
GET /api/v1/openapi.json
# what a photo block accepts
GET /api/v1/block-schemas/photo
# how a page would look
POST /api/v1/posts/preview.png
# publish it
POST /api/v1/posts
Look before you save
The agent sees the page before anyone else does.
Alnitak renders a page that has not been saved yet, as HTML or as a screenshot, at any width and in any of the site’s languages. An agent that can see images checks its own work at phone and desktop size, and fixes what looks wrong before it saves.
Mistakes point to themselves
An error says exactly where the problem is.
When something in a request is wrong, the answer names the spot, down to the block and the field, and says what is wrong in plain words. A slug that is already taken comes back with a free one to use instead. An agent corrects itself without guessing.
The second block’s second block: the photo inside the row.
POST /api/v1/posts/preview.html
422 ["body", "blocks", 1, "blocks", 1, "photo_id"]
photo not found: no-such-photo
Every change on the record
Nothing an agent does goes unrecorded.
Every save is a version of the page. Each version records whether it came through the API, and which run of the agent made it. The posts list marks the pages an agent created or changed. The audit log shows each run as one unit: every call, its timing and status, and the request and response bodies. Compare any two versions, block by block and word by word, and restore one with a click.
Keys you control
Give an agent a key, not your password.
Each API key belongs to one person on one site, and can be read-write or read-only. You create, disable and revoke keys in the admin, and see when each was last used. A revoked key stays in the record, so you can still tell which calls it made.
What the API covers
What an agent can do today.
| Area | Operations |
|---|---|
| Pages | create, update, delete, search; versions, compare, restore; preview as HTML or image |
| Sections and tags | create, rename, translate, delete |
| Photos and albums | upload, describe, sort into albums, add HDR |
| Files | upload, describe, replace, delete |
| Design | themes, fonts, style templates, style recipes, the site’s design settings |
| Forms | create, draft, publish versions; read and file submissions |
| Discovery | the API definition, block schemas, layouts, the styling guide, site search |
Seventy operations in all. A few things are still done in the admin only: interface strings, site settings and user accounts.
Proof
A historical archive, rebuilt by an agent.
A historical archive of 907 pages was rebuilt this way. An agent created 899 of its pages through the API: biographies, a chronology with a page per year, court records, a press archive. It also translated them into five languages. People reviewed every page in the editor. Its home page alone has 48 versions.
How this site was made
This site was built the same way.
These pages were written by an AI coding agent through the same API, from a set of numbered scripts. Each run carries its own trace, each page was rendered and checked before it was saved, and a person reviewed every word. The screenshots on this site were taken by a script too, so they can be retaken whenever the admin changes.