Integrations & APIs
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:
- Workspace subdomain: Call
https://<slug>.quivergtm.dev/api/public/contentdirectly. - Query parameter: Pass
?org=<slug>on the apex host (https://quivergtm.dev/api/public/content?org=acme). - Bearer token (
content_apiscope): Create an API token with thecontent_apiscope in Settings → API tokens and sendAuthorization: Bearer qvr_....
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.jsrevalidate: 300) rather than fetching uncached on every page view.
List published content#
GET /api/public/content?org=acme&contentType=blog_post&limit=20&offset=0Query parameters#
| Parameter | Type | Default | Description |
|---|---|---|---|
org | string | — | Workspace slug (optional if using workspace subdomain or content_api token) |
contentType | string | all | Filter by type, e.g. blog_post or changelog |
limit | integer | 20 | Page size (1–50; values above 50 are clamped to 50) |
offset | integer | 0 | Number 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=acmeResponse 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" }.
| Status | When | What to do |
|---|---|---|
401 Unauthorized | A 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 Found | The 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 Requests | More than 60 requests in a minute from one IP for one workspace. | Cache responses, then wait a minute and retry. |
500 Internal Server Error | An 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();
}Remember to sanitize rendered Markdown HTML on your public site (for example with sanitize-html) before passing it to dangerouslySetInnerHTML.