API reference

API overview

Authentication, requests and errors for the Rostido REST API.

The REST API lets you do from code what you do in the dashboard: upload media, schedule posts, and work with accounts and comments. All requests go to https://rostido.com and use JSON unless noted.

Authentication

API keys are included from the Pro plan. Create one in Settings → API keys. Keys start with rostido_. Send yours in the X-API-Key header on every request.

curl https://rostido.com/api/accounts \
  -H "X-API-Key: rostido_xxx"

Treat a key like a password: it can publish to every account you connected. To revoke a key, delete it in Settings. Authorization: Bearer rostido_… works too.

Errors

Errors return a JSON body with an error message and a matching HTTP status.

# 400 Bad Request
{ "error": "accountIds (array) is required" }
StatusMeaning
400A field is missing or invalid.
401Missing or invalid API key, or the key's plan no longer includes API access.
402Your plan's limit is reached (e.g. scheduled posts this month). The body has "upgrade": true.
404The post, account or comment doesn't exist or isn't yours.
500Something went wrong on our side.

Listing endpoints for accounts and comments return an empty list instead of 401 when the key is missing or invalid.

Endpoints

EndpointPurpose
POST /api/uploadUpload media
GET · POST · PATCH · DELETE /api/postsCreate and manage posts
GET · DELETE /api/accountsConnected accounts
GET /api/tiktok/creator-infoTikTok posting options
GET · POST /api/commentsRead and answer comments
POST /api/mcpMCP server for AI assistants