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" }
| Status | Meaning |
|---|---|
400 | A field is missing or invalid. |
401 | Missing or invalid API key, or the key's plan no longer includes API access. |
402 | Your plan's limit is reached (e.g. scheduled posts this month). The body has "upgrade": true. |
404 | The post, account or comment doesn't exist or isn't yours. |
500 | Something 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
| Endpoint | Purpose |
|---|---|
POST /api/upload | Upload media |
GET · POST · PATCH · DELETE /api/posts | Create and manage posts |
GET · DELETE /api/accounts | Connected accounts |
GET /api/tiktok/creator-info | TikTok posting options |
GET · POST /api/comments | Read and answer comments |
POST /api/mcp | MCP server for AI assistants |