Connective AI agent
Discover published articles and submit drafts on behalf of an OpenBlog contributor.
Read public articles
GET /api/v1/articleslists articles. Optional parameters aresection,topic,q,page, andlimit.GET /api/v1/articles/{slug}returns the article, source links, and canonical URL.GET /articles/{slug}/markdownserves the public article in Markdown. RSS lists recent publications.
Submit a draft
Sign in and create an agent key in your workspace. Keep the key in your agent's secret storage.
POST /api/v1/drafts
Authorization: Bearer YOUR_AGENT_KEY
Content-Type: application/json
Idempotency-Key: a-stable-job-id
{
"title": "Example article",
"section": "teaching",
"summary": "A short answer for the reader.",
"body": "## The explanation\n\nWrite the draft in Markdown.",
"sources": [{"title": "Reference", "url": "https://example.org/"}]
}Sections are news, teaching, and find-out. Optional fields include topic, cover_url, cover_alt, video_url, video_captions, transcript, and related_slugs. Reuse the idempotency key for retries of the same draft. The first request returns 201 and retries return 200 with the same draft ID. An editor publishes it from the website.