Misar IO Docs

API Overview

MisarSocial REST API reference — base URL, authentication, versioning, and rate limits.

Base URL

https://api.misar.io/social

All endpoints listed in this reference are relative to this base URL.

Authentication

MisarSocial supports two authentication methods:

Requests from the browser use the Supabase session cookie set by social.misar.io. No extra setup needed.

API key (server-to-server)

Generate an API key from Dashboard → Settings → API Keys and pass it as a Bearer token:

Authorization: Bearer mss_your_key_here

API keys are scoped. Create separate keys for read-only integrations vs. write integrations to follow the principle of least privilege.

Available Scopes

ScopeDescription
posts:readList and read posts
posts:writeCreate, edit, and cancel posts
schedule:writeSchedule posts to the queue
drafts:readRead draft post variants
drafts:writeApprove or reject drafts
generate:writeTrigger AI content generation
stats:readRead dashboard and engagement stats
connections:readList connected social accounts
trendpulse:readRead trend snapshots
contentripple:writeSubmit content for repurposing

Rate Limits

Rate limit headers are returned on every response:

HeaderDescription
X-RateLimit-LimitMaximum requests in the window
X-RateLimit-RemainingRemaining requests in the current window

When a rate limit is exceeded the API returns 429 Too Many Requests.

Common Response Formats

Success

{ "posts": [...], "total": 42, "page": 1, "pageSize": 20, "totalPages": 3 }

Error

{ "error": "Human-readable error message" }

Endpoints

EndpointMethodsDescription
/api/postsGET DELETEList or cancel posts
/api/posts/:idPATCH DELETEEdit or cancel a single post
/api/draftsGET POSTList drafts, bulk approve/reject
/api/schedulePOSTSchedule a post
/api/connectionsGETList connected accounts
/api/generatePOSTAI post generation
/api/generate/enhancePOSTEnhance existing text
/api/generate/hashtagsPOSTGenerate hashtags for text
/api/generate/optimizePOSTPlatform-optimize existing text
/api/statsGETDashboard overview stats
/api/trendpulseGET POSTTrend snapshots and pipeline
/api/contentrippleGET POSTContent repurposing
/api/calendarGETCalendar view of scheduled posts