Creating a Webhook
Use the2501-infra CLI to register a new webhook:
Parameters
Example
Configuring ServiceNow
After creating a webhook, configure ServiceNow to send events to it using a Business Rule.Business Rule
- 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 your--event-type) - When:
after - Insert: checked
- Update: checked
- Name: a descriptive name (e.g.,
- Check Advanced
- Paste the generated script 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
Only the
incident table is currently supported. change_request and other tables are not yet supported.Deleting a Webhook
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 an incident is created or updated
- The script sends a POST request with the incident’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 incident details from ServiceNow and processes it through the gateway pipeline

