Gates
Record a gate decision with every check and read a task's gate history.
AuthorizationBearer <token>
An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
slug*string
Response Body
application/json
curl -X GET "https://example.com/v1/tasks/string/gates"{ "gates": [ { "id": "string", "taskSlug": "string", "createdAt": "string", "passed": true, "checks": [ { "name": "string", "threshold": 0, "value": 0, "passed": true, "estimate": 0, "low": 0, "high": 0, "measured": true, "reason": "string" } ], "evalRunId": "string", "previousEvalRunId": "string", "changes": [ { "name": "string", "improved": 0, "regressed": 0 } ] } ]}AuthorizationBearer <token>
An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
slug*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/tasks/string/gates" \ -H "Content-Type: application/json" \ -d '{ "id": "string", "evalRunId": "string", "passed": true, "checks": [ { "name": "string", "threshold": 0, "value": 0, "passed": true } ], "report": { "property1": null, "property2": null } }'{ "gate": { "id": "string", "taskSlug": "string", "createdAt": "string", "passed": true, "checks": [ { "name": "string", "threshold": 0, "value": 0, "passed": true, "estimate": 0, "low": 0, "high": 0, "measured": true, "reason": "string" } ], "evalRunId": "string", "previousEvalRunId": "string", "changes": [ { "name": "string", "improved": 0, "regressed": 0 } ] }}{ "gate": { "id": "string", "taskSlug": "string", "createdAt": "string", "passed": true, "checks": [ { "name": "string", "threshold": 0, "value": 0, "passed": true, "estimate": 0, "low": 0, "high": 0, "measured": true, "reason": "string" } ], "evalRunId": "string", "previousEvalRunId": "string", "changes": [ { "name": "string", "improved": 0, "regressed": 0 } ] }}{ "error": "string", "issues": [ { "message": "string", "path": [ "string" ] } ]}{ "error": "unauthorized"}{ "error": "forbidden"}{ "error": "not_found"}