Skip to main content
GET
Count a tool's sandbox rejections
The reference panel describes the current v3 operation. The notes below describe its v2 compatibility API. Follow the v3 request schema for current calls: v3 can move identifiers from the body or query into the URL. Keep the v2 method, path, and payload together when using the compatibility API.

v2 compatibility notes

GET /api/v2/tools/getSandboxRejections?id=<toolId>&sinceMs= counts a tool’s rejected sandbox commands since sinceMs.

Authority

You need agents:read at the platform scope. A missing, draft or archived tool answers 404 resource_missing; an unavailable store is a 500, never a 404. A repeated or out-of-range parameter is 400 bad_request.

What it returns

count, the windowMs counted, and auditAvailable (false when no sandbox audit is recorded for the window). A command is never returned. sinceMs is an epoch time in milliseconds within the last 90 days (default seven days ago). meta.partial is true when the window held more than 1,000 calls, or the read reached its read budget first; the count then covers the newest calls only.

Authorizations

Authorization
string
header
required

An External App: the JWT it obtains from POST /oauth/token with OAuth2 client_credentials. Pass as Authorization: Bearer <jwt>. An app's static companion key also authenticates as the app, but is deprecated and is not protected by Idempotency-Key.

Path Parameters

toolId
string
required

The tool's id or slug.

Minimum string length: 1

Query Parameters

sinceMs
integer

The window's start, epoch milliseconds, within the last 90 days. Default seven days ago.

Response

Count a tool's sandbox rejections

data
object
required
meta
object
required