Skip to main content
POST
Create an AI Agent Task

Authorizations

Authorization
string
header
required

a valid bearer token

Body

application/json
agentConfig
object
required

Configuration specifying the agent type and its parameters

message
string
required

The instruction or question to send to the agent

Minimum string length: 1
Example:

"Build a pipeline to load sales data from S3 into Snowflake"

grantedPermissions
object[] | null

Permissions pre-granted to the agent for this task. Each entry must be unique

Response

Agent task created successfully

agentName
string

The name of the agent handling the task

Example:

"data_engineer_agent"

createdAt
string<date-time>

The date and time the task was created

Example:

"2024-01-15T10:30:00.000Z"

status
enum<string>

The current status of the task

Available options:
RUNNING,
STOPPED,
STOPPING,
ERRORED
Example:

"RUNNING"

taskId
string<uuid>

The unique identifier of the created task

Example:

"550e8400-e29b-41d4-a716-446655440000"