Skip to guide

Developer documentation

Evaluate a read-only gateway decision snapshot

POST/api/control/v1/agents/{id}/trace

Request

Evaluates kill, suspend, scope, endpoint, policy, and budget in proxy order without reserving budget, consuming the agent's hourly policy counter, resolving a provider key, or writing a gateway log. The result is a point-in-time snapshot and is never cached.

Authenticate with Authorization: Bearer and a control API key with read scope. Set GATEWAY to your deployment origin and ID to the resource ID where needed. Replace sample values before sending a mutation.

Generated curl examples use GATEWAY for the deployment origin and ID for a path identifier. Set those shell variables before running the request. JSON examples show the request shape; replace each sample value with your own input.

Parameters

NameInTypeRequiredDescription
idpathstringYesFormat: uuid.
providerbodystringYesValues: openai, anthropic, groq, mistral, together, deepseek, gemini, xai, openrouter, azure, local, demo.
modelbodystringYes—
timestampbodystringNoOptional UTC policy-window clock ending in Z or z; offsets are refused. An empty string uses evaluation time.
max_tokensbodynumber | nullNoOptional output-token allowance; finite numbers are rounded down. Null or omission uses the gateway default.

Request schema

The JSON body follows this schema. Nested required fields are listed inside each object.

Responses

Illustrative response bodies are generated from the schema. Sample IDs, dates, numbers and strings are placeholders. The schema below each status is the response contract.

StatusDescriptionMedia type
200Non-cacheable point-in-time decision snapshot.application/json
400Error.application/json
401Error.application/json
404Error.application/json
413Error.application/json
415Error.application/json
429Shared control-key or IP request limit reached. Decision traces also have a workspace limit.application/json
500Error.application/json

Errors

400: Error. 401: Error. 404: Error. 413: Error. 415: Error. 429: Shared control-key or IP request limit reached. Decision traces also have a workspace limit. 500: Error.

A successful HTTP response is not permission. Check the returned status or decision and apply your service's access rule.

Rate limit

30 requests per workspace per 60 seconds, in addition to 600 requests per control key per 60 seconds, using the shared total request count. Reads and writes increment the same counter; prior reads count toward the 120-request write ceiling. The pre-authentication IP guard is shared across operator endpoints: 1,000 requests per 60 seconds by default.

On 429, wait for Retry-After before retrying. An unavailable check must never be treated as a successful identity or mandate decision.

Evaluate a read-only gateway decision snapshot · Developers · PassControl