POST
Approve or decline a pending tool call

Authorizations

Authorization
string
header
required

Better Auth API key.

Body

application/json
agentId
string
required
Minimum string length: 1
eventId
string
required
Minimum string length: 1
runId
string
required
Minimum string length: 1
approved
boolean
required
toolCallId
string
Minimum string length: 1

Response

AI SDK v6 UI message stream (SSE) after approve/decline