Content API
Sites
Site settings, branding, SEO defaults and navigation menus.
Get a site
/sites/{siteId}Returns the site's public settings: name and title, branding, layout, SEO and social card defaults, headless settings, and the header and footer menus.
curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID{
"site": {
"id": "clx123...",
"name": "Field Notes",
"title": "Field Notes",
"tagline": "Building in public",
"description": "Notes from a small product team",
"slug": "field-notes",
"language": "en",
"logo": "https://...",
"logoIcon": "https://...",
"logoFavicon": "https://...",
"darkMode": "dark_mode",
"blogLayout": "grid",
"copyrightText": "© Field Notes",
"metaTitle": "Field Notes: building in public",
"metaDescription": "Notes from a small product team",
"ogTitle": null,
"ogDescription": null,
"ogImage": "https://...",
"facebookImage": null,
"twitterTitle": null,
"twitterDescription": null,
"twitterImage": null,
"headless": false,
"frontendUrl": null,
"postUrlPattern": null,
"pageUrlPattern": null,
"navigationItems": {
"header": [
{
"id": "...",
"title": "About",
"url": "/about",
"description": null,
"group": "header",
"children": []
}
],
"footer": []
}
}
}Fields worth knowing
| Field | Notes |
|---|---|
title, tagline, description |
What the blog shows in its header and home page |
logo, logoIcon, logoFavicon |
Image URLs, or null |
metaTitle, metaDescription |
Search result title and description for the home page |
ogTitle, ogDescription, facebookImage |
Open Graph card (Facebook, LinkedIn) |
twitterTitle, twitterDescription, twitterImage |
X card |
ogImage |
The default social image |
headless, frontendUrl, postUrlPattern, pageUrlPattern |
Headless settings |
navigationItems |
Published header and footer menu items in order. Each item can have children |
Any SEO field may be null or empty. Fall back in this order: the X card falls back to the Open Graph card, which falls back to metaTitle / metaDescription. facebookImage and twitterImage fall back to ogImage.
The site's preview URL pattern is never returned here, since it may contain a secret.
Get navigation menus
/sites/{siteId}/navigation-itemsReturns the site's published header and footer menus, in the order set in the dashboard. Use it when you only need the menus, without the rest of the site.
| Parameter | Type | Description |
|---|---|---|
group |
header or footer |
Only one menu. Leave it out to get both |
curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/navigation-items{
"navigationItems": {
"header": [
{
"id": "clx456...",
"title": "About",
"url": "/about",
"description": null,
"group": "header",
"children": [
{
"id": "clx457...",
"title": "Team",
"url": "/team",
"description": null,
"group": "header"
}
]
}
],
"footer": [
{
"id": "clx789...",
"title": "Privacy",
"url": "/privacy",
"description": null,
"group": "footer",
"children": []
}
]
}
}With ?group=header, navigationItems is a single list of header items instead.
- Only published items and published children are returned. Children don't have children of their own.
urlcan be a path on your blog (/about), a full link, ornullfor an item that only groups its children.- Any other
groupvalue returns400. An unknown site returns404with{ "navigationItems": null }.
Find a site by slug or domain
/sites/slug/{slug}/sites/domain/{domain}Look up a site when you know its address but not its ID. The domain lookup also returns domain and domainVerified.
curl https://api.quillhive.com/api/public/v1/sites/slug/field-notes
curl https://api.quillhive.com/api/public/v1/sites/domain/blog.example.comBoth return { "site": null } with a 404 when nothing matches.