cURL
curl --request POST \ --url https://api.ziet.ai/v1/runs \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "agent_id": "<string>", "input": {}, "max_steps": 50, "max_tokens": 1001, "metadata": {} } '
{ "id": "<string>", "agent_id": "<string>", "status": "created", "created_at": "2023-11-07T05:31:56Z", "input": {}, "output": {}, "max_steps": 123, "max_tokens": 123, "memory": { "id": "<string>", "run_id": "<string>", "created_at": "2023-11-07T05:31:56Z" }, "steps": [ { "id": "<string>", "type": "action", "status": "pending", "action_id": "<string>", "input": {}, "output": {}, "started_at": "2023-11-07T05:31:56Z", "completed_at": "2023-11-07T05:31:56Z" } ], "error": { "message": "<string>", "code": "<string>" }, "metadata": {}, "started_at": "2023-11-07T05:31:56Z", "completed_at": "2023-11-07T05:31:56Z" }
Create a new agent run. The run is created but not started—call /runs//invoke to begin execution.
Format: 'Api-Key sk_live_YOUR_KEY'
1 <= x <= 100
x >= 1000
Run created
created
running
waiting_approval
completed
failed
cancelled
Show child attributes