API reference

A small REST API for reading and publishing your changelog, running incidents and managing subscribers.

Overview

The API is REST and returns JSON. It is versioned under /api/v1 and scoped to one project by its public slug. The slug is in your changelog URL: https://ollum.dev/c/your-slug.

base url
https://ollum.dev/api/v1/{slug}

Authentication

Send your API key as a Bearer token in the Authorization header on every request. Create keys under Settings, API. A key is shown only once, so store it somewhere safe.

Keys are named and come in two kinds. A read key (gl_) works on the read endpoints and /report. A write key (glw_) works on the write endpoints only. Neither kind works in place of the other, so a read key that leaks cannot change anything. Create one key per integration, up to ten per project: each shows when it was last used and can be revoked on its own. Keep write keys on your servers. Every request made with a write key is listed under Settings, API.

Header

http
Authorization: Bearer gl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Example request

bash
curl https://ollum.dev/api/v1/my-project/entries \
  -H "Authorization: Bearer gl_xxxx..."

Rate limiting

Limits apply per API key, over a sliding window.

EndpointLimit
GET endpoints60 requests per minute
Write endpoints30 requests per minute
POST /report10 requests per minute

Over the limit, the API returns 429 Too Many Requests with these headers:

X-RateLimit-Limit
Max requests in the current window.
X-RateLimit-Remaining
Requests left in the window.
X-RateLimit-Reset
ISO 8601 time the window resets.
Retry-After
Seconds until you can retry.

Errors

Every error returns a JSON body with one error field.

json
{ "error": "Invalid API key" }
StatusMeaning
401Missing or invalid API key.
403Valid key, but the feature needs a higher plan.
404Resource not found.
409A request with the same Idempotency-Key is still running.
413Request body larger than 256 KB.
422The Idempotency-Key was already used with a different request.
400Malformed request body or a missing required field.
429Rate limit exceeded.
500 / 503Server or upstream error. Safe to retry.

GET /api/v1/{slug}

Returns basic project metadata. Use it to check a key works and to get the published entry count.

Request

bash
curl https://ollum.dev/api/v1/my-project \
  -H "Authorization: Bearer gl_xxxx..."

Response, 200 OK

json
{
  "data": {
    "name": "My Project",
    "slug": "my-project",
    "entry_count": 42,
    "created_at": "2025-01-12T09:00:00.000Z"
  }
}

GET /api/v1/{slug}/entries

Returns a paginated list of published changelog entries, newest first by default.

Query parameters

limitinteger
Entries to return. Min 1, max 100. Default 20.
offsetinteger
Entries to skip, for pagination. Default 0.
tagstring
Only return entries whose tags include this value.
orderstring
asc returns oldest first. Default desc, newest first.

Request

bash
# Newest 20
curl "https://ollum.dev/api/v1/my-project/entries" \
  -H "Authorization: Bearer gl_xxxx..."

# Filter by tag, oldest first
curl "https://ollum.dev/api/v1/my-project/entries?tag=feature&order=asc" \
  -H "Authorization: Bearer gl_xxxx..."

# Page 2
curl "https://ollum.dev/api/v1/my-project/entries?limit=50&offset=50" \
  -H "Authorization: Bearer gl_xxxx..."

Response, 200 OK

json
{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "title": "v2.1.0: Dark mode and faster load times",
      "content": "## What's new\n\nWe shipped dark mode...",
      "tags": ["feature", "performance"],
      "version_label": "v2.1.0",
      "published_at": "2025-05-20T14:30:00.000Z",
      "source": "github",
      "created_at": "2025-05-20T14:28:11.000Z"
    }
  ],
  "meta": {
    "total": 42,
    "limit": 20,
    "offset": 0
  }
}

GET /api/v1/{slug}/entries/{id}

Returns one published entry by its UUID. Returns 404 if the entry doesn't exist, isn't published or belongs to another project.

Path parameters

slugstring · required
Your project's public slug, as in the changelog URL.
iduuid · required
UUID of the changelog entry.

Request

bash
curl https://ollum.dev/api/v1/my-project/entries/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer gl_xxxx..."

Response, 200 OK

json
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "title": "v2.1.0: Dark mode and faster load times",
    "content": "## What's new\n\nWe shipped dark mode...",
    "tags": ["feature", "performance"],
    "version_label": "v2.1.0",
    "published_at": "2025-05-20T14:30:00.000Z",
    "source": "github",
    "created_at": "2025-05-20T14:28:11.000Z"
  }
}

POST /api/v1/{slug}/report

Reports a degradation or outage from your infrastructure. ollum creates a draft incident on your status page, which you review and publish from the dashboard. Limited to 10 requests per minute; it's meant for monitor webhooks, not polling.

Request body, application/json

componentNamestring · required
Name of the affected component, as set on your status page. Max 256 characters.
errorstring · required
Plain description of the error. ollum uses it to draft the incident message. Max 8,192 characters.
severityenum
Impact level. One of degraded (default), partial_outage, major_outage.

Request

bash
curl -X POST https://ollum.dev/api/v1/my-project/report \
  -H "Authorization: Bearer gl_xxxx..." \
  -H "Content-Type: application/json" \
  -d '{
    "componentName": "API",
    "error": "p99 latency exceeded 5 s for 3 consecutive minutes",
    "severity": "degraded"
  }'

Response, 200 OK

json
{
  "ok": true,
  "status": "draft"
}

status: "draft" means the incident was queued. It is processed in the background and creates a draft on your status page. It is not published automatically.

Missing an endpoint? Send us a note and tell us what you need.

Write endpoints

These endpoints need the write key. Requests take a JSON body of up to 256 KB and act as the project owner. Everything a dashboard action does also happens here: publishing an entry emails subscribers, and an incident appears on the status page.

EndpointWhat it does
POST /entriesCreates a draft from Markdown. Answers 201 with the entry id.
POST /entries/{id}/publishPublishes a draft or scheduled entry as it stands.
POST /incidentsOpens an incident and publishes it. Pro plan.
POST /incidents/{id}/updatesPosts an update. The status resolved closes the incident. Pro plan.
GET /subscribersLists confirmed subscribers, 50 per page.
POST /subscribersEmails the address a confirmation link. Answers 202.
DELETE /subscribers/{id}Removes a subscriber. Answers 204.

POST /entries

titlestring · required
1 to 200 characters.
markdownstring · required
The entry body, up to 50,000 characters. Converted to sanitised HTML.
tagsstring[]
Up to 10 tags of 40 characters each.
versionstring
A version label such as v2.1.0.
publishboolean
true publishes straight away and notifies subscribers. Default false.
bash
curl -X POST https://ollum.dev/api/v1/my-project/entries \
  -H "Authorization: Bearer glw_xxxx..." \
  -H "Content-Type: application/json" \
  -d '{"title": "Dark mode", "markdown": "You can now switch themes.", "tags": ["feature"], "publish": true}'

POST /incidents

titlestring · required
1 to 200 characters.
bodystring
What is happening, up to 20,000 characters.
statusenum
investigating (default), identified or monitoring.
impactenum
minor (default), major or critical.
component_idsuuid[]
UUIDs of the affected status components.

POST /incidents/{id}/updates

messagestring · required
1 to 5,000 characters.
statusenum · required
investigating, identified, monitoring or resolved.

POST /subscribers

emailstring · required
The address to invite.
frequencyenum
instant (default), daily or weekly.
topicenum
changelog (default) or status.

Nobody is subscribed through the API without their consent: the address receives a confirmation email and is added only once its owner confirms.

Idempotency

A network error can leave you unsure whether a write went through. Send an Idempotency-Key header with a unique value, such as a UUID, and retry with the same value: the work is done once, and every retry gets the first answer back with the header Idempotent-Replayed: true.

http
Idempotency-Key: 6f1c2f0a-0d1e-4c57-9a3b-2c9d1e7b5a10
Same key, same request
The stored answer is returned. Nothing runs again.
Same key, different request
422. A key belongs to one method, path and body.
Same key, first request still running
409 with Retry-After. Retry shortly.
First request ended in a 5xx
The key is free again, so the retry runs.

Keys are kept for 24 hours and are scoped to your project. They work on every write endpoint and are optional.

MCP server

ollum runs a Model Context Protocol server, so an AI assistant such as Claude Code or Cursor can work with your project from your editor. It speaks Streamable HTTP at one URL and authenticates with the same API keys; the key decides the project.

url
https://ollum.dev/api/mcp
bash
claude mcp add --transport http ollum https://ollum.dev/api/mcp --header "Authorization: Bearer glw_xxxx..."
ToolKeyWhat it does
list_entriesreadLatest published entries.
get_statusreadLive status, 90-day uptime per component and open incidents.
list_draftswriteUnpublished drafts with their edit links.
get_pending_commitswriteCommits and merged pull requests not yet in a draft.
create_draftwriteCreates a draft from Markdown. Nothing is published.
publish_entrywritePublishes a draft and notifies subscribers.
open_incidentwriteOpens and publishes an incident. Pro plan.
post_incident_updatewritePosts an update; resolved closes the incident. Pro plan.

A read key only sees the read tools. The tools that publish or email subscribers say so in their description, so the assistant asks you first. Every tool call made with a write key is listed under Settings, API. The limit is 60 requests per minute per key.