Skip to main content
POST

Authorizations

x-api-key
string
header
required

API key from your organization. Supply the value directly, without a Bearer prefix.

Body

application/json
agent
object
required

An agent configuration. Supply a pre-built base, a model, or both. Omitted fields use the base configuration, or empty skills and guardrails with asset_map and human_tasks tools when no base is supplied. Supplied fields replace the corresponding values. A retrieved Agent can be passed directly; name and builtIn are response metadata and do not change execution.

Example:
task
object
required
Example:

Response

Created.

id
string
required
Minimum string length: 1
status
enum<string>
required
Available options:
creating,
running,
stopped,
completed,
failed
agent
object
required
Example:
task
object
required
Example:
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
error
string | null
required

Failure description when status is failed; otherwise null.