Resolves a playground approval card by approving or rejecting it. Approving executes the requested tool with the originally captured arguments and resumes the playground turn; rejecting stashes a rejection sentinel so the agent acknowledges and moves on. Returns the resumed AI response and any new approval cards.
Documentation Index
Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Opaque key for the approval card being resolved. Single-use — consumed atomically; a second call returns approval_expired.
approve runs the tool with the captured args; reject stashes a sentinel so the agent acknowledges and moves on.
approve, reject Prompt id used for the original playground turn; the resumed turn re-runs the same prompt so behavior stays consistent.
Visible playground history at the moment the user clicked the approval card. Replayed on resume; a synthetic resume note is appended server-side.
Optional conversation id used for context lookup on the resumed turn; matches the value originally passed to /api/ai/playground.
Optional inline prompt text that replaces the saved prompt for this resumed turn — used by editors testing un-saved edits.
Pin the resumed turn to a specific provider/model (e.g. { provider: 'anthropic', model: 'claude-sonnet-4-6' }) overriding the org's default assignment.
{
"provider": "anthropic",
"model": "claude-sonnet-4-6"
}Approval resolved and playground resumed
Returned after a playground approval is resolved (approve or reject). response carries the resumed agent reply; toolError flags that the underlying tool execution failed.