The distro HTTP API
Programmatic access to ideas, drafts, publishes, reviews. For wiring distro into your stack.
Agency tier includes API access — programmatic read/write against your workspace. Useful for wiring distro into existing tooling (custom dashboards, build pipelines, portfolio reporting).
Authentication
Bearer token. Create a Personal Access Token at Settings → API → Tokens. Tokens scope to specific apps (optional) and operations (read / write).
curl https://api.distro.digital/v1/ideas \ -H "Authorization: Bearer <token>"
Endpoints (summary)
GET /v1/apps— list your appsGET /v1/apps/:slug— single app detailGET /v1/ideas?app=:slug&stage=INBOX— list ideasPOST /v1/ideas— capture a new ideaPOST /v1/ideas/:id/evaluate— trigger evaluationPOST /v1/ideas/:id/repurpose— generate draftsGET /v1/drafts?app=:slug— list draftsPOST /v1/posts— record a published post (triggers post-mortem in 48h)GET /v1/posts/:id/mortem— post-mortem resultGET /v1/analytics?app=:slug&range=30d— analytics data
Rate limits
60 requests per minute per token. 10k requests per day. Heavy operations (evaluate, repurpose) count as 5 each. Exceeding either limit returns 429 with a Retry-After header.
Webhooks
Subscribe to events at Settings → API → Webhooks. Available events:
idea.captured,idea.evaluated,idea.moveddraft.generated,draft.savedpost.published,post.mortem_readyreview.received,review.completed
Deliveries are signed (HMAC-SHA256) using your webhook secret. Retries with exponential backoff on 5xx responses.
SDKs
No official SDK yet. Community packages for Node, Python, Ruby are in the works. The API is simple enough that curl / fetch works fine.