در حال بارگذاری…
Approves or denies a pending AI tool action on a message that paused with status: "pending_confirmation" during an interactive run.
| Permission | Description |
|---|---|
ai_thread_messages.create | Resolve confirmations in your own thread |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| thread-id | int | Yes | ID of the thread | 123 |
| message-id | int | Yes | ID of the paused assistant message | 456 |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| approved | boolean | Yes | true executes the pending tool call; false skips it (the AI is told the user declined) | true |
{
"approved": true
}
Returns the run's next state. responseMessage is either the final assistant message (status: "completed") or the same message paused again on another confirmation-required tool call (status: "pending_confirmation").
{
"responseMessage": { /* ai thread message resource */ }
}
For a full schema, see AI Thread Message Resource.
| Status | Description | Reference |
|---|---|---|
| 422 | Validation error, or the message has no pending action to confirm | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Thread or message not found, or message not in thread | Not found error |