curl -X POST https://api.60db.ai/agents/AGENT_ID/simulations/estimate \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"scenarios": 12, "repeats": 5, "estimated_credits_per_call": 0.5, "max_credits": 20}'
Agent Reliability
Estimate Simulation
A free dry run: calls, minutes, credits, and how many calls your ceilings admit
POST
/
agents
/
{agentId}
/
simulations
/
estimate
curl -X POST https://api.60db.ai/agents/AGENT_ID/simulations/estimate \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"scenarios": 12, "repeats": 5, "estimated_credits_per_call": 0.5, "max_credits": 20}'
AI Simulation needs an active Pro or Business plan. On another plan, every simulation endpoint returns
403 POLICY_DENY.Request
Headers
Path
Body
Response
200 OK.{
"estimate": { "calls": 60, "minutes_upper_bound": 300, "credits": 30.0, "credits_per_call": 0.5 },
"admitted_calls": 40,
"budget_limited": true
}
minutes_upper_boundis calls × 5 minutes, the cap for one call. It is not a prediction.admitted_callsis the lowest of the number of calls,max_calls, andmax_credits÷estimated_credits_per_call.max_minutesis a time limit, so it does not change this number.budget_limitedistruewhen the ceilings would stop the run before every call is made.creditsisnullwhen you gave noestimated_credits_per_call.
Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | VALIDATION_ERROR | A value is out of range. field names it |
| 403 | POLICY_DENY | Your role cannot read agents, the workspace is not on an active Pro or Business plan, or the API key lacks the agents scope |
| 404 | AGENT_NOT_FOUND | No agent with this ID in your workspace |
| 409 | AGENT_NOT_SYNCED | Save the agent once, then try again |
Example
curl -X POST https://api.60db.ai/agents/AGENT_ID/simulations/estimate \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"scenarios": 12, "repeats": 5, "estimated_credits_per_call": 0.5, "max_credits": 20}'