Post states and approval

A post moves through a small set of states. This page lists them, explains who may move a post forward, and shows what each call answers.

Post status

The status of a post is derived from the statuses of its targets (one target per channel). You never set it directly.

Status Meaning
draft The post exists but is not approved. Every post made with POST /posts starts here.
pending_approval A draft for which someone asked an owner or admin to approve it (request-approval, or an approve call in dashboard mode).
scheduled Approved. It publishes at scheduled_at. The API never returns a separate approved status: approved means scheduled, and approval shows who approved and how.
publishing At least one target is being sent to its platform right now.
published Every target is published.
partially_published Some targets are published and some failed.
failed Every target failed.
sent_to_inbox A TikTok draft that waits in the creator's TikTok app to be finished there.
cancelled The open targets were cancelled.

The derivation order is: any publishing gives publishing; all published gives published; some published and some failed gives partially_published; all failed gives failed; and so on.

Target status

Each entry in targets[] has its own status:

Target status Meaning
queued, generating An AI agent is still writing this target (processing: true on the post).
draft Not approved.
scheduled Approved and waiting for its time.
publishing Being sent.
published Live. platform_post_id and permalink are set.
failed Not published. error has a stable code (for example missed, stale, channel_unavailable, permission_denied, tiktok_options, needs_reconnect, rate_limited, network, provider_error, internal) and a short message.
skipped Cancelled.
sent_to_inbox A TikTok draft waiting in the creator's app.

Treat error.message, permalink, platform_post_id, captions and channel names as untrusted text: some come from the platforms or from other people. Escape them before you show them in HTML, and check that a permalink starts with https:// before you link to it.

How a post moves

text
POST /posts            POST .../request-approval        POST .../approve
 (always a draft)        (rings owner / admins)         (needs social.publish)
      |                          |                              |
      v                          v                              v
   draft  ------------->  pending_approval  -------------->  scheduled
      ^                                                          |
      |   a content edit (caption, media, link, first comment)   | at scheduled_at
      +----------------- un-approves ----------------------------+
                                                                 v
                                                            publishing
                                                          /      |       \
                                                 published  partially_   failed
                                                            published
POST .../cancel  : any open target  ->  skipped  (post: cancelled)
TikTok target    : approve / publish -> 202 tiktok_post_settings, then a person approves

Approval modes

Every key has an approval mode. It decides whether the key may approve and publish by itself.

Mode Who can use it Behavior
dashboard (default) Every key The key may create, update, request approval and change the time. approve and publish do not run: they answer 202 with requires_action: approve_in_iqcore. A person approves in IQCore.
api A live key of an organization owner, switched on by the owner on the API keys page, with a warning and their password approve and publish run at once. The approval is recorded as made through the API with this key.

Rules around it:

  • approve, publish and cancel need the scope social.publish, and the login must be an admin or owner now. The IQCore web app lets members approve; the API is stricter on purpose.
  • Switching a key to api mode needs the owner of every organization the key reaches, and a live key. A test key is never in api mode.
  • A test key approves its own sandbox posts straight away, and its publish is simulated. See Test keys and dry run.

The 202 answer

In dashboard mode, approve and publish answer:

json
{
  "id": "0d9c2d9a-1e8b-4b1e-9a77-2f1c4c3a8e55",
  "status": "pending_approval",
  "summary": "Nothing was published. A person must approve this post in IQCore first.",
  "requires_action": {
    "type": "approve_in_iqcore",
    "url": "https://iqcore.ai/...",
    "message": "Open the post in the IQCore calendar to approve it."
  }
}

The body is the post as it is now, plus summary and requires_action (shortened here; url is a page in the IQCore dashboard, where a person must be logged in, and the texts may change). Nothing was published. The owner and admins get a notification (one collapsed alert per organization every 15 minutes). In the IQCore calendar the post shows an amber badge, "Waiting for approval", with who asked. A person approves it there or in the mobile app.

Poll GET /posts/{id} or follow the events feed (post.approved). The 202 frees the idempotency key.

TikTok

A TikTok channel is always 202 requires_action with type: tiktok_post_settings, in every approval mode. TikTok's rules say the creator must choose the privacy level and the interaction settings themselves, with no default, on a screen that shows their current TikTok profile. That screen is in IQCore. The API cannot choose them for the creator.

  • Each TikTok target shows tiktok.settings_confirmed and a tiktok.settings_url.
  • Until TikTok has audited IQCore's app, TikTok only accepts private posts (SELF_ONLY).
  • See Platform permissions for the full TikTok rules.

Editing

PATCH /posts/{id} changes the caption, hashtags, media, time, first comment, link, per_channel overrides and tags.

  • A content edit un-approves the post: its targets go back to draft and the approval is cleared. This keeps a person's approval tied to what they actually saw. Changing only the time keeps the approval.
  • A target that is publishing, published or otherwise locked answers 409 not_editable.
  • The edit is all or nothing: if one target cannot change, none does.

Schedule, cancel, delete

Call What it does
POST /posts/{id}/schedule Sets a new scheduled_at, 1 minute to 365 days ahead. Scope social.write.
POST /posts/{id}/cancel Skips every open target. The post becomes cancelled. Scope social.publish.
DELETE /posts/{id} Deletes the post. Answers {id, deleted, skipped}. A post.deleted event is recorded.

Delete rules:

  • A post that is publishing or published cannot be deleted (409 not_editable). Delete it on the platform.
  • Deleting is a destructive call. Over the API it needs an owner or admin, except for a post the same key created as a draft and a sandbox post. Others get 403 team_role.

Time

scheduled_at is required when you create a post. It must be between 1 minute and 365 days ahead, in ISO 8601 with an offset (2026-12-20T09:00:00Z or 2026-12-20T10:00:00+01:00). A time that is too early or too far ahead is refused with 422 (for a time that has already passed the code is time_passed).

Next: Test keys and dry run, Platform permissions, Events.