Create Webhook
POST /v1/webhooks — createWebhook
import { client, Webhooks } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Webhooks.createWebhook({
body: {
url: 'https://your-app.example.com/anchor/webhooks',
subscribed_events: ['task.completed']
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.webhooks.create_webhook(
url="https://your-app.example.com/anchor/webhooks",
subscribed_events=["task.completed"],
)
print(result)
List Webhooks
GET /v1/webhooks — listWebhooks
import { client, Webhooks } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Webhooks.listWebhooks();
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.webhooks.list_webhooks()
print(result)
Get Webhook
GET /v1/webhooks/{id} — getWebhook
import { client, Webhooks } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Webhooks.getWebhook({
path: {
id: 'your-id'
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.webhooks.get_webhook(
"your-id",
)
print(result)
Update Webhook
PATCH /v1/webhooks/{id} — updateWebhook
import { client, Webhooks } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Webhooks.updateWebhook({
path: {
id: 'your-id'
},
body: {}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.webhooks.update_webhook(
"your-id",
)
print(result)
Delete Webhook
DELETE /v1/webhooks/{id} — deleteWebhook
import { client, Webhooks } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Webhooks.deleteWebhook({
path: {
id: 'your-id'
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.webhooks.delete_webhook(
"your-id",
)
print(result)
Rotate Webhook Signing Secret
POST /v1/webhooks/{id}/rotate-secret — rotateWebhookSecret
import { client, Webhooks } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Webhooks.rotateWebhookSecret({
path: {
id: 'your-id'
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.webhooks.rotate_webhook_secret(
"your-id",
)
print(result)
Send Test Event
POST /v1/webhooks/{id}/test — sendWebhookTestEvent
import { client, Webhooks } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Webhooks.sendWebhookTestEvent({
path: {
id: 'your-id'
},
body: {
event_type: 'task.completed'
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.webhooks.send_webhook_test_event(
"your-id",
event_type="task.completed",
)
print(result)
List Webhook Deliveries
GET /v1/webhooks/{id}/events — listWebhookEvents
import { client, Webhooks } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Webhooks.listWebhookEvents({
path: {
id: 'your-id'
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.webhooks.list_webhook_events(
"your-id",
)
print(result)

