Creating a Webhook
Create a webhook through the API, with an API key that reaches the gateway’s organization:Parameters
The response carries the ingest
url, the shared secret, and the business_rule to add to ServiceNow, with business_rule_created: false. The secret is shown once: later reads never return it.
Configuring ServiceNow
After creating a webhook, configure ServiceNow to send events to it using a Business Rule.Let 2501 create the Business Rule
Addservicenow_admin to the create request, with a ServiceNow account allowed to create Business Rules:
servicenow_api_url credential), through the installation’s outbound proxy and with the gateway’s skip_tls_verify setting. The account is used for this request only: 2501 does not store it, log it, or return it. The response has business_rule_created: true and no business_rule.
- When a Business Rule with the webhook’s rule name already exists, the request fails with
409and no webhook is created. Delete the rule in ServiceNow, or pick another name. - When ServiceNow refuses the request, for example because the admin password is wrong, the request fails with
400and no webhook is created. - When ServiceNow does not answer or answers with a server error (
5xx), the request fails with502. ServiceNow may have saved the rule before the failure, so 2501 keeps the webhook and the error names it: delete it with the sameservicenow_adminaccount (see Listing and Deleting Webhooks), which removes the rule too when it exists.
Send the rule yourself
The quickest way is to send thebusiness_rule object from the response to your instance’s Table API, with a ServiceNow account allowed to create Business Rules:
Business Rule by hand
- In ServiceNow, navigate to System Definition > Business Rules
- Click New
- Configure:
- Name: a descriptive name (e.g.,
2501 Webhook - Incidents) - Table:
incident(or the table matching yourevent_type) - When:
after - Insert: checked
- Update: checked
- Name: a descriptive name (e.g.,
- Check Advanced
- Paste the
scriptfrom the response into the Script field - Optionally add a Filter Condition to scope which incidents trigger the webhook (e.g.,
Assignment group is <your group>) - Click Submit
Both the
incident and change_request tables are supported. A gateway that handles incidents and changes uses two webhooks, one per table, each with its own Business Rule. For how change requests are picked up and executed, see Change Requests.Splunk alerts
Splunk can send alerts to 2501 for Observability. Each organization has its own signal key.-
Turn on the
enableObservabilityfeature toggle and restart the engine. -
Create the organization’s signal key:
The response’s
keyis shown once. Store it in Splunk; 2501 keeps only a one-way copy. -
In Splunk, add a webhook alert action that posts to
https://<your-command-center>/api/v1/signalswith the headerAuthorization: Bearer <signal key>.
Listing and Deleting Webhooks
servicenow_admin account in the body:
environment does not lose it, then the webhook. The response’s business_rule_deleted says whether a rule was found and deleted. When ServiceNow refuses the request, for example because the admin password is wrong, it fails with 400; when ServiceNow does not answer or answers with a server error, it fails with 502. The webhook stays in both cases. When the rule with that name does not send to this webhook, 2501 leaves it in ServiceNow and the request fails with 409; the webhook stays.
Network Requirements
The ServiceNow instance must be able to reach your Command Center’s URL over HTTPS. The webhook endpoint is:How It Works
- ServiceNow fires the Business Rule when a record (incident or change request) is created or updated
- The script sends a POST request with the record’s
sys_idto the webhook URL - Command Center proxies the request to the engine
- The engine validates the shared secret, then enqueues the ticket for processing
- The engine fetches the full record details from ServiceNow and processes it through the gateway pipeline

