Functions
Call Function Revision
Call a function
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The id of the function to call
The id of the revision to call
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Previous
Stream FunctionStream a function call execution in real-time using Server-Sent Events (SSE).
This endpoint returns a continuous stream of Server-Sent Event objects as the function executes,
allowing for real-time streaming of responses. The response follows the Server-Sent Events
specification with proper event structure for SDK compatibility.
Each Server-Sent Event contains:
- `id`: Optional event identifier
- `event`: Optional event type
- `data`: JSON payload with streaming chunk information
- `retry`: Optional retry interval
The data payload includes:
- `delta`: Incremental text content (if any)
- `span_id`: Unique identifier for the execution span (when available)
Next