IM
EN
Docs Home
Menu
Features

Tasks

Task orchestration and manual triggering for provider operations.

inbox-manager tasks

Tasks

The tasks feature defines intent-level provider work requests before execution enters the queue. It gives you explicit orchestration control so inbox operations can be created, inspected, and triggered deterministically.

Why This Matters

This feature separates business intent from queue execution details by making the task record the source of truth for requested work. It supports explicit triggering and auditability before job fan-out, which keeps operator control clear when automation needs intervention.

Core Flow

A client creates a task with type, target, and payload, then uses that record as the canonical intent for execution. When triggered, queue jobs are created from the task and subsequent reads reflect task state and linked job outcomes.

Operations

OperationEndpointPurpose
Create taskPOST /api/accounts/:account_id/tasksRegister new account-scoped task intent
List tasksGET /api/accounts/:account_id/tasksFetch task timeline for account
Search tasksPOST /api/accounts/:account_id/tasks/searchQuery tasks by type/state filters
Get taskGET /api/tasks/:task_idRetrieve one task
Update taskPATCH /api/tasks/:task_idModify mutable task fields
Delete taskDELETE /api/tasks/:task_idRemove task
Trigger taskPOST /api/tasks/:task_id/triggerStart or restart execution from task

Key Data and State

{
  id: "tsk_...",
  account_id: "acc_...",
  task_type: "imap_sync_messages",
  target_credential_id: "pc_...",
  payload: { folder: "INBOX" },
  priority: 0
}

Failure Modes and Controls

Invalid task payloads or target references are rejected before queue execution begins. Trigger actions are explicit and task-scoped, account access checks apply to create/read/mutate boundaries, and task deletion does not happen as a side effect of unrelated job cleanup.

Task, Job, 08-tasks-and-manual-triggering.