POST
Check whether this agent may invoke a tool

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Path Parameters

id
string<uuid>
required

Body

application/json
tool
string
required
Maximum string length: 100
resource_type
string
required
Required string length: 1 - 32
resource_id
string
session_id
string<uuid>
approval_token
string

From POST /agents/{id}/approvals; single-use.

attributes
object

Response

The decision with its obligation, and the action record written for it.