DevelopersThe Gather Content Delivery API Lets You Fetch Published Documents From Your Workspace And Serve Them On Any Website Or Application. It's A Read-Only REST API That Returns Content In Multiple Formats — JSON, HTML, Markdown, Or Plain Text.
https://your-app.com/api/v1Fetch Your Published Documents With A Single Request:
// app/blog/page.tsx (Server Component)
const res = await fetch("https://your-app.com/api/v1/documents?format=html", {
headers: { Authorization: `Bearer ${process.env.GATHER_API_KEY}` },
next: { revalidate: 60 }
});
const { data } = await res.json();
// Render documents in your pageUse The format Query Parameter To Control The Response Format:
| Format | Description | Best For |
|---|---|---|
json | Raw Tiptap Editor JSON | Custom Rendering |
html | Pre-Rendered HTML | Quick Integration |
markdown | Markdown Output | Static Site Generators |
text | Plain Text | Search Indexing, Previews |