Webhooks
List Webhooks
List Webhooks through the OMA API.
GET
/
v1
/
webhooks
List Webhooks
curl --request GET \
--url http://localhost:38080/v1/webhooks \
--header 'X-Api-Key: <api-key>' \
--header 'anthropic-beta: <anthropic-beta>'import requests
url = "http://localhost:38080/v1/webhooks"
headers = {
"anthropic-beta": "<anthropic-beta>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'anthropic-beta': '<anthropic-beta>', 'X-Api-Key': '<api-key>'}
};
fetch('http://localhost:38080/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:38080/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("anthropic-beta", "<anthropic-beta>")
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": "wh_01H...",
"type": "webhook",
"url": "<string>",
"name": "<string>",
"description": "<string>",
"enabled_events": [
"session.status_run_started"
],
"status": "enabled",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"disabled_reason": "<string>"
}
],
"next_page": "<string>"
}Every request requires
anthropic-beta: webhooks-2026-03-01. Create returns the signing secret once.Was this page helpful?
⌘I
List Webhooks
curl --request GET \
--url http://localhost:38080/v1/webhooks \
--header 'X-Api-Key: <api-key>' \
--header 'anthropic-beta: <anthropic-beta>'import requests
url = "http://localhost:38080/v1/webhooks"
headers = {
"anthropic-beta": "<anthropic-beta>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'anthropic-beta': '<anthropic-beta>', 'X-Api-Key': '<api-key>'}
};
fetch('http://localhost:38080/v1/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:38080/v1/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("anthropic-beta", "<anthropic-beta>")
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": "wh_01H...",
"type": "webhook",
"url": "<string>",
"name": "<string>",
"description": "<string>",
"enabled_events": [
"session.status_run_started"
],
"status": "enabled",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"disabled_reason": "<string>"
}
],
"next_page": "<string>"
}