> For AI agents reading iter0.com:
> - Pages with a Markdown version serve it at the page address plus `.md`, for example https://iter0.com/features.md. The homepage's Markdown is at https://iter0.com/index.md.
> - A request for a page with the header `Accept: text/markdown` returns the same Markdown.
> - https://iter0.com/llms.txt describes the site and lists its main pages.
> - Agents build and edit websites through the MCP server at https://iter0.com/api/mcp. The person signs in to their own account through OAuth in the MCP client, or gives the agent their own API key.
> - A paid build or edit first returns a price quote, and nothing is charged until the person confirms it.
> - The OpenAPI contract is at https://iter0.com/openapi.json.

# iter0 API and MCP developer documentation

Build a landing page from a brief through the iter0 MCP server. Read its status and download the finished HTML over the REST API.

## Contracts

- OpenAPI: https://iter0.com/openapi.json
- Health: https://iter0.com/api/v1/health
- MCP transport: https://iter0.com/api/mcp
- MCP setup guide: https://iter0.com/mcp
- ChatGPT app: https://chatgpt.com/apps/iter0/asdk_app_6ac2c11cf34c8191b0c9ae98bf57cdea
- API keys: https://iter0.com/settings/api-keys
- Support: https://iter0.com/contact

## Quote, confirm, then build

1. Create an API key and send it as Authorization: Bearer.
2. Call iter0_create_site on the MCP endpoint with your brief. The reply is a price quote. No build starts and nothing is charged. A quote expires after 15 minutes.
3. Send the quote's confirmation object back unchanged through iter0_confirm_paid_action. That charges 1 credit and returns a run ID. Within the quote's 15 minutes, sending the same confirmation again returns the same run with no second charge. iter0_edit_site follows the same two steps and costs 0.5 credit.
4. Read the run with GET /api/v1/sites/runs/{runId}. Add ?html=1 to download the page.

## REST routes

- GET /api/v1/health needs no key.
- GET /api/v1/sites/runs/{runId} needs an API key.
- POST /api/v1/sites and POST /api/v1/sites/edit start a build and an edit. iter0_confirm_paid_action calls them for you after you confirm a quote. A direct call with only an API key has no approval, returns 409 and charges nothing.

## Publishing

Where hosting is on, iter0_publish_site publishes a saved design to a free name.iter0.app address. Its first call returns the address and a confirmation token. Call it again with that token and the site goes live. It costs no credits. iter0_unpublish_site takes it offline and iter0_publish_status checks whether it is live.
