Webhooks
Remove a webhook endpoint
DELETE
/webhooks/{webhookId}Stops deliveries immediately.
curl -X DELETE "https://api.facetrustai.com/v1/webhooks/wh_01JD93" \ -H "Authorization: Bearer $FACETRUST_API_KEY"
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/webhooks/wh_01JD93', { method: 'DELETE', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, }, }); const data = await res.json();
import os, uuid, requests res = requests.delete( "https://api.facetrustai.com/v1/webhooks/wh_01JD93", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, timeout=15, ) res.raise_for_status() data = res.json()
curl -X DELETE "https://api.facetrustai.com/v1/webhooks/wh_01JD93" \ -H "Authorization: Bearer $FACETRUST_API_KEY"
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/webhooks/wh_01JD93', { method: 'DELETE', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, }, }); const data = await res.json();
import os, uuid, requests res = requests.delete( "https://api.facetrustai.com/v1/webhooks/wh_01JD93", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, timeout=15, ) res.raise_for_status() data = res.json()
curl -X DELETE "https://api.facetrustai.com/v1/webhooks/wh_01JD93" \ -H "Authorization: Bearer $FACETRUST_API_KEY"
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/webhooks/wh_01JD93', { method: 'DELETE', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, }, }); const data = await res.json();
import os, uuid, requests res = requests.delete( "https://api.facetrustai.com/v1/webhooks/wh_01JD93", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, timeout=15, ) res.raise_for_status() data = res.json()
200 · application/json
{
"deleted": true
}200 · application/json
{
"deleted": true
}200 · application/json
{
"deleted": true
}Use it for
Decommissioning an endpoint.
Headers#
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <key>, a key with the webhooks:manage scope. See Authentication. |
Path parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
webhookId | string | Yes | None |
Response#
Returns 200 with the body shown in the response example. Examples follow the account type selected at the top of the page.
Shown above, with the request.
Errors#
| Code | HTTP | Meaning |
|---|---|---|
unauthorized | 401 | Missing, malformed, revoked or expired API key. |
forbidden_scope | 403 | The key doesn’t have the scope this endpoint needs. |
account_type_forbidden | 403 | This endpoint isn’t available to your account type. |
module_disabled | 403 | The module is switched off for your account. Contact FaceTrust. |
ip_not_allowed | 403 | The request came from an IP outside the key’s allowlist. |
rate_limited | 429 | Too many requests. Wait for Retry-After seconds. |
not_found | 404 | No such resource in your institution. |