await seam.webhooks.create({
url: "https://example.com",
event_types: ["device.connected", "device.disconnected"],
});
/*
{
"event_types": [
"device.connected",
"device.disconnected"
],
"secret": "mySecret",
"url": "https://example.com",
"webhook_id": "ffe5cc3c-f3f4-48e8-b377-6f76c05d09a1"
}
*/
{
"ok": true,
"webhook": {
"url": "<string>",
"webhook_id": "<string>",
"event_types": [
"<string>"
],
"secret": "<string>"
}
}Webhooks
Create a Webhook
Creates a new webhook.
POST
/
webhooks
/
create
await seam.webhooks.create({
url: "https://example.com",
event_types: ["device.connected", "device.disconnected"],
});
/*
{
"event_types": [
"device.connected",
"device.disconnected"
],
"secret": "mySecret",
"url": "https://example.com",
"webhook_id": "ffe5cc3c-f3f4-48e8-b377-6f76c05d09a1"
}
*/
{
"ok": true,
"webhook": {
"url": "<string>",
"webhook_id": "<string>",
"event_types": [
"<string>"
],
"secret": "<string>"
}
}Authorizations
api_keypat_with_workspaceconsole_session_with_workspace
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json

