Quiver

Integrations & APIs

API

Public Content API

Fetch published blog posts and changelog entries as structured JSON with Markdown bodies and SEO/Open Graph metadata.

Quiver's Public Content API serves published content pieces as JSON so your marketing site, documentation site, or static generator controls presentation while Quiver stays the editorial source of truth. Quiver's own /blog, /changelog, and RSS feeds are built on top of this exact API.

Endpoints#

GET https://quivergtm.dev/api/public/content
GET https://quivergtm.dev/api/public/content/[slug]

Only pieces with status: "published" are ever returned. Drafts and archived pieces return 404.

Resolving your workspace#

Every request must identify which workspace to read. Three methods are supported:

  1. Workspace subdomain: Call https://<slug>.quivergtm.dev/api/public/content directly.
  2. Query parameter: Pass ?org=<slug> on the apex host (https://quivergtm.dev/api/public/content?org=acme).
  3. Bearer token (content_api scope): Create an API token with the content_api scope in Settings → API tokens and send Authorization: Bearer qvr_....
Note

Sending an invalid bearer token returns 401 Unauthorized (with a WWW-Authenticate header). An unknown workspace slug or a workspace whose subscription has lapsed returns 404 Not Found.

Rate limits#

  • External callers are rate-limited to 60 requests per minute per workspace + IP address.
  • Exceeding the limit returns 429 Too Many Requests. Cache responses on your site (for example, Next.js revalidate: 300) rather than fetching uncached on every page view.

List published content#

GET /api/public/content?org=acme&contentType=blog_post&limit=20&offset=0

Query parameters#

ParameterTypeDefaultDescription
orgstring—Workspace slug (optional if using workspace subdomain or content_api token)
contentTypestringallFilter by type, e.g. blog_post or changelog
limitinteger20Page size (1–50; values above 50 are clamped to 50)
offsetinteger0Number of items to skip for pagination

Response shape#

{
  "items": [
    {
      "slug": "shipping-context-proposals",
      "title": "Shipping Context Proposals",
      "contentType": "blog_post",
      "excerpt": "How Quiver keeps product positioning accurate without silent rewrites.",
      "tags": ["product", "architecture"],
      "author": "Tessa",
      "publishedAt": "2026-10-15T14:00:00.000Z",
      "ogImageUrl": "https://www.example.com/og/proposals.png"
    }
  ],
  "limit": 20,
  "offset": 0
}

The list endpoint intentionally omits full Markdown bodies to keep listing fast. Fetch each piece by slug to get its body and full SEO/Open Graph metadata.

Get a single piece by slug#

GET /api/public/content/shipping-context-proposals?org=acme

Response shape#

{
  "slug": "shipping-context-proposals",
  "title": "Shipping Context Proposals",
  "contentType": "blog_post",
  "body": "## Why proposals matter\n\n...",
  "excerpt": "How Quiver keeps product positioning accurate without silent rewrites.",
  "tags": ["product", "architecture"],
  "author": "Tessa",
  "meta": {
    "title": "Shipping Context Proposals | Acme",
    "description": "How Quiver keeps product positioning accurate.",
    "canonicalUrl": "https://www.example.com/blog/shipping-context-proposals"
  },
  "og": {
    "title": "Shipping Context Proposals",
    "description": "How Quiver keeps product positioning accurate.",
    "imageUrl": "https://www.example.com/og/proposals.png",
    "twitterCardType": "summary_large_image"
  },
  "publishedAt": "2026-10-15T14:00:00.000Z",
  "updatedAt": "2026-10-16T09:12:00.000Z"
}

Errors#

Errors return a JSON body with a single error string, for example { "error": "Content not found" }.

StatusWhenWhat to do
401 UnauthorizedA bearer token was sent and it does not authenticate. The host and ?org= are not consulted.Create a new content_api token in Settings → API tokens, or drop the header and identify the workspace by subdomain or ?org=.
404 Not FoundThe workspace slug is unknown, the workspace has no active plan, or no published piece has that slug.Check the slug and that the piece is published.
429 Too Many RequestsMore than 60 requests in a minute from one IP for one workspace.Cache responses, then wait a minute and retry.
500 Internal Server ErrorAn unexpected server failure.Retry with backoff.

Next.js fetch example#

const BASE = 'https://www.quivergtm.dev';

export async function getBlogPosts() {
  const res = await fetch(
    `${BASE}/api/public/content?org=acme&contentType=blog_post&limit=20`,
    { next: { revalidate: 300 } }
  );
  if (!res.ok) return [];
  const data = await res.json();
  return data.items;
}

export async function getBlogPost(slug: string) {
  const res = await fetch(
    `${BASE}/api/public/content/${encodeURIComponent(slug)}?org=acme`,
    { next: { revalidate: 300 } }
  );
  if (!res.ok) return null;
  return res.json();
}
Tip

Remember to sanitize rendered Markdown HTML on your public site (for example with sanitize-html) before passing it to dangerouslySetInnerHTML.