# public-it > public-it publishes AI-generated HTML artifacts as real websites in seconds. > Paste HTML (or upload a ZIP) and get a public URL on a free subdomain; > custom domains optional on paid plans. ## For AI agents: publish on behalf of your user - MCP server (streamable HTTP): https://www.public-it.com/mcp - Auth header: `Authorization: Bearer pit_...` — the user creates the API key at https://www.public-it.com/dashboard/keys after signing up (free plan available). - OR OAuth 2.1 (authorization code + PKCE, dynamic client registration): discovery at https://www.public-it.com/.well-known/oauth-protected-resource — used by ChatGPT connectors and Claude.ai when no API key is provided. - Tools: list_sites, create_site, publish_files, publish_html, get_site_files, read_site_file, edit_site_files, get_site, list_versions, rollback_site, delete_site, get_usage - Typical flow: create_site (once) → publish_html or publish_files (first version) → share the returned URL with the user. Updates: get_site_files → read_site_file → edit_site_files, so files published earlier are never lost. - The same key works on the REST API (see full docs). ## Docs - [Full machine-readable docs](https://www.public-it.com/llms-full.txt) - [Human docs](https://www.public-it.com/docs) - [MCP guide](https://www.public-it.com/docs/mcp) - [REST API reference](https://www.public-it.com/docs/api) - [Pricing](https://www.public-it.com/pricing)