Introduction

Overview of the Postkub developer platform: REST API, CLI, MCP, scoped API keys, and hosted media.

Updated

Open in ClaudeOpen in ChatGPT
On this page

Postkub is a shared social action layer for humans and external AI. Your team manages Brands, connects social accounts, and edits posts in the web app, while your scripts, workflows, and AI agents operate on the same drafts, schedules, comments, and insights through a scoped API.

Note

The REST API is available today, while @postkub/cli and @postkub/mcp are not public yet (still in testing and not published to npm). The MCP server is a local stdio process that currently works only against a local or development API because production does not serve the OpenAPI document it reads at startup. Provider capabilities vary by connected account—always check GET /api/v1/accounts/{id}/capabilities before publishing or scheduling.

Three ways to integrate

InterfaceStatusBest for
REST APIAvailableCustom apps, backend jobs, n8n, and direct HTTP clients
CLIPreviewLocal scripts, CI pipelines, and terminal-driven agents
MCP ServerPreviewClaude, ChatGPT, and other Model Context Protocol clients

All three interfaces talk to the same /api/v1 endpoints, enforce the same API key scopes, and share the same post and publication records you see in the web app.

What an API key can do

When you issue a scoped API key in API Settings, you choose which Brands, connected social accounts, and actions the key can access:

  • Discovery: Inspect key context (GET /api/v1/me), Brands (GET /api/v1/brands), connected accounts (GET /api/v1/accounts), and per-account capabilities (GET /api/v1/accounts/{id}/capabilities).
  • Posts and publishing: Create, read, update, archive, publish, schedule, cancel, and retry posts (POST /api/v1/posts and related endpoints).
  • Inbox: List comment threads and inbox posts, read comments, reply, and like comments where the platform permits.
  • Insights: Read post-level and account-level metrics and time-series data.
  • Activity and request lookup: Audit recent actions (GET /api/v1/activity) and inspect durable mutation results (GET /api/v1/requests/{requestId}).

What stays human-only

Owner-level administration requires a signed-in human web session and is never exposed to external API keys:

  • Creating or deleting Brands
  • Connecting or disconnecting social accounts via OAuth
  • Creating, rotating, or revoking API keys
  • Managing billing and subscriptions
  • Configuring webhook endpoints and replaying deliveries

Hosted media model

Humans upload images and videos directly in the web app, while external REST, CLI, and MCP clients attach media using publicly accessible, direct-download HTTPS URLs (such as S3, R2, or a CDN). Keep each media URL reachable through scheduled execution and platform processing; see Hosted Media for URL rules and limits.

Verify your key

Once you have created a scoped key, verify access and inspect your allowed Brands and accounts:

curl -sS https://postkub.com/api/v1/me \
  -H "Authorization: Bearer $POSTKUB_API_KEY"

Next steps