Docs
How do I build on Paperboy?
A guide for agencies and SaaS builders who run Paperboy inside their own product: which calls to use, what the webhook sends, and what it costs.
The marketing overview is on /platform. The full reference is rendered from the OpenAPI file on the API reference.
What is the flow for one client?
- Add the client's site in the dashboard and pick its publishing method (hosted, WordPress, Ghost, webhook or prompt). Creating a site through the API is not built yet.
- Call
GET /api/v1/sitesand store the site id against your client. - Call
POST /api/v1/sites/{id}/articleswith atopic(or atopic_idfrom the topics endpoint), an optionaltarget_query, andpublish. - Poll
GET /api/v1/articles/{id}untilstatusispublishedorneeds_review. A run takes a few minutes.
curl -X POST https://paperboyseo.com/api/v1/sites/SITE_ID/articles \
-H "Authorization: Bearer pb_live_..." \
-H "Idempotency-Key: client-42-2026-11" \
-H "Content-Type: application/json" \
-d '{ "topic": "How often to service a boiler", "publish": false }'With publish false (the default) a passed article waits. Publish it with POST /api/v1/articles/{id}/publish, which needs the publish scope.
Which endpoints can I use?
GET /api/v1/me: Owner, key scopes, credit balance and costsGET /api/v1/sites: List the sites on the accountGET /api/v1/sites/{id}: One site, with article countsGET, POST /api/v1/sites/{id}/topics: Stored topics, or suggest new ones (1 credit)GET /api/v1/sites/{id}/articles: Articles for one site (status, limit)POST /api/v1/sites/{id}/articles: Start an article (12 credits, refunded if it fails). Returns 202GET /api/v1/articles: All articles (site_id, status, limit)GET /api/v1/articles/{id}: One article with its verdict and sourcesPOST /api/v1/articles/{id}/publish: Publish a passed article to the site's target (free, publish scope)POST /api/v1/check: Fact check a url or markdown (2 credits)GET /api/v1/sites/{id}/performance: Search Console clicks and impressionsGET /api/v1/sites/{id}/queries: Top search queriesGET /api/v1/usage: Requests and credits per key, plus the ledger
What does the outgoing webhook send?
When a site publishes by webhook, Paperboy POSTs JSON to your https endpoint for each article. The body has event (article.published, article.updated or test), sent_at, site (id, url) and article. For test, article is null.
id, title, slug, meta_title, meta_description, excerpt,
html, markdown, faq, faq_html, schema_json_ld, sources, published_atHeaders: Content-Type: application/json, User-Agent: Paperboy-Webhook/1.0 and X-Paperboy-Signature: sha256=<hex>. The hex value is HMAC-SHA256 of the raw request body, keyed with the site's webhook secret.
import crypto from "node:crypto";
const expected = "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers["x-paperboy-signature"]));Reply with a 2xx status within 20 seconds. Any other status fails the publish. Optionally return JSON with url and id.
What does it cost, and what are the limits?
Article 12 credits, fact check 2, topic suggestion 1. Everything else is free. A pack is $20 for 100 credits, see credits. Reads: 120 a minute per key. Spending calls: 20 a minute. Send Idempotency-Key on every spending call.
Can an agent do the same?
Yes. The remote MCP server at https://paperboyseo.com/mcp takes the same key. See MCP server.
What is not built yet?
- Creating or deleting a site through the API.
- Per-client white-label branding, sub-accounts, or per-client billing under one key.
- Webhook events for failed or held articles. Poll the article instead.
Get a key in Settings, API keys.
Ready to read your first article?
Paste your address. In under ten minutes you read a finished, fact-checked article written for your site. Free, no card.
Prefer to run it yourself? Self-host it. Using an agent? Add the MCP server.