PostRivet.

API reference

Schedule and manage posts for accounts you have connected to PostRivet.

Authentication

  1. Connect social accounts on the Connections page.
  2. Create a key in API access and choose its expiration.
  3. Send the key as a Bearer token with every API request.

Base URL: https://postrivet.com/api/v1. HTTPS is required. Browser sign-in cookies do not authenticate API requests.

Your key accesses only your accounts, posts and media. Accounts cannot be connected or disconnected through this user API. Use the website to connect or refresh an account and to manage keys.

Expired, revoked or invalid keys return 401. API keys have no refresh token: create or rotate a key on the website and update your integration. Rotation disables the old key immediately. Expiration and revocation do not cancel already scheduled posts.

Keep keys on your server or in a secret store. Never put them in URLs, browser JavaScript, public code or a distributed app.

Requests & retries

Send JSON with Content-Type: application/json, except for upload chunks, which use application/octet-stream. JSON fields use camelCase. IDs are UUID strings unless identified as platform IDs.

Prepare destinations and time with POST /schedules, upload using its preparationId, then submit content to POST /schedules/{id}/finalize. Nothing is queued until finalization succeeds.

Idempotency

Creation and upload requests require Idempotency-Key: a stable, nonblank string of 1–128 characters. Use a new value for each distinct operation. Persist it with the payload before sending. Retrying the same payload with the same key returns 200 instead of 201; changing it returns 409 idempotency_mismatch. Preparation account order is normalized. Finalization uses its preparation ID as the retry key; no additional header is required. For other fields keep the payload unchanged.

Replacement media

GET the delivery and its ETag, then POST /posts/{id}/edits with that If-Match and an Idempotency-Key. Send {} to retain the time or include a new schedule. Upload replacement files with the returned preparationId, then POST complete desired content to /schedules/{id}/apply-edit. Existing attachments can be retained or removed. Preparing does not pause the original post. Text/time-only edits can still use PUT directly.

Concurrency

Get a post's ETag and send it verbatim in If-Match for edits or cancellation. Missing or malformed values return 428; a stale version returns 412. Fetch and review the current post before trying again.

Limits

120 API requests per minute per owner, per app instance, shared across keys. One media upload at a time per instance. On 429 or a transient server/network error, back off with jitter; preserve the original idempotency key for creation retries. Do not retry validation failures unchanged.

Each list endpoint documents its own pagination. Never interpret a scheduling response as proof of publication.

GET /api/v1/posts/{id}/analytics

Get post analytics

Use the delivery id returned by Schedule a post (or deliveries[].id for multi-account scheduling). Returns stored cumulative metrics and refreshes eligible published posts before responding when platform policy permits. X returns stored metrics only, collected in the background on the publication UTC day and the following UTC day, with no checks during the final 10 minutes of either day. Scheduled, publishing, and unpublished deliveries return zeros with their publicationStatus; the scheduled time alone does not prove successful publication. Fresh results are cached, and provider cooldowns may defer refresh. Unknown metrics are null, never guessed. See Analytics schema below.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredYour delivery ID, not postId, batchId, accountId or a platform post ID.

Response

200 · PostAnalytics. This endpoint does not publish or reschedule posts.

Errors

404 not_found for an unknown or another owner's delivery; common authentication/rate-limit errors. Provider failures are per-item error values with retained cached metrics.

Error format and troubleshooting →

POST /api/v1/analytics/posts

Get analytics for multiple posts

Retrieves 1–50 distinct delivery IDs in request order. Ownership of every ID is checked before any refresh; one unknown or foreign ID rejects the whole request. Refreshes are grouped by connection and batched where supported. X never refreshes on API reads; it returns stored snapshots collected on the publication UTC day and the following UTC day, with no checks during the final 10 minutes of either day. Cached values remain available during provider failures. This is a read operation; no Idempotency-Key is required. See Analytics schema for timing, nulls and error codes.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idsbody · UUID[] · required1–50 distinct delivery IDs from scheduling responses.

Response

200 · items (PostAnalytics[]) in the supplied order.

Errors

422 invalid_analytics_ids for an empty, duplicate, invalid or oversized set; 404 not_found for any inaccessible ID; common errors.

Error format and troubleshooting →

GET /api/v1/accounts

List accounts

Lists your connected and disconnected accounts. Use a Connected account's id when scheduling. Multiple accounts on one platform have separate IDs. This endpoint has no pagination parameter and returns at most 100 accounts ordered by ID.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

No parameters or request body.

Response

200 · Account[]: id (UUID), provider (string), did (platform ID), handle and displayName (nullable strings), status (string).

Errors

Common authentication and rate-limit errors.

Error format and troubleshooting →

POST /api/v1/posts/{id}/youtube-refresh

Refresh a YouTube passthrough post

Explicitly request synchronization after a confirmed YouTube transfer, including published posts. Returns stored state while a background check runs; read GET /posts/{id} for the result. Concurrent requests share a check, with a one-minute cooldown. No If-Match or request body is needed. GET requests never trigger this refresh. YouTube status is checked automatically five minutes after its scheduled release, with up to two additional attempts when inconclusive; there is no daily polling.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.

Response

202 · Delivery and ETag; lastNativeCheckAt records the latest check attempt.

Errors

404 not_found; 409 youtube_transfer_unconfirmed.

Error format and troubleshooting →

PUT /api/v1/posts/{id}/youtube-schedule

Edit a YouTube passthrough schedule

Change the title, description, audience and public release time without the original media. Requires If-Match. The video must still be private and any existing release must be more than two minutes away. Updates use YouTube’s update response for confirmation, avoiding an immediate potentially stale read. Use POST /posts/{id}/cancel to cancel and delete the remote video. To replace the media, cancel first, then prepare/upload/finalize a new post. Native schedules continue to exist if PostRivet loses access.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: If-Match (latest quoted numeric ETag).

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.
titlebody · string · requiredVideo title, 1–100 characters.
descriptionbody · string · requiredFull desired description, up to 5000 UTF-8 bytes.
madeForKidsbody · boolean · requiredVideo audience.
schedulebody · object · requiredInstant or localTime/timeZone; up to five minutes in the past requests release as soon as ready.

Response

200 · Accepted update with Delivery and ETag. NativeScheduled means confirmed scheduled on YouTube, not published. Confirming with youtube_schedule_confirmation_pending means the write succeeded and a status check is queued in 30 seconds; do not resubmit. GET the same ID to observe confirmation.

Errors

409 youtube_transfer_busy, youtube_already_released, youtube_release_imminent or youtube_schedule_update_unconfirmed; 412 version_mismatch; 422 invalid_schedule.

Error format and troubleshooting →

Content schema · Schedule schema · Platform options

POST /api/v1/posts/{id}/edits

Prepare an edit

Prepare replacement media for this existing delivery. Requires its current If-Match ETag and a stable Idempotency-Key. Send {} to retain the posting time, or supply schedule to choose a new time. Captures the destination, version and existing attachment IDs; does not change or pause the post. Upload new files using the returned preparationId. If another edit occurs or publication starts, uploads/apply are rejected.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: Idempotency-Key (1–128 characters).

Required header: If-Match (latest quoted numeric ETag).

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.
schedulebody · object · optionalNew posting time; omit to retain the existing due time.

Response

201 new / 200 replay · PreparedScheduleInfo, including deliveryId, expectedVersion, expiry and destination size limits.

Errors

404 not_found; 428 if_match_required; 412 version_mismatch; 409 publication_cutoff, idempotency_mismatch or too_many_preparations; 422 invalid_schedule.

Error format and troubleshooting →

Content schema · Schedule schema · Platform options

POST /api/v1/schedules/{id}/apply-edit

Apply a prepared edit

Apply the complete desired content to the existing delivery using the time fixed during edit preparation. Retain existing attachment IDs, omit them to remove media, or add completed uploads belonging to this preparation. Validates all media and platform settings. The captured version prevents overwriting a newer edit; publication already underway prevents changes. Identical retries return the original successful edit receipt and ETag without applying again. Read the delivery for its latest state. No new delivery is created and no additional If-Match or Idempotency-Key is required.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.
contentbody · object · requiredComplete text, attachments and platformOptions to retain.

Response

200 · Updated Delivery and ETag; identical retries return the saved result.

Errors

404 not_found; 412 version_mismatch; 409 publication_cutoff, schedule_closed, schedule_expired or idempotency_mismatch; 422 wrong_preparation_type, invalid_media_reference or destination validation errors.

Error format and troubleshooting →

Content schema · Schedule schema · Platform options

POST /api/v1/schedules

Prepare a schedule

First step for single-account and multi-account posts, including text-only posts. Fixes 1–10 connected account IDs and the posting time without creating deliveries. Returns the smallest destination video cap. Upload media using this id as preparationId, then finalize. Accepts a requested time up to five minutes in the past. Preparations remain valid for 24 hours from acceptance, including while uploading past the requested time. Accepted posts publish when ready; processing waits do not consume failure retries. To change destinations or time, prepare a new schedule.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: Idempotency-Key (1–128 characters).

Parameters

ParameterDetails
accountIdsbody · UUID[] · required1–10 distinct connected accounts.
schedulebody · object · requiredInstant or localTime/timeZone, no more than five minutes in the past at acceptance.

Response

201 new / 200 replay · PreparedScheduleInfo: id, status, accountIds, schedule, expiresAt, maxVideoBytes, maxImageUploadBytes, maxImages (the smallest photo-count limit across selected destinations) and nullable batchId.

Errors

400 idempotency_key_required; 404 not_found; 409 idempotency_mismatch or too_many_preparations; 422 invalid_targets or invalid_schedule.

Error format and troubleshooting →

GET /api/v1/schedules/{id}

Get prepared schedule

Read preparation status and current effective video cap. Status is Prepared, Expired, Cancelled or Finalized; finalized preparations include batchId.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.

Response

200 · PreparedScheduleInfo.

Errors

404 not_found.

Error format and troubleshooting →

POST /api/v1/schedules/{id}/finalize

Finalize scheduling

Submit content after all referenced uploads reach Completed. Every attachment must belong to this preparation and caller. Revalidates stored file properties, account settings and schedule, then creates all deliveries atomically. One invalid destination creates none. The preparation ID is the retry key: replay identical content for the same result, even after expiry; different content after finalization returns 409. No Idempotency-Key header is needed. Text-only posts skip uploads. POST /posts and POST /posts/batch have been removed.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.
contentbody · object · requiredText, completed attachments and platformOptions.

Response

201 new / 200 replay · id (batch ID), deliveries (Delivery[]). Poll each deliveries[].id for publication status.

Errors

404 not_found; 409 schedule_closed, schedule_expired or idempotency_mismatch; 422 invalid_media_reference, invalid_schedule or destination validation errors.

Error format and troubleshooting →

DELETE /api/v1/schedules/{id}

Cancel a preparation

Stops new transfers and finalization. Does not delete completed media or cancel finalized deliveries. Unfinished uploads expire normally; DELETE their upload sessions to release storage sooner.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.

Response

204 · No response body.

Errors

404 not_found; 409 schedule_closed if already finalized.

Error format and troubleshooting →

GET /api/v1/accounts/{account}/youtube/playlists

List YouTube playlists

Lists regular playlists owned by this connected channel, including private playlists. Follows YouTube pagination. Use the returned ID when scheduling, or supply a YouTube playlist link or exact name as content.platformOptions.youtube.playlistId. Names match case-insensitively; duplicate names require a link or ID. Scheduling saves the resolved ID. Missing names are created automatically with private visibility by default. Optional content.platformOptions.youtube.playlistSettings supplies description, privacyStatus, defaultLanguage and localizations for creation; existing playlists remain unchanged.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
accountpath · UUID · requiredYour connected YouTube account ID.

Response

200 · Array of id, title and privacyStatus.

Errors

404 not_found; 422 youtube_playlist_permission_required; 503 request_failed.

Error format and troubleshooting →

POST /api/v1/accounts/{account}/youtube/playlists

Create a YouTube playlist

Creates a playlist immediately, independently of scheduling. Reuse the same Idempotency-Key and body when retrying. Existing names are rejected: refresh the list and select the existing playlist. Unconfirmed creation must be checked on YouTube before creating another playlist. Pass the returned ID when scheduling a video.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: Idempotency-Key (1–128 characters).

Parameters

ParameterDetails
accountpath · UUID · requiredYour connected YouTube account ID.
Idempotency-Keyheader · UUID · requiredUnique request UUID; reuse for identical retries.
titlebody · string · required1–150 characters, without < or >.
descriptionbody · string · optionalUp to 5,000 UTF-8 bytes, without < or >.
privacyStatusbody · string · optionalprivate (default), unlisted or public.
defaultLanguagebody · string · optionalLanguage code, e.g. en-US. Required for translations.
localizationsbody · object · optionalLanguage codes mapped to title and optional description, with the same limits.

Response

200 · Created playlist with id, title and privacyStatus.

Errors

422 invalid_youtube_playlist_settings, youtube_playlist_create_rejected or youtube_playlist_permission_required; 409 youtube_playlist_exists, youtube_playlist_create_unconfirmed or idempotency_mismatch; 404 not_found.

Error format and troubleshooting →

POST /api/v1/media/uploads

Start a resumable upload

Prepare a schedule first. Its preparationId is required. Before reserving storage or accepting chunks, the server checks the declared video size against every prepared destination. Source photos may be up to 50 MB and are normalized automatically. Upload sequential chunks, complete, then poll until Completed and finalize that preparation with the media id. Reuse the same key, preparationId and file metadata when retrying.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: Idempotency-Key (1–128 characters).

Parameters

ParameterDetails
isThumbnailbody · boolean · optionalSet true for a JPEG/PNG/WebP video cover (up to 50 MB). At least one destination must be YouTube, Facebook or Instagram. Use the completed ID in content.platformOptions.videoThumbnails.<platform>.mediaId; keep it out of content.attachments.
durationSecondsbody · number · optionalDeclared video duration for an early YouTube eligibility check before transfer. The server still inspects the actual video and verifies long-upload access at finalization.
preparationIdbody · UUID · requiredID returned by Prepare a schedule. Destinations and time cannot change.
mimeTypebody · string · requiredimage/jpeg, image/png, image/webp or video/mp4.
sizebody · integer · requiredExact source file length, within the preparation's maxVideoBytes or maxImageUploadBytes.

Response

200 · Upload session, including id, chunkSize, nextChunk, receivedBytes, status and expiresAt. Idempotent replay returns the existing session.

Errors

400 idempotency_key_required; 404 not_found; 409 schedule_closed, schedule_expired, idempotency_mismatch, media_storage_limit or too_many_uploads; 413 media_too_large; 415 unsupported_media_type; 422 schedule_required or platform_media_too_large; 503 media_storage_unconfigured.

Error format and troubleshooting →

PUT /api/v1/media/uploads/{id}/chunks/{index}

Upload a chunk

Send binary bytes in order, beginning at zero. Each chunk must contain exactly chunkSize bytes (8,000,000), except the final remainder. Read nextChunk to resume after interruption. Retrying the same index and bytes is safe; different bytes at an accepted index fail. Retry 429 with backoff. Upload routes allow 300 requests per minute per identity.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredYour upload session id.
indexpath · integer · requiredZero-based nextChunk, or an earlier index for an identical retry.
Content-Typeheader · string · requiredapplication/octet-stream.
filebody · binary · requiredThe chunk, not the entire file. Save the first 8,000,000 bytes as chunk.bin for this example.

Response

200 · Updated session. receivedBytes and nextChunk include accepted chunks.

Errors

404 not_found; 409 chunk_mismatch, upload_closed; 410 upload_expired; 413 chunk_too_large; 415 unsupported_media_type; 422 invalid_upload_chunk; 429 upload_busy or rate_limited.

Error format and troubleshooting →

POST /api/v1/media/uploads/{id}/complete

Complete an upload

Commit all chunks and queue inspection and photo normalization. No body. Repeated completion is safe. Poll status every 3–5 seconds; finalize the prepared schedule only after Completed. Full destination encoding, geometry and duration validation runs at finalization. Video is not transcoded.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredYour upload session id.

Response

202 · Validating session; 200 if already Completed.

Errors

404 not_found; 409 upload_incomplete, upload_closed; 410 upload_expired. Failed validation is returned through session status/errorCode.

Error format and troubleshooting →

GET /api/v1/media/uploads/{id}

Get upload status

Returns only your session. Status is Uploading, Validating, Completed, Failed, Cancelled or Cleaned. Cleaned means its incomplete file was removed. errorCode explains validation failure, cancellation or expiry. receivedBytes counts accepted chunks, not validation progress. Completed metadata is available through Get media metadata. Retain the same local file when resuming.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredYour upload session id.

Response

200 · Upload session.

Errors

404 not_found; common authentication/rate-limit errors.

Error format and troubleshooting →

DELETE /api/v1/media/uploads/{id}

Cancel an upload

Stops an incomplete upload and queues cleanup. Repeated cancellation is safe. For a Completed upload use Delete media instead. Quota reservations are released after cleanup succeeds.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredYour upload session id.

Response

204 · No response body.

Errors

404 not_found; 409 upload_completed.

Error format and troubleshooting →

GET /api/v1/communication/ai-models

List reply AI models

Lists the configured model choices for Gemini, Claude and GPT: id, label, provider, model and available. Pass an id with available=true when generating a draft. Does not contact an AI provider or expose API keys.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

No parameters or request body.

Response

200 · ReplyAiModel[].

Errors

401 unauthorized.

Error format and troubleshooting →

POST /api/v1/communication/comments/{id}/draft

Generate an AI reply draft

Generates text only; never sends a reply or marks the comment handled. Requires model (an available id from GET /communication/ai-models). Omit personaId or pass null to use the connection's assigned persona by default. Supply your own personaId to override it for this draft, without changing assignments. With no personaId, useConnectionPersona=false uses the standard prompt alone. A supplied personaId takes precedence over useConnectionPersona. Uses stored post, comment and parent context for an owned, replyable post within its 30-day retention window after first collection. The standard natural style, no dashes, maximum one emoji, and platform length checks apply. The draft target is at most 600 characters or the platform limit if lower. Review the returned text, then explicitly call the reply endpoint to publish. Limit: six generation requests per minute per user, shared with the web UI and other API keys. A retry can generate a different draft and incur another AI request; no Idempotency-Key is required. Context and the selected persona are sent to the chosen AI provider. Drafts are not saved or posted by this endpoint.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredPostRivet comment ID.

Response

200 · ReplyAiDraft: text is the public reply. Optional commentTranslation and replyTranslation are review-only translations into the original post language.

Errors

400 malformed input; 404 not_found for inaccessible comment/persona; 422 ai_unavailable or provider_not_supported; 429 rate limited; 502 ai_generation_failed.

Error format and troubleshooting →

POST /api/v1/communication/comments/{id}/ignore

Ignore or restore a comment

Set ignored=true to hide a comment from Needs attention, or false to undo. Also closes pending automatic response suggestions. Only changes PostRivet; does not contact the social site. Unconfirmed actions remain visible until resolved.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredPostRivet comment ID.

Response

204 · No content.

Errors

404 not_found.

Error format and troubleshooting →

POST /api/v1/communication/actions/{id}/resolve

Resolve an uncertain comment action

Only after the user checks the social site: sent=true records that the action appeared; sent=false releases the blocked action for a new attempt with a new key. Requires confirm=true. This does not contact the social platform. Sending actions must be at least three minutes old.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredComment action ID.

Response

200 · CommentActionResult.

Errors

404 not_found; 422 consent_required; 409 comment_action_uncertain.

Error format and troubleshooting →

GET /api/v1/communication/posts

List recent conversations

Returns published posts from the last 30 days, plus older posts with comments retained for 30 days after first collection. Does not call social APIs. Filter by lowercase provider. Follow nextOffset for additional posts.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
providerquery · string · optionalSocial platform name.
offsetquery · integer · optionalOffset from nextOffset; defaults to zero.
needsAttentionquery · boolean · optionalDefaults to false. True hides handled or ignored comments and posts without pending comments, before pagination. Unconfirmed actions remain visible.
automatedquery · boolean · optionalDefaults to false. True returns only comments with confirmed completed automation actions and posts containing them, before pagination. Takes precedence over needsAttention.
preparedquery · boolean · optionalDefaults to false. True returns only current nonempty generated replies ready in Review mode, and posts containing them, before pagination. Excludes like suggestions and handled comments. Takes precedence over automated and needsAttention.

Response

200 · InboxPage: items (up to 50), nextOffset (nullable). Each post includes scheduledAt (display time), publishedAt (recorded completion used for tracking), capabilities, saved comment count, lastCheck, nextCheck, partial and a safe message.

Errors

Common authentication errors.

Error format and troubleshooting →

GET /api/v1/communication/posts/{id}/comments

Read saved comments

Returns top-level comments and identifiable replies to the connected account’s comments for a recent published delivery owned by this user. Never refreshes the social API. Comments awaiting available automatic assessment are temporarily withheld until assessment finishes; skipped, failed, unavailable, capped and unconfirmed comments remain available for manual handling. Follow nextOffset for more comments. Comment IDs are PostRivet UUIDs used for actions; parentId is the social platform's parent ID.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredPublished delivery ID.
offsetquery · integer · optionalOffset from nextOffset; defaults to zero.
needsAttentionquery · boolean · optionalDefaults to false. True hides handled or ignored comments and posts without pending comments, before pagination. Unconfirmed actions remain visible.
automatedquery · boolean · optionalDefaults to false. True returns only comments with confirmed completed automation actions and posts containing them, before pagination. Takes precedence over needsAttention.
preparedquery · boolean · optionalDefaults to false. True returns only current nonempty generated replies ready in Review mode, and posts containing them, before pagination. Excludes like suggestions and handled comments. Takes precedence over automated and needsAttention.

Response

200 · InboxComments: items (up to 100), nextOffset (nullable). Items include author, text, createdAt, likes, liked, ignored, replied, replyToYou, canReply, actionStatus, actionMessage, nullable automationStatus (Skipped, DailyLimitReached or PostLimitReached for unhandled comments with automation enabled), and nullable preparedResponse (action, text, actionKey). Prepared responses appear only while the comment is unhandled and the suggestion is current; the same draft is shown directly in Communication. Replying, liking or ignoring through either interface removes the pending suggestion. Nullable automatedResponse (action, text) identifies a confirmed completed automation action; text contains the actual sent reply, or null for a like.

Errors

404 not_found, including expired or other users' posts.

Error format and troubleshooting →

POST /api/v1/communication/comments/{id}/reply

Reply to a comment

Publishes a public text reply using the connection that published the post. A confirmed local reply or a collected reply by this same account blocks a new reply with 409 comment_already_replied; continue that conversation on the social site. Reusing the original Idempotency-Key still returns its original result. Supply a UUID Idempotency-Key and preserve it and the text on retry. Consult the post's capabilities.replyLimit. A 200 response can report Failed or Uncertain; inspect status. Sending or Uncertain actions are never automatically resent. Check the social site before resolving an uncertain action.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: Idempotency-Key (1–128 characters).

Parameters

ParameterDetails
idpath · UUID · requiredPostRivet comment ID.

Response

200 · CommentActionResult: id, status (Completed, Failed, Sending or Uncertain), message.

Errors

404 not_found; 422 invalid_text or provider_not_supported; 409 idempotency_mismatch, comment_action_uncertain or comment_already_replied.

Error format and troubleshooting →

POST /api/v1/communication/comments/{id}/like

Like a comment

Likes a comment where capabilities.like is true (Bluesky, Facebook and X). After confirmed success, also marks the comment ignored so it leaves To review. Failed or uncertain likes remain visible. Ignore can be reversed separately. No body. Supply a UUID Idempotency-Key and reuse it on retry. Check status even after HTTP 200. No unlike action is included.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: Idempotency-Key (1–128 characters).

Parameters

ParameterDetails
idpath · UUID · requiredPostRivet comment ID.

Response

200 · CommentActionResult: id, status, message.

Errors

404 not_found; 422 provider_not_supported; 409 idempotency_mismatch, comment_action_uncertain or comment_already_replied.

Error format and troubleshooting →

GET /api/v1/webhooks/{id}

Get a webhook

Returns your endpoint configuration, never its signing secret.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredWebhook ID.

Response

200 · WebhookInfo.

Errors

404 not owned.

Error format and troubleshooting →

GET /api/v1/webhooks

List webhooks

Lists your endpoints, without signing secrets. Up to five endpoints per user. All supported events are included.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

No parameters or request body.

Response

200 · WebhookInfo[].

Errors

401 unauthorized.

Error format and troubleshooting →

POST /api/v1/webhooks

Create a webhook

Registers a public HTTPS endpoint on port 443. Returns its signing secret once; store it securely. Events: post.created, post.status_changed, post.published, post.failed, post.uncertain, post.deleted, post.cancelled, post.attention_required, post.rescheduled, connection.attention_required, connection.updated, comment_action.completed, comment_action.failed, comment_action.uncertain. Events are captured after registration, transactionally with changes. See /webhooks/guide for signing and delivery semantics.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

No parameters or request body.

Response

201 · { webhook, signingSecret }.

Errors

422 invalid address/name or five-endpoint limit.

Error format and troubleshooting →

PUT /api/v1/webhooks/{id}

Rename, pause or resume a webhook

Provide name, the existing URL and enabled. Addresses are immutable: register a new endpoint to change the recipient. Pausing retains existing queued events but captures no new events; requests already in flight may complete.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredWebhook ID.

Response

200 · WebhookInfo.

Errors

404 not owned; 422 invalid input.

Error format and troubleshooting →

DELETE /api/v1/webhooks/{id}

Delete a webhook

Removes the endpoint and its queued deliveries and history. An in-flight request may complete.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredWebhook ID.

Response

204 · Deleted.

Errors

404 not owned.

Error format and troubleshooting →

POST /api/v1/webhooks/{id}/rotate-secret

Rotate a signing secret

Returns the replacement secret once. New delivery attempts, including retries, use it. In-flight requests may still use the previous secret. Update your receiver accordingly.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredWebhook ID.

Response

200 · { signingSecret }.

Errors

404 not owned.

Error format and troubleshooting →

GET /api/v1/webhooks/{id}/deliveries

List recent webhook deliveries

Returns the latest 50 events with status, attempt count and last HTTP status. No recipient response bodies or raw network errors are stored. History expires after 30 days. Status is Pending, Sending, Delivered or Failed.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredWebhook ID.

Response

200 · WebhookAttemptInfo[].

Errors

404 not owned.

Error format and troubleshooting →

POST /api/v1/webhooks/{id}/test

Queue a test event

Queues webhook.test for this endpoint. One test per minute; requires an enabled endpoint. Delivery is asynchronous.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredWebhook ID.

Response

202 · { id } event ID.

Errors

404 not owned; 409 paused; 429 test limit.

Error format and troubleshooting →

POST /api/v1/webhooks/{id}/deliveries/{delivery}/retry

Retry a failed webhook

Restarts the retry budget for a Failed delivery with the same event ID and payload. Requires an enabled endpoint. Never replays a social action.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredWebhook ID.
deliverypath · UUID · requiredEvent ID from delivery history.

Response

202 · Queued.

Errors

404 endpoint not owned; 409 not failed or paused.

Error format and troubleshooting →

GET /api/v1/posting-schedules

List posting schedules

Lists weekly posting slots for your connections. Times use each schedule's timezone. Changing a schedule never moves existing posts.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

No parameters or request body.

Response

200 · PostingScheduleInfo[].

Errors

Common authentication errors.

Error format and troubleshooting →

PUT /api/v1/posting-schedules/{account}

Save a connection's posting schedule

Replaces the weekly slots for this connection. day uses ISO weekdays: Monday=1, Sunday=7. time is HH:mm. Up to 70 slots; an enabled schedule requires at least one. Set enabled=false to pause future additions without changing queued posts. Optionally supply the returned revision to protect against concurrent edits (all-zero UUID when creating).

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
accountpath · UUID · requiredYour connection ID.

Response

200 · PostingScheduleInfo.

Errors

404 not owned; 422 invalid_posting_schedule; 409 posting_schedule_changed.

Error format and troubleshooting →

GET /api/v1/posting-schedules/{account}/next

Preview the next slot

Returns the next available UTC time, at least one minute ahead. This is a preview, not a reservation. Existing posts occupy their scheduled minute unless Cancelled or Deleted. Searches up to 366 local days. Skips nonexistent daylight-saving times and uses only the earlier occurrence of repeated times.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
accountpath · UUID · requiredYour connection ID.

Response

200 · { dueAt }.

Errors

404 not owned; 422 posting_schedule_unavailable or posting_schedule_full.

Error format and troubleshooting →

POST /api/v1/posting-schedules/queue

Add approved content to the next slots

Schedules approved content for 1–10 connections, each in its own next available slot. All destinations must pass normal publishing validation or nothing is scheduled. Slots are assigned atomically; keep the same Idempotency-Key and payload on retries. Content supports normal platform customization and already-uploaded media IDs; this endpoint does not upload media. New media still uses the schedule preparation/upload flow. Returned deliveries[].id is the ID for normal post management; dueAt is the assigned time. No automatic reshuffling occurs.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: Idempotency-Key (1–128 characters).

Parameters

No parameters or request body.

Response

200 · { id, created, deliveries }.

Errors

400 idempotency_key_required; 409 idempotency_mismatch; 422 unavailable/full slots or normal content validation failures.

Error format and troubleshooting →

GET /api/v1/reply-personas

List reply personas

Returns your saved personas and their assigned connection IDs. One active persona per connection; one persona may serve many connections. These personalize Communication AI drafts only.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

No parameters or request body.

Response

200 · ReplyPersonaInfo[]: id, name, description, accountIds.

Errors

401 unauthorized.

Error format and troubleshooting →

GET /api/v1/reply-personas/{id}

Get a reply persona

Read a persona and its current assignments. Only the owner can access it.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.

Response

200 · ReplyPersonaInfo.

Errors

404 not_found.

Error format and troubleshooting →

POST /api/v1/reply-personas

Create a reply persona

Name: 1–100 characters. Description: 1–2,500 characters. Up to 100 personas per user. Starts unassigned. Description is sent to the selected AI provider when drafting; do not include secrets. Creation is not idempotent; list personas before retrying an ambiguous response.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

No parameters or request body.

Response

201 · ReplyPersonaInfo and Location header.

Errors

422 invalid_reply_persona or reply_persona_limit.

Error format and troubleshooting →

PUT /api/v1/reply-personas/{id}

Update a reply persona

Replace name and description. Keeps assignments. Changes affect future drafts for every assigned connection; existing drafts and published replies are unchanged. Latest saved update wins.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.

Response

200 · ReplyPersonaInfo.

Errors

404 not_found; 422 invalid_reply_persona.

Error format and troubleshooting →

PUT /api/v1/reply-personas/{id}/connections

Assign a persona to connections

Replace this persona's entire assignment list with accountIds from GET /accounts. Selecting an account moves it from any previous persona. Omitted accounts using this persona revert to default style; [] removes all assignments. All IDs must belong to you; invalid IDs reject the entire change. Selecting all current accounts does not automatically include connections added later.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.

Response

200 · ReplyPersonaInfo.

Errors

404 not_found; 422 invalid_persona_connections.

Error format and troubleshooting →

DELETE /api/v1/reply-personas/{id}

Delete a reply persona

Deletes the profile and all its assignments. Connections return to default reply style; no social content is changed.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.

Response

204 · No response body.

Errors

404 not_found.

Error format and troubleshooting →

GET /api/v1/media

List media

Returns up to 100 nondeleted uploads ordered by ID. Continue with the last item's id as after until an empty array is returned.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
afterquery · UUID · optionalExclusive last ID from the previous page.

Response

200 · MediaInfo[]; see Media schema.

Errors

400 for an invalid UUID; common errors.

Error format and troubleshooting →

GET /api/v1/media/{id}

Get media metadata

Returns metadata, not file bytes. Deleted records can still be returned with deletedAt set; these cannot be attached to new posts.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.

Response

200 · MediaInfo; see Media schema.

Errors

404 not_found: unknown or another user's upload.

Error format and troubleshooting →

DELETE /api/v1/media/{id}

Delete media

Sets deletedAt immediately and queues stored bytes for deletion. Repeated deletion of the same owned record succeeds. Media referenced by Scheduled, Retry, Held, NeedsReschedule, Publishing, Reconciling or Uncertain deliveries cannot be deleted.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredResource ID belonging to the caller.

Response

204 · No response body.

Errors

404 not_found; 409 media_in_use: cancel or resolve the referencing deliveries first.

Error format and troubleshooting →

GET /api/v1/posts

List deliveries

Lists deliveries ordered by ID, not schedule time. Pass nextCursor as after and retain your status filter. Continue until items is empty; a nonempty last page may still contain nextCursor.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
statusquery · string · optionalExact delivery status, such as Scheduled, Processing, Confirming, Uncertain, Published or Deleted. Processing and Confirming are normal waits, not failures. Unknown values return no matches.
afterquery · UUID · optionalExclusive last delivery ID.
limitquery · integer · optionalDefault 25; clamped to 1–100.

Response

200 · items (Delivery[]), nextCursor (nullable UUID). No content text; retrieve an individual post for content.

Errors

400 for invalid typed query parameters; common errors.

Error format and troubleshooting →

GET /api/v1/posts/{id}

Get post

Use the delivery id, not postId or batchId. Returns the latest delivery state and saved content. Capture the ETag header before editing or cancelling.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredDelivery ID.

Response

200 · delivery (Delivery), batchId (nullable UUID), content (Content). ETag header: quoted version, e.g. "1".

Errors

404 not_found: unknown or another user's delivery.

Error format and troubleshooting →

PUT /api/v1/posts/{id}

Edit or reschedule a post

Change the schedule while preserving the same ID, account and attempt history. Omit content to retain it; supplied content replaces all content, including attachments and platform options. Omit accountId to retain it; changing accounts is forbidden. Supports pending, Failed, Expired, Uncertain, Published and Deleted posts. Terminal states require confirmed:true: verify failed/uncertain posts were not published to avoid duplicates; published posts are immediately deleted with their engagement before scheduling again. Deletion must be supported and confirmed. Deleted posts skip repeat deletion. Media and connection validation still apply. Active publication/check leases block unsafe edits. YouTube passthrough transfers update the existing remote title, description, audience and schedule; media and other settings cannot change after transfer starts, and Studio changes and imminent-release safeguards still apply. Use prepared edits for newly uploaded replacement media on pending posts. After a lost response or 412, GET the same ID and review before retrying. The former POST reschedule endpoint has been removed.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: If-Match (latest quoted numeric ETag).

Parameters

ParameterDetails
idpath · UUID · requiredDelivery ID.
schedulebody · Schedule · requiredDesired instant or localTime/timeZone; up to five minutes in the past.
contentbody · Content · optionalComplete replacement content; omit to retain saved content.
accountIdbody · UUID · optionalExisting account only.
confirmedbody · boolean · optionalRequired true for Failed, Expired, Uncertain, Published or Deleted; acknowledges the consequences above.

Response

200 · Updated Delivery with the same ID and new ETag. Normally Scheduled; YouTube passthrough may return NativeScheduled or Confirming.

Errors

400 post_action_confirmation_required or invalid_schedule; 404 not_found; 428 if_match_required; 412 version_mismatch; 409 publication_cutoff, post_delete_unconfirmed, youtube_transfer_busy or youtube_native_management_required; 422 immutable_target, unsupported deletion or validation errors. If remote deletion succeeds but scheduling fails, GET the same ID to review its Deleted state.

Error format and troubleshooting →

Content schema · Schedule schema · Platform options

POST /api/v1/posts/{id}/delete-published

Delete a published post from its social site

Permanently deletes this destination's live post, including its comments and engagement. Requires confirmed:true and the latest If-Match ETag. Preserves the PostRivet ID, content and publishing history; other batch destinations are untouched. Published posts with a confirmed remote identifier and a supported deletion integration are accepted. Current Instagram Login and TikTok integrations cannot delete published posts. Deletion is recorded only after the platform confirms it. On a lost response, GET the same ID and inspect remoteDeletedAt before retrying. Repeating with the current ETag after confirmed deletion succeeds without another remote delete; stale ETags return 412. Use cancel for pending posts.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: If-Match (latest quoted numeric ETag).

Parameters

ParameterDetails
idpath · UUID · requiredDelivery ID of the published destination.
confirmedbody · boolean · requiredMust be true, acknowledging immediate permanent deletion and loss of social-site comments and engagement.

Response

200 · Delivery with remoteDeletedAt set and new ETag. Status is Deleted; remoteDeletedAt records the confirmed deletion time. No local record is removed.

Errors

400 post_action_confirmation_required; 404 not_found; 428 if_match_required; 412 version_mismatch; 409 post_not_published, published_post_id_missing or post_delete_unconfirmed; 422 post_delete_unsupported, provider_not_supported or post_delete_permission_required. Ambiguous deletion is not reported as confirmed.

Error format and troubleshooting →

Content schema · Schedule schema · Platform options

POST /api/v1/posts/{id}/cancel

Cancel a pending post

Cancels ordinary Scheduled, Retry, Held or NeedsReschedule deliveries. For YouTube passthrough, cancels an unstarted transfer or permanently deletes the remote video, even if it became public before this request arrived. Unknown deletion outcomes are checked again. No request body. Ordinary publication already in progress cannot be recalled. If a response is lost, read the delivery first; cancellation changes its version and status.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Required header: If-Match (latest quoted numeric ETag).

Parameters

ParameterDetails
idpath · UUID · requiredDelivery ID.

Response

200 · Delivery with status Cancelled and an incremented version. New ETag header.

Errors

404 not_found; 428 if_match_required; 412 version_mismatch; 409 publication_cutoff.

Error format and troubleshooting →

GET /api/v1/posts/{id}/attempts

List publication attempts

Returns at most 100 attempts, newest first. before is an exclusive timestamp filter, not a unique cursor; attempts with tied timestamps can be skipped at page boundaries. Use delivery status as the authoritative result.

Requires your publishing API key. Common authentication and rate-limit errors apply to every endpoint.

Parameters

ParameterDetails
idpath · UUID · requiredDelivery ID.
beforequery · ISO-8601 timestamp · optionalOnly attempts started before this instant.

Response

200 · Attempt[]: id, ownerId, deliveryId, leaseId (UUID); version (integer); startedAt, outboundStartedAt, completedAt (timestamps, last two nullable); outcome, workerInstance (strings); error (nullable string).

Errors

404 not_found; 400 invalid timestamp; common errors.

Error format and troubleshooting →

Content & attachments

Used by finalization and delivery-edit requests. These are PostRivet limits, even when a platform accepts more.

ParameterDetails
textcontent · string · requiredShared caption, validated for each destination after applying platformText. Limits: Bluesky 300 graphemes/3,000 UTF-8 bytes; X 280 weighted characters for standard accounts or 25,000 for confirmed subscribers (conservative counting); Instagram 2,200 characters; Facebook 63,206 characters (PostRivet cap); Threads 500 characters with byte-counted emoji; YouTube description 5,000 UTF-8 bytes; TikTok video caption 2,200 UTF-16 units or photo description 4,000 (separate photo title 90). Explicit YouTube description/TikTok video title take precedence. Empty requires media or an override for every selected platform.
platformTextcontent · object · optionalCaption overrides keyed by bluesky, x, instagram, facebook, threads, tiktok or youtube. Values are strings, with the same caption limits. Missing keys use text. Applies to all selected accounts on that platform. Final post reads return the resolved caption as content.text.
attachmentscontent · object[] · optionalUp to twenty images for Threads, ten for Instagram, Facebook and Bluesky, four for X and TikTok, or one video. Omit or send [] for text only.
idattachment · UUID · requiredAn available upload owned by you.
orderattachment · integer · requiredConsecutive zero-based order values: 0, 1, 2, 3.
kindattachment · string · requiredimage or video; must match the uploaded file.
altTextattachment · string · optionalUp to 2,000 characters; X permits at most 1,000.
width / heightattachment · integers · optionalProvide both or neither, each between 1 and 100,000.
platformOptionscontent · object · optionalPer-provider options below; required for YouTube and TikTok.

First prepare a schedule, then upload images/video with its preparationId and finalize using the completed upload IDs. Attachments must belong to that preparation. A post may contain 1–20 distinct images for Threads, up to ten for Instagram, Facebook and Bluesky (up to four for X and TikTok) or one video; mixing kinds is not supported. Text must be present as a string; use an empty string when only media is needed.

Schedule

Choose exactly one time representation. Schedule at least five seconds in the future. Store an offset instant for a fixed moment or use a local time with an IANA zone.

ParameterDetails
instantschedule · ISO-8601 string · one representation requiredAn explicit offset or Z. Do not combine with any local-time fields.
localTimeschedule · string · alternativeISO local date/time without offset, e.g. 2030-06-01T10:00:00.
timeZoneschedule · string · required with localTimeIANA zone, e.g. America/Chicago, not a Windows zone name.
disambiguationschedule · string · optionalearlier or later; required for repeated local times.

A nonexistent daylight-saving time is rejected. A repeated local time requires earlier or later. Once accepted, dueAt is the resolved UTC instant.

Delivery

ParameterDetails
id / postId / ownerId / accountIddelivery · UUIDs · responseUse id in post endpoints. postId identifies saved content; ownerId is the internal owner.
versiondelivery · integer · responseConcurrency version; use the response ETag header for If-Match.
statusdelivery · string · responsePublication state, described below.
dueAtdelivery · timestamp · responseResolved scheduled UTC instant.
scheduleIntentdelivery · string · responseSerialized JSON containing the original schedule choice.
attemptCountdelivery · integer · responseNumber of attempts started.
nextDispatchAtdelivery · timestamp · responseNext dispatch eligibility, not a guarantee of publication time.
startedAt / outboundStartedAt / providerConfirmedAt / completedAtdelivery · nullable timestamps · responseProcessing, outbound call, provider confirmation and terminal timing.
platformPostIddelivery · nullable string · responseFinal platform post identity when supplied by the provider. Bluesky uses the full AT URI. Null means unavailable, not unpublished.
platformOperationIddelivery · nullable string · responsePublishing receipt or container ID, separate from the final post identity. Not an analytics post ID.
providerUri / providerCid / providerUrldelivery · nullable strings · responseProvider identifiers and a public URL when available.
errordelivery · nullable string · responseSanitized publication failure code; interpret together with status.
leaseId / leaseUntildelivery · nullable UUID / timestamp · responseInternal worker coordination metadata; do not use for client concurrency.
operationKeydelivery · string · responseInternal provider deduplication identifier; distinct from your Idempotency-Key.

Statuses

Scheduled / Retry: pending; can be edited or cancelled. Publishing / Reconciling: work in progress. Uncertain: the platform may already have published it; check the platform before creating another post. Published: confirmed. Cancelled / Expired / Failed: no more automatic publication for this delivery. ReconnectRequired: refresh the account through Connections and review the delivery before scheduling again.

Provider failures after scheduling appear in delivery.error and attempts, not retroactively in the create response. Inspect status and providerUrl as well as error.

MediaInfo

ParameterDetails
idmedia · UUID · responseUse as an attachment ID.
kindmedia · string · responseimage or video.
mimeTypemedia · string · responseStored MIME type after automatic image conversion.
sizemedia · integer · responseBytes stored.
sha256media · string · responseHex SHA-256 of file bytes.
createdAtmedia · timestamp · responseUpload creation instant.
deletedAtmedia · nullable timestamp · responseSet when file bytes have been deleted.

Metadata endpoints do not return original file bytes. Keep your original file separately. A non-null deletedAt means the bytes have been removed.

Scheduling and edits validate stored media against every destination. One incompatible destination rejects the entire batch. API upload sessions require a preparationId and check the destination video cap before accepting bytes. Full file validation still runs before scheduling. Limits are decimal bytes.

Upload JPEG, PNG or WebP source photos up to 50 MB each. Before becoming available for scheduling, photos are converted to JPEG when needed and reduced to the strictest supported photo size and resolution limits. Aspect ratio is preserved; transparent areas become white. Instagram and Threads aspect-ratio violations still reject scheduling. Completed MediaInfo describes the converted bytes; upload-session metadata describes the original upload.

Bluesky accepts JPEG/PNG/WEBP photos up to 2 MB each or one MP4 video up to 300 MB.

Facebook accepts JPEG/PNG photos up to 10 MB each or one MP4 video up to 1 GB.

Instagram accepts JPEG photos up to 8 MB each or one MP4 video up to 300 MB.

Threads accepts JPEG/PNG photos up to 8 MB each or one MP4 video up to 1 GB.

TikTok accepts JPEG/WEBP photos up to 10 MB each or one MP4 video up to 1 GB.

X accepts JPEG/PNG photos up to 5 MB each or one MP4 video up to 1 GB.

YouTube requires one MP4 video up to 5 GB. Photos are not supported.

Upload validation inspects actual media tracks. Scheduling checks each destination's file size, format, dimensions, aspect ratio, frame rate, codecs and duration requirements. Files without inspection metadata must be uploaded again. Account restrictions and future provider changes can still cause rejection.

Platform options

Place options under content.platformOptions. Batch requests apply each object only to its matching provider. The common 300-grapheme / 3,000-byte text cap still applies.

Video thumbnails · platformOptions.videoThumbnails

Optional per-platform covers for a single video. Upload cover images with isThumbnail: true and the same preparationId as the video. JPEG/PNG/WebP sources up to 50 MB are normalized to JPEG. Thumbnail files count toward storage and follow the video's retention policy. X, Threads and Bluesky have no supported custom-thumbnail option.

OptionDetails
youtube / facebook / instagram.mediaIdvideoThumbnails · UUID · optionalCompleted thumbnail upload ID. YouTube requires a channel eligible for custom thumbnails. A rejected YouTube thumbnail produces a warning with the existing video; do not upload the video again.
instagram / tiktok.frameTimeMsvideoThumbnails · integer · optionalZero-based frame timestamp in milliseconds, less than the video duration. Choose either mediaId or frameTimeMs for each platform, never both. Omit the platform entry to let it choose automatically.

Bluesky

No extra options. Text, JPEG/PNG/WebP images or MP4 video; the common content limits apply.

X · platformOptions.x

JPEG/PNG images or MP4 video. Text: 280 weighted characters for standard accounts or 25,000 for confirmed Basic, Premium, or PremiumPlus subscribers; subscription status is checked automatically and cached for up to 15 minutes; URL and emoji counting is conservative. Alt text: up to 1,000 characters. X permissions may restrict some options.

OptionDetails
replySettingsx · string · optionalfollowing, mentionedUsers, subscribers or verified. Omit for the platform default.
madeWithAix · boolean · optionalMarks the post as made with AI.
paidPartnershipx · boolean · optionalMarks the post as a paid partnership.

YouTube · platformOptions.youtube

Requires one MP4 video. PostRivet accepts up to 5 GB and 12 hours using resumable uploads. Videos over 15 minutes require YouTube longUploadsStatus=allowed, checked at scheduling and publishing. Selecting other destinations applies their lower limits.

OptionDetails
titleyoutube · string · required1–100 characters. Cannot contain < or >.
categoryIdyoutube · string · optionalYouTube category ID only (not a name), for example 27 for Education or 20 for Gaming. Omitted/null defaults to 22 (People & Blogs). Supported IDs: 1, 2, 10, 15, 17, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29. Invalid values return 422 invalid_youtube_category. Applies to ordinary and passthrough uploads.
playlistIdyoutube · string · optionalRegular playlist owned by this channel: ID, YouTube link or exact name (case-insensitive). Missing names create a playlist during finalization/editing, private by default. Missing links/IDs fail; duplicate names require an ID or link. Existing playlists are reused unchanged. The resolved ID is saved and the video added after publication. Omit to publish without a playlist.
playlistSettingsyoutube · object · optionalSettings used only when creating a missing playlist name. Fields: description, privacyStatus (private by default; also unlisted/public), defaultLanguage, localizations (language code to title/description). Same limits as Create a YouTube playlist. Playlist visibility is independent of video visibility. Creation is immediate and may persist if a later scheduling check fails. Settings are not retained on saved posts.
madeForKidsyoutube · boolean · requiredExplicitly set true or false to identify the video's audience.
privacyStatusyoutube · string · optionalprivate (default), unlisted or public.
passthroughyoutube · boolean · optionalDefault false. When true, requires public visibility. Uploads privately now and schedules release on YouTube after processing; accepts Preparations up to five minutes after the requested time; accepted passthrough posts publish when ready if upload or processing runs late. Delivery transitions through Processing and Confirming to NativeScheduled or Published. Normal YouTube processing and initial confirmation checks run every 30 seconds. No automatic fallback or duplicate upload on ambiguous results. Edit using PUT /posts/{id}/youtube-schedule; cancel using POST /posts/{id}/cancel.
releaseMediaAfterTransferyoutube · boolean · optionalDefault false; requires passthrough. Removes PostRivet's copy after confirmed processing and native scheduling, once other posts no longer need it. Remote editing/deletion still work; reposting requires a new upload if the original has been removed. The initial upload still counts against storage limits.
descriptionyoutube · string · optionalDefaults to content.text. Maximum 5,000 UTF-8 bytes. Cannot contain < or >.

TikTok · platformOptions.tiktok

Requires JPEG/WebP photos or one MP4. PostRivet checks account-specific privacy, interaction settings and video duration when you submit or edit a post, and checks again at publication. Invalid submissions return 422 with field errors and allowed values. Public posting depends on the app's TikTok approval.

OptionDetails
privacyLeveltiktok · string · requiredPUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR or SELF_ONLY. The account may permit only a subset; a 422 response supplies allowedPrivacyLevels. Branded content cannot use SELF_ONLY.
consenttiktok · boolean · requiredMust be true after obtaining explicit user consent to post.
titletiktok · string · optionalUp to 90 characters for photos or 2,200 for video.
allowCommentstiktok · boolean · optionalDefault false. Rejected if comments are disabled for this account.
allowDuettiktok · boolean · optionalDefault false. Video only; rejected if Duet is disabled for this account.
allowStitchtiktok · boolean · optionalDefault false. Video only; rejected if Stitch is disabled for this account.
yourBrandtiktok · boolean · optionalDefault false. Identifies promotion of your own brand.
brandedContenttiktok · boolean · optionalDefault false. Identifies branded content; cannot be private (SELF_ONLY).
madeWithAitiktok · boolean · optionalDefault false. Identifies AI-generated content.
autoAddMusictiktok · boolean · optionalDefault false. Requests automatic music for photo posts.

Facebook Pages · platformOptions.facebook

Text, JPEG/PNG photos or MP4 video. Personal profiles and groups are not supported.

OptionDetails
linkfacebook · string · optionalHTTPS URL, at most 2,048 characters, without embedded credentials. Only on a post without media.
videoTitlefacebook · string · optionalUp to 255 characters. Requires one video.

Threads · platformOptions.threads

Text, up to 20 JPEG/PNG photos or one MP4 video.

OptionDetails
topicTagthreads · string · optionalOne topic, 1–50 characters, without periods, ampersands or control characters. Enter the topic name without a # prefix.
removeHashtagsthreads · boolean · optionalDefault false. Removes standalone hashtag tokens from the Threads caption after applying platformText. Other captions and topicTag are unchanged. An empty result requires media.
replyControlthreads · string · optionaleveryone, accounts_you_follow or mentioned_only.
linkthreads · string · optionalHTTPS URL, at most 2,048 characters, without embedded credentials. Only on a post without media.

Instagram · platformOptions.instagram

Requires a professional account and 1–10 JPEG photos or one MP4 Reel. Multiple photos form a carousel. content.text becomes the caption. No text-only posts.

OptionDetails
shareToFeedinstagram · boolean · optionalOnly with video. Set true to also share the Reel to the feed.

Analytics schema

Capture the id from a successful scheduling response. For multiple destinations, save each deliveries[].id. These same IDs appear beside posts and in the website’s scheduling confirmation.

ParameterDetails
id / accountIdresponse · UUID · requiredDelivery ID used for analytics, and its connected account ID.
provider / publicationStatusresponse · string · requiredPlatform name and actual delivery state.
statusresponse · string · requiredpending: not published yet; not_published: terminal without publication; ready: cached metrics are fresh; stale: retained metrics need refresh or have a partial error; tracking_ended: retained metrics after automatic collection ends; unavailable: no current snapshot.
metrics.viewsresponse · integer or null · nullableCumulative views; X maps its impression_count. Definitions differ by provider.
metrics.reactions / commentsresponse · integer or null · nullableLikes or total reactions, and comments/replies.
metrics.shares / reposts / quotesresponse · integer or null · nullableDistinct provider counters. Do not assume these can be added without overlap.
metrics.saves / reachresponse · integer or null · nullableBookmarks/saves and per-post reach when available. Reach is not deduplicated across posts.
metrics.watchSeconds / averageWatchSecondsresponse · number or null · nullableVideo watch time and average watch duration in seconds.
metrics.watchPercent / watchViewsresponse · number or null · nullableReported average percentage watched and corresponding report view count, used to weight aggregate percentages. Percent can exceed 100 with replays.
retrievedAt / nextRefreshAtresponse · ISO-8601 timestamp or null · nullableSnapshot retrieval time and earliest post refresh eligibility. X is collected in the background on the publication UTC day and the following UTC day, pausing during the final 10 minutes of each day; reads return stored metrics only. nextRefreshAt is null after automatic tracking ends (after 30 days for other platforms). Connection/provider cooldowns can delay this further; provider reporting itself may lag.
errorresponse · string or null · nullableSanitized per-item problem. Retained metrics can coexist with an error; HTTP 200 does not mean every provider refreshed successfully.

Refresh timing

Published posts are eligible after 15 minutes during their first day, 1 hour through day 7, 6 hours through day 30, then daily. First reads fetch immediately when permitted. Connections have a minimum 60-second refresh interval; simultaneous requests share database claims. Provider rate limits and Retry-After take precedence. Requests have a 25-second refresh budget and can return older or unavailable results; check retrievedAt and nextRefreshAt rather than polling rapidly. The background job refreshes recent posts in bounded batches every 5 minutes.

Missing data & errors

Null means the platform did not supply that metric. Zero is an actual reported count, except unpublished posts which return default zeros. A published post without a platform ID cannot be queried. Older stored metrics expire after 30 days without a successful refresh.

ParameterDetails
permission_requirederror · string · actionEnable the provider’s analytics permissions, then refresh the connection through the website.
reconnect_required / connection_disconnectederror · string · actionRefresh or reconnect the account through the website.
rate_limitederror · string · retry laterRespect nextRefreshAt; stored counters are retained.
provider_error / report_pendingerror · string · retry laterProvider retrieval failed or a detailed report is not ready. Cached metrics remain usable with their retrievedAt.
post_unavailableerror · string · check accountProvider did not return the post. It may be deleted, private or inaccessible; old counters are cleared.
platform_id_unavailableerror · string · unavailablePublished delivery has no usable platform post ID. TikTok may not supply one for private/moderated posts.
unsupported_media / unsupported_platformerror · string · unavailableThis integration cannot retrieve those analytics. TikTok Display API supports videos, not photo posts.

Views follow each platform’s definition (X impressions, for example). Shares, reposts and quotes remain separate. Watch percent can exceed 100% when replays count. Aggregate percentages use reported watchViews as weights; reach totals do not represent unique people across posts. The dashboard selects posts by publication date and shows lifetime counters, not changes within the selected period.

Errors

Application errors use application/problem+json: status is the HTTP status; title is a machine-readable code for domain errors; detail explains the problem; traceId identifies the request. Framework authentication and binding failures may use a generic title. Do not rely on title alone for 401/403, and allow for proxy responses without JSON.

ParameterDetails
idempotency_key_requiredHTTP 400 · string · errorSend a nonblank Idempotency-Key of 1–128 characters. Invalid JSON or typed query values can instead produce a generic 400.
authentication / authorizationHTTP 401 / 403 · string · error401: verify the key and its expiration. 403: account access or key scope is not allowed. Sign in on the website to resolve access.
not_foundHTTP 404 · string · errorResource missing, unavailable, or owned by someone else. Check IDs from your own account list.
idempotency_mismatchHTTP 409 · string · errorSame key used with different content. Restore the original payload or start a distinct operation with a new key.
schedule_requiredHTTP 422 · string · errorPrepare a schedule first and pass its id as preparationId when starting media uploads.
schedule_closed / schedule_expired / too_many_preparationsHTTP 409 · string · errorPrepare a new schedule after expiry/cancellation, or cancel unused preparations. Finalized preparations only accept identical finalization replays.
publication_cutoffHTTP 409 · string · errorOnly Scheduled/Retry/Held/NeedsReschedule deliveries can be edited or cancelled. Check the current status.
media_in_use / media_storage_limitHTTP 409 · string · errorResolve referencing deliveries before deletion; delete unused files to free storage.
media_deletedHTTP 410 · string · errorThe idempotent upload was previously deleted. Upload again with a new key.
version_mismatch / if_match_requiredHTTP 412 / 428 · string · errorFetch current ETag; supply it quoted in If-Match. Review concurrent changes before retrying.
media_too_large / unsupported_media_typeHTTP 413 / 415 · string · errorUse supported raw bytes and size limits. Platform-specific unsupported types can return 422 instead.
content_required / invalid_text / invalid_attachments / invalid_media_descriptionHTTP 422 · string · errorCheck text length, attachment count/kind/order and descriptions.
invalid_schedule / immutable_target / invalid_targetsHTTP 422 · string · errorChoose a valid future schedule; preserve accountId on edit; batch requires 1–10 distinct accounts.
invalid_media_file / invalid_media_referenceHTTP 422 · string · errorCheck file encoding and use owned, nondeleted upload IDs of the correct kind.
platform_media_too_large / unsupported_media_typeHTTP 422 · string · errorA destination rejects the stored file size or type. Details may include provider and maxBytes. Choose compatible media or remove that destination; no deliveries in a batch are scheduled. See MediaInfo for current destination limits.
invalid_platform_media / media_inspection_requiredHTTP 422 · string · errorEncoding, dimensions, aspect ratio, frame rate or duration is incompatible, or this file predates inspection. Upload compatible media again. Encoding errors include provider, mediaId and errors; the entire batch is rejected.
media_inspector_unavailableHTTP 503 · string · errorThe server media inspector is missing or cannot start. Contact the administrator.
invalid_x_options / invalid_youtube_options / invalid_tiktok_options / invalid_facebook_options / invalid_threads_options / invalid_instagram_optionsHTTP 422 · string · errorCheck that provider's options and restrictions below.
youtube_video_required / tiktok_media_required / instagram_media_requiredHTTP 422 · string · errorSupply the required media for that platform.
rate_limited / upload_busyHTTP 429 · string · errorBack off and retry; retain the same creation idempotency key.
tiktok_settings_unavailableHTTP 503 · string · errorCurrent account settings could not be verified. No post was scheduled; retry shortly or refresh the account connection.
request_failedHTTP 500 · string · errorSave traceId. Retry safe operations with backoff; check existing deliveries before scheduling duplicates.

TikTok account-setting errors also include accountId, an errors object keyed by field path, allowedPrivacyLevels and maxVideoSeconds. Correct the listed fields and submit again. Report traceId with the failing endpoint and status. Do not include your API key. Provider-specific failures are sanitized; the public API does not expose raw credentials or provider responses.

OpenAPI

The machine-readable specification is available at GET /openapi/v1.json with your publishing API key. Its user reference contains the endpoints documented here. Import it into your API client with a private environment variable for the key.

The examples above intentionally make no live calls. Keep keys in your own tools, and store each operation's idempotency key when implementing retries.