Reply, Moderate, and Publish

Reply to comments, DMs, and reviews, moderate comments, and publish across Profiles, each validated before anything runs and tracked to a final status, with media prepared only when it needs work.

Reply to what arrives

Replying to a comment, review, or DM is a publish request against the event's Profile, with the same validation, idempotency, and final status as a post. The event carries what the reply needs. Social Inbox API →

Moderate and edit

Moderation acts on platform content whether Koil published it or only observed it: hide or unhide a comment, hold or reject it for review, like it, or ban its author, wherever the platform offers the action. Each collection's options are on its platform page. Edit what the profile wrote where the platform allows it, or delete it. Moderation done in the platform's own app arrives as a moderated event on collections that observe it.

How a publish runs

  1. Check what a Profile can publish: its collections, variants, and the arguments each one takes.
  2. Stage media once and reference it by id, or give an HTTPS URL that Koil fetches when you submit.
  3. Submit up to 100 items in one request, now or scheduled, with an idempotency key.
  4. Track each item by its id or its publish_request.* events, which carry the same object a read returns, until it settles.

Scheduled work can be cancelled until it runs.

Validated before anything runs

Koil checks every item's collection, variant, arguments, and media against the destination before the first platform call. One invalid item rejects the whole request with every problem named, so you fix a batch once instead of cleaning up a partial publish.

Every item reaches a final state

Accepted items run independently and settle as one of four states:

StateWhat it means
succeededThe content exists on the platform, with its platform id.
failedNothing was published. The error says why, in the API's error shape.
cancelledScheduled work you cancelled before it ran.
outcome_unknownThe create call failed ambiguously (a timeout, a dropped connection, a platform server error), so the content may exist. Koil never retries that call.

That last state is the one most integrations get wrong. Retrying an ambiguous create is how a scheduler posts twice; Koil reports it instead, so your product can check before anything repeats.

Safe to retry

Publish requests require an Idempotency-Key. The same key and payload return the same result. If your request died before Koil answered, retrying with the same key resumes it: items already accepted keep their ids and are not published again.

Multi-step publishes

Some platforms need several calls to post one item: upload, wait for processing, then publish. Koil runs those steps durably, waiting out platform processing and rate limits, so you submit one item and get one status.

Media, only when needed

Staging and validation are free. Koil transforms an image or re-encodes a video only when it doesn't meet a destination's requirements, and bills only for that work. Bring destination-ready media and nothing runs. Media pricing →

Read the publishing guide →