Creating a Webhook
Use the2501-infra CLI to register a new webhook:
Parameters
| Parameter | Required | Description |
|---|---|---|
--name | Yes | Human-readable name for this webhook (e.g., prod-incidents, staging) |
--source-type | Yes | Ticketing system type (e.g., servicenow) |
--event-type | Yes | Resource type this webhook receives (e.g., incident, change_request) |
--gateway-id | No | Target gateway ID. Auto-selected if only one active gateway exists |
--description | No | Optional description for this webhook |
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

