Repping.AI

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.

Create a workspace API key

  1. Sign in and select the workspace that owns your social channels. Your workspace role needs permission to create posts.
  2. Create an API key in Settings → Publishing API keys. Give your key a label that identifies your integration.
  3. Copy the secret when it appears. Store it on your server as REPPING_API_KEY. Each workspace membership supports up to 20 active keys.
  4. Copy a connected channel ID from the same settings page. Set REPPING_CHANNEL_ID to this value.

To rotate a key, create a replacement, update your integration, then revoke the old key in Settings.

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

jq -n --arg channel "$REPPING_CHANNEL_ID" --arg time "$REPPING_SCHEDULED_AT" \
  '{caption: "A new release is ready.", platforms: [{channelId: $channel}], scheduledAt: $time}' |
curl -sS -i -X POST 'https://www.repping.ai/api/v1/posts/schedule' \
  -H "Authorization: Bearer $REPPING_API_KEY" \
  -H "Idempotency-Key: $REPPING_IDEMPOTENCY_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @-

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

jq -n --arg channel "$REPPING_CHANNEL_ID" \
  '{caption: "A new release is ready.", platforms: [{channelId: $channel}]}' |
curl -sS -i -X POST 'https://www.repping.ai/api/v1/posts/publish-now' \
  -H "Authorization: Bearer $REPPING_API_KEY" \
  -H "Idempotency-Key: $REPPING_IDEMPOTENCY_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @-

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 fields list.
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 include limit, period, feature, or requiredTier.
405 Method Not Allowed
Read Allow: POST, OPTIONS for supported methods. A HEAD request returns 405 with an empty body.
409
For request_in_progress, wait before retrying. For idempotency_conflict, check the original request body and endpoint. For channel_not_available, check the connection in your workspace. For free_allowance_initialization_pending, the server returns retryable: true and Retry-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-After when present.
503 with publishing_dispatch_failed
persisted: true means the post already exists. Use the returned postId to 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

import json
from urllib.request import Request, urlopen

request = Request("https://buzz.repping.ai/api/repup/public/articles", headers={
    "Accept": "application/json",
    "User-Agent": "ReppingDocsExample/1.0 (+https://www.repping.ai/docs/api)",
})
with urlopen(request, timeout=15) as response:
    articles = json.load(response)["items"]

for article in articles[:3]:
    print(article["slug"], article["title"])

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.