cURL
curl --request POST \ --url https://api.getgranite.ai/api/agent-runs \ --header 'Content-Type: application/json' \ --data ' { "agent_type": "<string>", "job_payloads": [ {} ], "description": "<string>", "max_duration_minutes": 60, "priority": 0 } '
{ "run_id": "<string>", "status": "<string>", "total_jobs": 123 }
Request to create an agent run with VM reservation
Agent type (automation_agent, testing_agent)
List of job payloads to execute sequentially
Run description
Maximum duration in minutes
Priority level
Successful Response
Response from creating an agent run
Agent run ID
Initial status
Total number of jobs