Skip to main content

Webhooks

Webhooks in AnyDB allow you to register external callback URLs and use them inside Workflow Automation.

Important: Webhook registration and usage are available only for teams on Business or Enterprise plans. Teams on lower plans cannot register webhooks.

Once a webhook is registered, it can be selected in the Call Webhook automation action or AnyDB SDK to send workflow context payloads to your external systems.

What gets sent to your endpoint

When AnyDB calls your webhook URL, it sends:

  • JSON body (Content-Type: application/json)
  • X-Webhook-Signature: HMAC SHA-256 signature of the payload
  • User-Agent: AnyDB-Webhook/1.0
  • Any custom headers you configured for that webhook

If a Call Webhook action passes extra headers, those values override same-name stored headers.

Add a Webhook

To add a webhook in AnyDB:

  1. Open your team/workspace settings.
  2. Go to the webhook management area.
  3. Add a webhook name and endpoint URL.
  4. Save the webhook.

Add Webhook

Add webhook headers (customHeaders)

Use custom headers when your endpoint expects API keys, bearer tokens, tenant identifiers, or other fixed auth metadata.

Header format

  • Headers are stored as a JSON object of string key/value pairs.
  • Example:
{
"Authorization": "Bearer <token>",
"x-api-key": "<api-key>",
"x-tenant-id": "acme"
}

Via UI

In Team Properties → Webhooks:

  1. Add or edit a webhook.
  2. Open the custom headers section.
  3. Add each header key and value.
  4. Save.

Custom Webhook Headers

Via API (register webhook)

Endpoint: POST /api/wbhook/register

{
"teamid": "<team-id>",
"name": "Billing Hook",
"url": "https://example.com/hooks/anydb",
"description": "Billing sync webhook",
"timeout": 30000,
"maxRetries": 3,
"backoffMs": 1000,
"customHeaders": {
"Authorization": "Bearer <token>",
"x-api-key": "<api-key>"
}
}

Header security and behavior notes

  • Webhook secret is generated automatically and returned only once at registration or secret rotation.
  • Secret is not returned in normal webhook list/get responses.
  • Signature header (X-Webhook-Signature) is generated from payload + webhook secret.
  • In production, webhook URL validation enforces stricter rules (HTTPS and no private/localhost targets).

View Registered Webhooks

You can view all registered webhooks from Team Properties.

This list helps you manage available endpoints that workflows can call.

Registered Webhooks in Team Properties

Use Webhooks in Automation

After a webhook is registered:

  1. Open or create an automation workflow.
  2. Add the Call Webhook action.
  3. Select a registered webhook.
  4. Configure payload/context as needed.
  5. Save and run/test the workflow.

Webhooks are commonly used to notify external systems, trigger downstream jobs, or integrate with custom services.

Test your webhook

You can send a test payload to verify endpoint + headers are accepted.

Registered Webhooks in Team Properties