v2
latestOpenAPI 3.1.02026-07-2670186350.6 KBfunctions
Get Function By Revision
Get a function by ID with a specific revision.
Deprecated. Use GET /v2/functions/{function_id} to fetch the latest revision. Pinning to a specific revision is no longer supported; revision_id is accepted for backwards compatibility but ignored — the latest revision is always returned.
get/functions/{function_id}/revisions/{revision_id}
Path parameters
function_idstring uuid required
The id of the function to retrieve
The id of the function to retrieve
revision_idstring uuid required
The id of the revision to retrieve
The id of the revision to retrieve
Response
Successful Response
Example response
{
"name": "my-function",
"description": "This function is used to add two numbers and return the result.",
"instructions": "You are a calculator that adds two numbers and returns the result.",
"input_schema": {
"properties": {
"x": {
"title": "X",
"type": "integer"
},
"y": {
"title": "Y",
"type": "integer"
}
},
"required": [
"x",
"y"
],
"title": "OpperInputExample",
"type": "object"
},
"output_schema": {
"properties": {
"sum": {
"title": "Sum",
"type": "integer"
}
},
"required": [
"sum"
],
"title": "OpperOutputExample",
"type": "object"
}
}