Get Project Settings

Retrieve the current settings for a project, including theme, SEO defaults, custom domain configuration, and feature flags.

Endpoint

GET /projects/:id/settings

Path Parameters

NameTypeRequiredDescription
idstringYesThe project ID

Headers

NameRequiredDescription
AuthorizationYesBearer $PAGEGUN_API_KEY

Response

{ "data": { "project_id": "proj_abc123", "theme": "default", "custom_domain": "docs.example.com", "favicon_url": "https://example.com/favicon.ico", "og_image_url": "https://example.com/og.jpg", "meta_title": "Example Docs", "meta_description": "Documentation for Example API", "google_analytics_id": "G-XXXXXXXXXX", "custom_head_html": "<script>...</script>", "footer_text": "© 2024 Example Inc.", "nav_links": [ { "label": "Home", "href": "https://example.com" }, { "label": "GitHub", "href": "https://github.com/example" } ], "data_mode": { "enabled": false, "cdn_base": null }, "hosting_mode": "rewrite" } }

Settings Fields

FieldTypeDescription
project_idstringThe project this settings belongs to
themestringVisual theme ("default", "dark", "minimal")
custom_domainstring | nullCustom domain if configured
favicon_urlstring | nullFavicon URL
og_image_urlstring | nullDefault Open Graph image for all pages
meta_titlestring | nullDefault meta title
meta_descriptionstring | nullDefault meta description
google_analytics_idstring | nullGoogle Analytics measurement ID
custom_head_htmlstring | nullCustom HTML injected into <head>
footer_textstring | nullFooter text displayed on all pages
nav_linksarrayNavigation links in the header
data_modeobjectData Mode configuration
data_mode.enabledbooleanWhether Data Mode is active
data_mode.cdn_basestring | nullCDN base URL when Data Mode is enabled
hosting_modestringCurrent hosting mode: "fullhost", "rewrite", or "data"

Example

curl -s "https://api.pagegun.com/projects/proj_abc123/settings" \ -H "Authorization: Bearer $PAGEGUN_API_KEY" | jq

JavaScript

const response = await fetch( 'https://api.pagegun.com/projects/proj_abc123/settings', { headers: { 'Authorization': `Bearer ${apiKey}` } } ); const { data } = await response.json(); console.log(`Theme: ${data.theme}`); console.log(`Domain: ${data.custom_domain}`); console.log(`Data Mode: ${data.data_mode.enabled ? 'ON' : 'OFF'}`);
© 2026 PageGun. All rights reserved.