Custom Functions
Get a custom function
GET
/
functions
/
{id}
Get a custom function
curl --request GET \
--url https://api.vocobase.com/api/v2/functions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vocobase.com/api/v2/functions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vocobase.com/api/v2/functions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vocobase.com/api/v2/functions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vocobase.com/api/v2/functions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vocobase.com/api/v2/functions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vocobase.com/api/v2/functions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "fn_3d2c1b0a-9876-5432-10fe-dcba98765432",
"name": "check_order_status",
"description": "Look up the status of a customer order by order number.",
"method": "POST",
"url": "https://api.example.com/vocobase/order-status",
"header_keys": [
"X-Api-Key"
],
"input_schema": [
{
"name": "order_number",
"type": "string",
"description": "The customer's order number.",
"required": true
}
],
"output_schema": [
{
"name": "status",
"type": "string",
"description": "Current order status.",
"required": true
},
{
"name": "eta_days",
"type": "number",
"description": "Days until delivery.",
"required": false
}
],
"timeout": 10,
"started_messages": [
"Let me look that up for you."
],
"error_message": "I could not reach the order system just now.",
"created_at": "2026-07-02T10:15:00.000Z",
"updated_at": "2026-08-11T09:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Retry after 60 seconds."
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}
}⌘I
Get a custom function
curl --request GET \
--url https://api.vocobase.com/api/v2/functions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vocobase.com/api/v2/functions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vocobase.com/api/v2/functions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vocobase.com/api/v2/functions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vocobase.com/api/v2/functions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vocobase.com/api/v2/functions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vocobase.com/api/v2/functions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "fn_3d2c1b0a-9876-5432-10fe-dcba98765432",
"name": "check_order_status",
"description": "Look up the status of a customer order by order number.",
"method": "POST",
"url": "https://api.example.com/vocobase/order-status",
"header_keys": [
"X-Api-Key"
],
"input_schema": [
{
"name": "order_number",
"type": "string",
"description": "The customer's order number.",
"required": true
}
],
"output_schema": [
{
"name": "status",
"type": "string",
"description": "Current order status.",
"required": true
},
{
"name": "eta_days",
"type": "number",
"description": "Days until delivery.",
"required": false
}
],
"timeout": 10,
"started_messages": [
"Let me look that up for you."
],
"error_message": "I could not reach the order system just now.",
"created_at": "2026-07-02T10:15:00.000Z",
"updated_at": "2026-08-11T09:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Retry after 60 seconds."
}
}{
"success": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}
}