REST API v1
Base URL: https://api.repost21.com/v1
Authorization: Authorization: Bearer sk_... header or x-api-key: sk_.... Limit 60 req/min per key.
Posts
List posts
GET /v1/posts # scope: posts:readA single post
GET /v1/posts/:id # scope: posts:readCreate a post
POST /v1/posts # scope: posts:writeContent-Type: application/json
{ "text": "Hello from API 👋", "platforms": ["TELEGRAM"], "scheduledAt": "2026-06-01T09:00:00Z"}Without scheduledAt, a draft is created. With a future date, it is scheduled for publication.
Publish now
POST /v1/posts/:id/publish # scope: posts:writeAccounts
List connected social accounts
GET /v1/social-accounts # scope: accounts:readResponse format
Success — wrapped in { "data": ... }. Error — { "statusCode", "message", "error" }.