Creates a new task on an agent. A task is a defined action an agent can perform, such as fetching data or submitting a form.
Secret key (sk_live_...)
Request body for creating a new task.
Display name for the task.
The agent this task belongs to. Prefixed with agt_.
Optional client-specified ID for the task. If not provided, Deck generates one.
JSON Schema defining the expected input for task runs.
JSON Schema defining the expected output for task runs.
Instructions for the agent describing what this task should do.
Storage configuration for file capture. Set enabled to true to capture files. Supports enabled, extraction, extraction_schema, and deduplication fields.
Enable document extraction on captured files. When true, Deck parses supported files and returns structured JSON.
Created
A task object. Tasks are defined actions an agent can perform.
Unique identifier for the task, prefixed with task_.
Always task.
Display name for the task.
Instructions for the agent describing what this task should do.
Task status: learning, test, or live.
The agent this task belongs to. Prefixed with agt_.
JSON Schema defining the expected input for task runs.
JSON Schema defining the expected output for task runs.
Storage configuration for file capture during task execution.
Whether document extraction is enabled for captured files.
ISO 8601 timestamp of when the resource was created.
ISO 8601 timestamp of when the resource was last updated.
Unique identifier for the API request. Include this when contacting support.