Content API

Sites

Site settings, branding, SEO defaults and navigation menus.

Get a site

GET/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.

bash
curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID
Response
{
  "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

GET/sites/{siteId}/navigation-items

Returns 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
bash
curl https://api.quillhive.com/api/public/v1/sites/YOUR_SITE_ID/navigation-items
Response
{
  "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.
  • url can be a path on your blog (/about), a full link, or null for an item that only groups its children.
  • Any other group value returns 400. An unknown site returns 404 with { "navigationItems": null }.

Find a site by slug or domain

GET/sites/slug/{slug}
GET/sites/domain/{domain}

Look up a site when you know its address but not its ID. The domain lookup also returns domain and domainVerified.

bash
curl https://api.quillhive.com/api/public/v1/sites/slug/field-notes
curl https://api.quillhive.com/api/public/v1/sites/domain/blog.example.com

Both return { "site": null } with a 404 when nothing matches.