GatherDevelopers
Workspace

Introduction

The 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.

Base URL

Base URL
https://your-app.com/api/v1

Quick Start

Fetch 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 page

Content Formats

Use The format Query Parameter To Control The Response Format:

FormatDescriptionBest For
jsonRaw Tiptap Editor JSONCustom Rendering
htmlPre-Rendered HTMLQuick Integration
markdownMarkdown OutputStatic Site Generators
textPlain TextSearch Indexing, Previews