Introduction

PageGun is an API-first site builder designed for developers and AI agents. Create landing pages, blogs, documentation sites, and directories — all through a REST API.

Why PageGun?

Traditional page builders are built for humans clicking buttons. PageGun is different:

  • API-first — Every feature is accessible via REST API
  • AI-native — Designed from the ground up for AI agents to create and manage content
  • Structured data — Pages are JSON configs, not opaque WYSIWYG blobs
  • Instant publishing — Create a page and go live with two API calls

What You Can Build

Use CasePage TypeExample
Landing pagespageProduct launches, marketing pages
Blog / SEO contentarticleBlog posts, tutorials, guides
Developer docsdocsAPI docs, knowledge bases, help centers
Tool directoriesitem + pageSaaS directories, resource libraries

How It Works

1. Create a project → Your site container
2. Add pages        → Landing pages, articles, docs, items
3. Publish          → Go live on your domain

Every step is an API call. No dashboard required (though one is available).

Quick Example

Create and publish a blog post in two API calls:

# Create an article curl -X POST "https://api.pagegun.com/pages" \ -H "Authorization: Bearer $PAGEGUN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "page_name": "Hello World", "slug": "hello-world", "subroute": "blog", "type": "article", "project_id": "your_project_id", "markdown_content": "# Hello World\n\nMy first PageGun post." }' # Publish it curl -X POST "https://api.pagegun.com/pages/PAGE_ID/publish" \ -H "Authorization: Bearer $PAGEGUN_API_KEY"

That's it. Your article is live.

Hosting Options

PageGun offers three hosting modes:

ModeDescriptionBest For
Full HostPageGun hosts your entire siteNew sites, landing pages
RewriteEmbed PageGun pages in your existing siteAdding blog/docs to your app
Data ModeEncrypted headless CMS on CDNCustom frontends, full control

Learn more about hosting modes →

Next Steps

© 2026 PageGun. All rights reserved.