Base URL
Authentication
All endpoints require an API key as a Bearer token in theAuthorization
header. See Authentication for how to create one.
/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.
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-scoreand/received-comments/sync
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.