POST
Approve one irreversible action by an agent

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
resource_type
string
required
Required string length: 1 - 32
resource_id
string
code
string

A current TOTP code; required if the approver has a second factor.

Response

The approval and its token, returned once.

token
string
approval
object