TeamHub icon

TeamHub

Consume the TeamHub Business Management API

Assistant → Respond to Permission

AI-generated

Summary

Send a response to a running assistant permission prompt using the Run ID, providing the transcript of the permission request and the approval decision to resume the assistant's operation.

Inputs

  • Run ID (required) — The identifier of the assistant run awaiting a permission response.
  • Messages (JSON) — The JSON array representing the transcript from the permission_request event to provide context for the response.
  • Approval (JSON) — A JSON object indicating whether the tool call is granted along with details of the call it applies to.
  • Wait for Completion — Whether to continue polling the assistant run until it finishes, ensuring complete event streaming.
  • Timeout (Seconds) — Maximum time to wait for the run to finish before returning partial data, applicable if waiting for completion.
  • Options — Additional options like ignoring SSL issues and list item splitting.

Output shape

A JSON object containing streamed events from the assistant run, including run status, textual response, and event details.

The operation streams newline-delimited JSON events and will optionally poll the run until completion based on input parameters. The output includes a combined text string from 'text' type events and a status. Use the 'Wait for Completion' and 'Timeout' parameters to control streaming behavior.

Links

Discussion