Skip to main content

Queue task with content

Apply content and a queue action to an existing task. Requires an authenticated user session; developer API keys are blocked for this route.

POST/api/task-queue/{task_id}/queue-with-content
HTTP referenceScope authenticated user sessionUpdated September 27, 2026

This page documents the canonical HTTP contract for this endpoint.

Path parameters

  • task_idrequired

    string

    Task identifier.

Query parameters

  • actorUserId · optional

    string

    Optional active same-organization actor override.

Body parameters

  • action · optional

    string

    schedule (default), prioritize, or reschedule.

  • content · optional

    object

    Optional task content object.

  • draft_feedback · optional

    object

    Optional inline draft feedback: feedback_text and learn_mode (default, learn, ignore, or avoid_pattern).

  • send_at · optional

    string<date-time>

    Optional scheduled time.

  • provider · optional

    string

    Email provider.

  • provider_account_email · optional

    string

    Sender mailbox.

  • subject · optional

    string

    Email subject.

  • body_text · optional

    string

    Plain-text body.

  • body_html · optional

    string

    HTML body.

  • body_format · optional

    string

    Body format; defaults to auto.

  • thread_ref · optional

    object

    Provider thread reference.

  • context_tags · optional

    array<object>

    Context tags.

  • attachments · optional

    array<object>

    Attachment descriptors.

Errors

StatusMeaning
401An authenticated user session is required.
400Task channel is not queue-managed or send_at is required for reschedule.
404Task not found.
409The task cannot perform the requested action in its current state.

Docs