Skip to main content
The MagicPost REST API powers both the MagicPost web app and the MCP server. Use it directly when you want to script MagicPost operations without an LLM in the loop.

Base URL

Authentication

All endpoints require an API key as a Bearer token in the Authorization header. See Authentication for how to create one.
There is one exception: the /api/v1/api-keys/* management endpoints (used by the MagicPost web UI) use cookie session auth instead. You can’t use these from a script — generate keys from the web UI.

Acting for a member of your organisation

An administrator of an Agency or Team organisation can call most endpoints on behalf of a member by adding the member’s id (user_record_id from GET /org/members) in the X-MagicPost-Member-Id header. The request then runs on the member’s account, with the same rights as switching to that account in the app: the member’s plan, quotas, credits and LinkedIn connection apply. Rate limits stay those of your token.
An endpoint that cannot act for a member (billing, credits history, CRM connections, API keys, organisation management) answers 400 member_scope_not_supported; a member outside your scope answers 404.

Response shape

Success responses are tailored to each endpoint. Error responses follow a common shape — see Errors.

Rate limits

  • 60 req/min per token by default
  • 30 req/min per token on publishing and scheduling (/publish, /schedule)
  • 5 req/min per token on /refresh-posts, /detect-leads, /ai-score and /received-comments/sync
Window resets at the start of every wall-clock minute. Exceeding returns HTTP 429.

Endpoints

API keys

Manage your tokens. Cookie auth only.

Metrics

Pull analytics summary, trigger refresh.

Posts

List, fetch, create, update, delete (soft).

Scheduling

Schedule, cancel, publish-now.

Comments, AI score and ideas

First comment, received comments, AI score, idea notebook.

Organisation

Members, team metrics and team posts, for organisation admins.

OpenAPI

An auto-generated OpenAPI 3 spec is in progress. In the meantime, the per-endpoint pages list path, method, params, and response shape.