Skip to main content
Base path: /api/workspaces/{workspaceId}/tasks. Ids are UUIDs.

Create a task

title and platforms are required. platforms names at least one output destination ("x", "rss:news", "workspace", "folder:<uuid>", …); an empty or missing list returns 400 with an error listing the workspace’s connected destinations, and so does a PATCH that would empty it. Tasks saved before this rule keep working as they are. publishMode is "immediate" | "scheduled" | "manual". When you omit it, the task takes the workspace’s default publish mode, which starts as "scheduled" (Auto-schedule in workspace settings); passing only publishAt implies "scheduled". A "scheduled" task with a publishAt (ISO timestamp) publishes at that time once approved. Without one, it is auto-scheduled into the next open slot when it is approved. requiresReview defaults to true. When you omit skillIds, the task gets the workspace skills whose name or description its instructions match; pass skillIds (even []) to choose them exactly. Returns 201 with the bare task object.

List tasks

Returns a bare JSON array, most recently updated first (offset pagination, limit 1–500, default 50). Each task includes its contentItems and an isOverdue flag. Because the sort key is activity rather than creation, a task can move between pages as it is worked on — fetch a page at a time rather than assuming a stable offset across a long walk. The status filter accepts todo, working, review, approved, publishing, published, publish_failed, deleted, failed, either one value or several comma-separated (status=todo,working,review). publish_failed means at least one destination did not go live; publishing it again retries only those destinations. publishing means a publish is in flight. publishedSince and publishedBefore (ISO timestamps) limit the list to tasks that went out in that window, and sort it by publish time instead of activity. To walk back through published tasks, pass the oldest publishedAt you have as the next publishedBefore.

Approve, reject, unapprove, publish, schedule

Approve requires the task to be in review. The response includes willPublishAt — "immediately", "manual", or the scheduled timestamp — telling you what happens next. A task that publishes to TikTok also needs a tiktok object with the Post to TikTok choices (privacyLevel, allowComment, allowDuet, allowStitch, commercialDisclosure, yourBrand, brandedContent, optional title); without it the approval returns 400 and the task stays in review. See TikTok. Reject accepts an optional { "comment": "…" }, returns the task to todo, bumps revisionCount, and keeps the assignee — the same worker revises. Rejecting an approved task also clears the approval (the “reject” flow). Reject doesn’t delete the task: the work goes back to the agent for another try, and the new version comes back to review. Delete the task instead to discard it entirely. Unapprove reverses an approval without discarding the work. The task returns to review with its content untouched and revisionCount unchanged, and reviewers are re-notified. Use this when a task was approved that should not have been — a reviewer moving too fast, or an API client approving on an operator’s behalf when the operator wanted a look first. Accepts an optional { "comment": "…" }, recorded on the task. A future publishAt is kept, so a chosen time survives unapprove and re-approval; one that has already passed is cleared, and re-approving picks a fresh slot. Reach for reject instead when the work itself needs redoing: reject drops the task to todo and bumps revisionCount so a worker revises it. Unapprove keeps the draft exactly as it is and asks a human to decide again. Only approved tasks can be reversed. A task that is already publishing, published or publish_failed returns 400 — a publish has already been attempted. If a publish claims the task between the read and the write you get 409 and nothing is changed, the comment included. Publish publishes an approved task now — the manual-mode trigger. On a publish_failed task it retries only the destinations without a recorded result; live destinations are never published twice. The task ends published once every destination is live, otherwise publish_failed. Schedule sets when a review or approved task publishes. Send a future ISO timestamp, "auto" for the next open slot under the workspace’s posting targets, or null to clear the schedule and return the task to manual publishing. A past time returns 400. Scheduling a task in review doesn’t approve it: it publishes at the scheduled time only after it is approved. GET /tasks/{taskId}/next-slot returns the slot "auto" would pick, without committing it.