Postkea documentation

One API to publish and schedule posts on 28 social networks, read public data from them, download videos and run automations. The dashboard, the REST API and the MCP server use the same endpoints, so anything you can click you can also script or hand to an agent.

How the API works

Every endpoint lives under https://postkea.com/api/v1. Requests and responses are JSON, and every request carries an API key (see Authentication).

  • Successful responses are wrapped as { "success": true, "data": ... }. Errors use { "success": false, "error": { "code", "message", "details", "retryable" }, "requestId" }; quote the requestId when you contact support.
  • Lists are paginated as { "items": [...], "nextCursor": "..." }. Pass nextCursor back as cursor until it is null.
  • Every response has an X-Request-Id header. Requests that cost credits also return X-Credits-Used.
  • Failed requests and failed platforms never cost credits. See Rate limits and credits.
  • Long work (downloads, batch scrapes, pipelines, repurposing) runs as a job: you get a jobId back right away and poll it for free, or subscribe to webhooks.

What you can do

The API is organized around a few jobs. Each guide below explains one of them with working requests.

Publish
Connect accounts, write one post with per-network text and options, publish now, schedule it, queue it or send it for approval. Accounts and connecting, Posting, Scheduling and queue, Media
Collect
Transcripts, summaries, stats, comments, profiles and search from every major network, video downloads from over 1,000 sites, and AI writing tools. Scraping, Downloads and jobs, Repurpose, AI endpoints
Understand
Analytics for your posts, best times to post, a unified comment and DM inbox, and monitors that track competitors over time. Analytics, Inbox and comment automations, Monitors
Automate
Workflows with triggers and steps, signed webhooks for every event, and trackable short links. Automations, Webhooks, Links and bio pages
Work with agents
Connect Claude, Codex, Cursor or any MCP client, or install the agent skills, and give each key a posting policy. MCP server, Agent skills

Your first request

Create an API key in the dashboard under Developers, API keys, then check that it works. GET /v1/me is free and returns the workspace, plan, credit balance and the policy of the key you used.

curl "https://postkea.com/api/v1/me" \
  -H "Authorization: Bearer $POSTKEA_API_KEY"

A successful response looks like this:

Response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "org_4kq1m8x2",
      "name": "Studio Lumen",
      "slug": "studio-lumen"
    },
    "plan": {
      "id": "creator",
      "name": "Creator",
      "rateLimitPerMinute": 180,
      "channels": 15
    },
    "credits": {
      "plan": "creator",
      "monthly": {
        "limit": 5000,
        "used": 312,
        "remaining": 4688,
        "cycleStart": "2026-10-01T00:00:00.000Z",
        "cycleEnd": "2026-11-01T00:00:00.000Z"
      },
      "purchased": {
        "total": 0,
        "used": 0,
        "remaining": 0
      },
      "remaining": 4688
    },
    "connectedAccounts": 6,
    "actor": {
      "type": "api_key",
      "id": "key_7Hx2",
      "name": "Backend",
      "postPolicy": "auto",
      "scopes": [],
      "allowedPlatforms": null,
      "creditLimit": null,
      "creditsUsed": 41
    }
  }
}

SDK, CLI and OpenAPI

  • The full API reference is generated from the same definitions that run the API. Download the spec from /api/openapi.json to generate your own client.
  • The TypeScript SDK @postkea/sdk wraps every endpoint and throws PostkeaError with status, code, details, retryable and requestId.
  • The postkea command line posts, schedules, scrapes and downloads from a terminal. It reads POSTKEA_API_KEY and POSTKEA_URL.
  • The MCP server at /api/mcp exposes the same actions as tools for AI agents.
@postkea/sdk
import { Postkea } from "@postkea/sdk";

const mc = new Postkea(process.env.POSTKEA_API_KEY!);

const accounts = await mc.accounts.list();
await mc.posts.create({
  content: "Hello from the SDK",
  platforms: accounts.map((a) => ({ accountId: a.id })),
  publishNow: true,
});

Where to go next

Follow the Quickstart to connect an account and publish your first post, or jump to the MCP server guide to let an agent do it for you.