Pulsebook · DocsOpenAPI 3.1

Pulsebook API

The Pulsebook API is small on purpose: read any published brand as JSON or Markdown without an account, and use the MCP server to create, edit and publish. The whole public surface is described in /openapi.json.

Overview

Base URL https://pulsebook.app. Responses are JSON unless an endpoint says otherwise. There is no REST endpoint for writing: creating, editing and publishing brands go through the MCP server. The signed-in app talks to its own internal routes under /api/ with the browser session; those are not part of the public API and may change.

The OpenAPI file gives every operation a unique operationId, typed parameters and response schemas, so it can be loaded as a set of tools by function-calling clients. The API catalog (RFC 9727) at /.well-known/api-catalog points to it.

Endpoints

Public endpoints, their operation id and what they return
Method and pathoperationIdReturns
GET /brand/{slug}/brand.jsongetBrandJsonA published brand as JSON (pulsebook.brand v1). ETag, open CORS, 304 on If-None-Match.
GET /brand/{slug}/llms.txtgetBrandLlmsTxtThe same brand as Markdown for language models.
GET /brand/{slug}/assets.zipdownloadBrandAssetsThe brand's logo, font, image and download files as a ZIP.
GET /docs/brand-json/schema.jsongetBrandJsonSchemaThe JSON Schema of brand.json.
GET /llms.txtgetSiteLlmsTxtWhat Pulsebook is, when to use it and how to call it.
GET /llms-full.txtgetSiteLlmsFullTxtllms.txt plus the FAQ, pricing, posts and every MCP tool.
GET /.well-known/mcp/server-card.jsongetMcpServerCardThe MCP Server Card: endpoint, header, versions.
POST /api/mcpcallMcpServerThe MCP server (JSON-RPC over Streamable HTTP). Bearer token.

slug is lowercase letters, digits and hyphens. A brand that is unpublished, missing or protected by a password answers 404 on every brand file, so nothing reveals that a protected brand exists.

Authentication

The brand files and the site files need no authentication. POST /api/mcp needs Authorization: Bearer pb_… with a token from Settings; its scopes are read, write and publish. See the MCP docs for the tools each scope allows.

Errors

Every JSON error has the same four fields: error (a message for a person), code (stable, switch on it), hint (what to change) and status. A 429 adds retryAfterSeconds and a Retry-After header.

404 response
{
  "error": "Brand not found.",
  "code": "not_found",
  "hint": "Check the slug. Only published brands without a password serve brand.json.",
  "status": 404
}

Codes: unauthenticated, forbidden, invalid_request, not_found, method_not_allowed, unprocessable, rate_limited, not_configured, upstream_failed, timeout, internal_error.

Examples

Read a brand
curl -sS https://pulsebook.app/brand/pulsebook/brand.json | head -c 400
Conditional request
curl -sS -i https://pulsebook.app/brand/pulsebook/brand.json -H 'If-None-Match: "<ETag from the first response>"'
# HTTP/2 304 when the brand has not changed
List MCP tools
curl -sS https://pulsebook.app/api/mcp \
  -H "Authorization: Bearer $PULSEBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Put your brand on one link.

Draft three brands free. Publish the first one on us. Your client gets one address that stays right.