cURL
curl --request GET \ --url https://app.promptingco.com/api/v1/agent-simulation/runs \ --header 'x-api-key: <api-key>'
{ "ok": true, "data": { "runs": [ { "id": "<string>", "environmentId": "<string>", "taskId": "<string>", "organizationId": "<string>", "status": "<string>", "sandboxId": "<string>", "sandboxSnapshot": "<string>", "overallScore": 123, "passed": true, "tokensUsed": 123, "costUsd": 123, "startedAt": "2023-11-07T05:31:56Z", "completedAt": "2023-11-07T05:31:56Z", "duration": 123, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "deletedAt": "2023-11-07T05:31:56Z", "volumeIds": "<unknown>", "logS3Keys": "<unknown>", "metadata": "<unknown>", "environment": { "id": "<string>", "name": "<string>", "agentConfig": "<unknown>", "task": { "id": "<string>", "name": "<string>", "category": "<string>" } }, "task": { "id": "<string>", "name": "<string>", "category": "<string>" } } ], "total": 1 } }
Organization-scoped API key. Available scopes:
Successful response
true
Show child attributes