Hooks
List Hooks
List all installed hooks and available hook presets.
GET
/
api
/
v1
/
hooks
List Hooks
curl --request GET \
--url https://api.example.com/api/v1/hooksimport requests
url = "https://api.example.com/api/v1/hooks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/hooks', 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.example.com/api/v1/hooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/v1/hooks"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api/v1/hooks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/hooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"hooks": [
{}
],
"presets": [
{}
]
}Response
array
Array of installed hooks. Each includes
id, event_pattern, skill_slug, enabled, cooldown_minutes, consecutive_failures, last_fired_at, created_at.array
Array of available hook presets. Each includes
id, event_pattern, default_skill, description.Authentication
Requires an API key withcompletions scope.
Example
curl
curl https://www.hitheo.ai/api/v1/hooks \
-H "Authorization: Bearer $THEO_API_KEY"
Response
{
"hooks": [
{
"id": "a1b2c3d4-...",
"event_pattern": "order.*.completed",
"skill_slug": "order-processor",
"enabled": true,
"cooldown_minutes": 5,
"consecutive_failures": 0,
"last_fired_at": null,
"created_at": "2026-04-15T12:00:00.000Z"
}
],
"presets": [
{
"id": "share.accepted.welcome",
"event_pattern": "share.accepted",
"default_skill": "email-drafter",
"description": "Welcome on share accept"
}
]
}
Management
PATCH /api/v1/hooks/{id}— Update config, enable/disableDELETE /api/v1/hooks/{id}— RemoveGET /api/v1/hooks/{id}— View execution history
Was this page helpful?
List Hooks
curl --request GET \
--url https://api.example.com/api/v1/hooksimport requests
url = "https://api.example.com/api/v1/hooks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/hooks', 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.example.com/api/v1/hooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/v1/hooks"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api/v1/hooks")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/hooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"hooks": [
{}
],
"presets": [
{}
]
}