API reference
Publishing REST API
Schedule posts or publish now from your server with a workspace API key. Find request fields, rate limits, and examples for cURL, Python, and JavaScript.
Publishing endpoints
Send HTTPS requests from your server to https://www.repping.ai. Both endpoints use your connected channels, publishing permissions, plan quota, and approval rules.
Send OPTIONS to either endpoint to check supported methods. It returns 204 No Content with Allow: POST, OPTIONS.
- Schedule a post for a specific time.
- Publish now to queue a post for immediate processing.
Headers and request fields
Authorization: Bearer <API key>- Send the workspace key on each publishing request.
Content-Type: application/json- Send a JSON object of up to 128 KiB.
Idempotency-Key- Generate a unique value for each intended post. Use 8–128 letters, digits, periods, underscores, or hyphens.
caption- Post text. Each platform can override it with its own caption.
platforms- Required. Send 1–20 targets with distinct connected channel IDs (channelId). Each target also accepts caption, firstComment, and platform-specific meta. The API rejects remote thumbnailUrl and coverImageUrl values in meta.
scheduledAt- Required for scheduling. Supply a UTC timestamp at least one minute ahead. Omit this field for immediate publishing.
mediaIds- Optional. Attach up to 20 ready files from this workspace. In the Media library, select a ready file and choose Copy media ID. Some platforms require media.
timezone- Optional. Supply an IANA time zone such as Asia/Kolkata. The default is UTC.
firstComment, tags, requireApproval- Optional. Set a first comment of up to 2,000 characters, add up to 16 tags, or request editorial approval.
Schedule a post
POST /api/v1/posts/schedule
Set REPPING_SCHEDULED_AT to a future UTC timestamp, such as 2030-04-18T15:00:00Z. Set REPPING_IDEMPOTENCY_KEY to a unique identifier, such as a UUID. Save both values before sending the request.
Choose one example for a channel that accepts text posts. The cURL examples use jq to build JSON.
Schedule a text post
Publish now
POST /api/v1/posts/publish-now
Choose a new REPPING_IDEMPOTENCY_KEY for this post. This request queues a real post or requests approval.
Queue a text post now
Read the result
A successful request returns HTTP 202 Accepted, a postId, and a status. For example, {"postId":"65f45c24cc805c0c539d88ff","status":"queued"}.
queued means the publisher accepted the job. awaiting_approval means a reviewer must approve the post. Check the post in your workspace for final delivery to each channel.
Each response includes X-Request-Id. Save it when reporting a problem. Use the original Idempotency-Key for retries. Responses also include Cache-Control: no-store and X-Content-Type-Options: nosniff.
Rate limits, errors, and retries
Both endpoints share a limit of 30 requests per API key per 60 seconds. MongoDB enforces this limit across all server instances.
Before authentication, each IP address can make 120 requests per 60 seconds. Upstash shares this limit across instances. The in-memory fallback counts requests on each instance separately.
When the server checks a limit, X-RateLimit-Limit reports the window size in requests. X-RateLimit-Remaining reports requests left. X-RateLimit-Reset gives the reset time in Unix seconds. HTTP 429 includes Retry-After in seconds.
JSON error responses contain a stable error code and a human-readable message. Use the code to decide what your integration should do. Display the message when a person must take action.
- 400, 413, or 415
- Check the fields, body size, and content type. Validation errors can include a
fieldslist. - 401, 402, or 403
- Check the key, plan allowance, and workspace permissions, respectively. HTTP 401 includes a Bearer challenge in
WWW-Authenticate. Billing errors can includelimit,period,feature, orrequiredTier. - 405 Method Not Allowed
- Read
Allow: POST, OPTIONSfor supported methods. AHEADrequest returns 405 with an empty body. - 409
- For
request_in_progress, wait before retrying. Foridempotency_conflict, check the original request body and endpoint. Forchannel_not_available, check the connection in your workspace. Forfree_allowance_initialization_pending, the server returnsretryable: trueandRetry-After: 1. Wait one second before retrying the same request. - 429 or a lost response
- Retry the same endpoint with the original API key, Idempotency-Key, and body within 24 hours. Honor
Retry-Afterwhen present. - 503 with
publishing_dispatch_failed persisted: truemeans the post already exists. Use the returnedpostIdto check its status before taking further action.- 503 with
publishing_outcome_unconfirmed - Check the workspace for the original post. A new idempotency key can create a duplicate.
Read public Buzz articles
Fetch published stories with a GET request. This endpoint accepts anonymous requests and returns JSON.
GET https://buzz.repping.ai/api/repup/public/articles
Omit query parameters to read recent stories. Use slug for one story or artist to filter by artist. The response contains an items array. An empty array means no published story matched.
Print the first three story titles
The examples request JSON with Accept: application/json. Keep workspace tokens off this endpoint. Reuse cached responses when possible. This feed has no published per-client quota. If you receive HTTP 429, honor Retry-After when present.