Skip to main content
GET
/
v1
/
functions
/
{function_name}
/
definition
Get Function Definition
curl --request GET \
  --url https://api.example.com/v1/functions/{function_name}/definition \
  --header 'X-API-KEY: <api-key>'
{
  "function": {
    "name": "<string>",
    "description": "<string>",
    "parameters": {},
    "strict": true
  },
  "type": "function"
}

Authorizations

X-API-KEY
string
header
required

API key for authentication

Path Parameters

function_name
string
required

Query Parameters

inference_provider
enum<string>
default:openai

The inference provider, which determines the format of the function definition.

Available options:
openai,
anthropic

Response

Successful Response

function
OpenAIFunction · object
required
type
enum<string>
default:function
Available options:
function
Allowed value: "function"