curl --location 'https://us-prod.notte.cc/functions/db325c3f-169f-4175-b8ab-ba2ba21f84c4/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "db325c3f-169f-4175-b8ab-ba2ba21f84c4",
"variables": {
"schema_name": "WebhookEvent",
"source_url": "https://docs.birdy.chat/openapi.json",
"timeout_seconds": 25
}
}'
{
"fields": [
{
"enum": [
"<string>"
],
"name": "<string>",
"type": "<string>",
"format": "<string>",
"schema": {
"$ref": "<string>",
"enum": [
"<string>"
],
"type": "<string>",
"format": "<string>",
"pattern": "<string>"
},
"pattern": "<string>",
"required": true,
"ref_schema": "<string>"
}
],
"references": [
"<string>"
],
"source_url": "<string>",
"composition": {},
"schema_name": "<string>",
"nested_schemas": {
"WebhookEventData": {
"schema": {
"oneOf": [
{
"$ref": "<string>"
}
]
},
"composition": {
"one_of": [
{
"ref_schema": "<string>"
}
]
},
"schema_name": "<string>"
}
},
"openapi_version": "<string>",
"required_fields": [
"<string>"
],
"schema_definition": {
"type": "<string>",
"required": [
"<string>"
],
"properties": {
"id": {
"type": "<string>",
"pattern": "<string>"
},
"data": {
"$ref": "<string>"
},
"type": {
"enum": [
"<string>"
],
"type": "<string>"
},
"object": {
"enum": [
"<string>"
],
"type": "<string>"
},
"created_at": {
"type": "<string>",
"format": "<string>"
}
}
}
}