v1
latestOpenAPI 3.1.02026-07-22106199311.5 KBAI Agent Tasks
Create an AI Agent Task
Creates a new AI agent task and starts async execution. Poll the messages endpoint to retrieve results.
post/v1/ai/agents/tasks
Request body
Example request
{
"agentConfig": {
"name": "data_engineer_agent",
"environmentName": "development",
"generateBranch": true,
"graphId": "my-pipeline",
"mode": "ACT",
"projectId": "550e8400-e29b-41d4-a716-446655440001",
"sourceBranchName": "main",
"targetBranchName": "feature/my-pipeline",
"workingDirectory": "/pipelines"
},
"grantedPermissions": [
{
"toolName": "execute_sql"
}
],
"message": "Build a pipeline to load sales data from S3 into Snowflake"
}Response
Agent task created successfully
Example response
{
"agentName": "data_engineer_agent",
"createdAt": "2024-01-15T10:30:00.000Z",
"status": "RUNNING",
"taskId": "550e8400-e29b-41d4-a716-446655440000"
}