Page Type: Page (Landing Page)

The page type creates JSON-driven landing pages using a sections array. Each section is a pre-built component with configurable props.

Content Structure

{ "config": { "theme": "default", "metadata": { "title": "My Landing Page", "description": "A compelling description", "keywords": ["landing", "product"] }, "sections": [ { "type": "hero", "heading": "Transform Your Business", "description": "Build stunning pages in minutes.", "ctaText": "Get Started", "ctaHref": "/signup" }, { "type": "features", "heading": "Why Choose Us", "features": [ { "title": "Fast", "content": "Lightning-fast performance.", "icon": "Zap" } ] }, { "type": "cta", "heading": "Ready to start?", "ctaText": "Sign Up Free", "ctaHref": "/signup" } ] } }

Available Sections

Landing Page Sections

TypeDescription
heroMain hero with headline, CTA, and optional video
problemProblem cards with emojis
solutionSolution bento grid with icons
featuresFeature showcase with images/icons
how-it-worksStep-by-step process
faqCollapsible FAQ accordion
ctaCall-to-action with button
contentMarkdown content block
testimonial-highlightTestimonial carousel
testimonials-verticalVertical scrolling testimonials
pricingPricing plans

Directory Sections

TypeDescription
directory-heroHero for directory pages
items-gridGrid of directory items
articles-gridGrid of articles/blog posts

See the Section Schema Reference for detailed props of each section type.

API Example

curl -X POST "https://api.pagegun.com/pages" \ -H "Authorization: Bearer $PAGEGUN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "page_name": "Product Landing", "slug": "product", "subroute": "pages", "type": "page", "project_id": "your_project_id", "config": { "theme": "default", "sections": [ { "type": "hero", "heading": "Hello World", "ctaText": "Try Free", "ctaHref": "/signup" }, { "type": "cta", "heading": "Get Started Today", "ctaText": "Sign Up", "ctaHref": "/signup" } ] } }'
© 2026 PageGun. All rights reserved.