Tools

Get Block Stream Url

This endpoint returns a URL that can be used to stream real-time updatesfor a specific block in a tool run.

The URL contains a token that is valid for a limited time (1 hour).

The client can use the returned URL with an EventSource connection to receive real-time updates for the specified block. This url is safe to use in a frontend application.

post/v1beta2/tool/get-block-stream-url

Request

  • Base URL
    https://api.hunch.tools
  • Auth
    HTTP bearer

Headers

authorizationstring nullable

Request body

tool_run_uidstring required

The unique identifier of the tool run

block_titlestring required

The title of the block to stream

Response

Successful Response

stream_urlstring required

The signed URL that can be used to stream the block's output

Changes

No recorded changes to this operation across all 1 revision of this API.