v2
latestOpenAPI 3.1.02026-07-2670186350.6 KBfunctions
Call Function Revision
Call a function at a specific revision.
Deprecated. Pinning a call to a historical revision is no longer supported; revision_id is accepted for backwards compatibility but ignored — the latest revision is always executed. Use POST /v2/call or the per-function call endpoint instead. This endpoint will be removed in a future release.
post/functions/{function_id}/call/{revision_id}
Path parameters
function_idstring uuid required
The id of the function to call
The id of the function to call
revision_idstring uuid required
The id of the revision to call
The id of the revision to call
Request body
Example request
{
"input": {
"x": 4,
"y": 5
},
"examples": [
{
"comment": "Adds two numbers",
"input": {
"x": 1,
"y": 3
},
"output": {
"sum": 4
}
}
],
"tags": {
"tag": "value"
}
}Response
Successful Response
Example response
{
"message": "The sum of 1 and 3 is 4",
"json_payload": {
"sum": 4
},
"cached": true,
"images": [
"image_url"
],
"usage": {
"input_tokens": 25,
"output_tokens": 972,
"output_tokens_details": {
"reasoning_tokens": 704
},
"total_tokens": 997
},
"cost": {
"generation": 0.0001,
"platform": 0.00001,
"total": 0.00011
}
}