Webhook App — API Lookups and Notifications
PremiumUse the Webhook app to retrieve data from an external API or send selected call details to another system. Configure the endpoint, request fields and headers, then use the result in your policy workflow.
Recommended Designs
Choose the request's purpose and its place in the workflow separately. GET and POST select the HTTP method; the app category determines when it runs.
| Use | Recommended Placement |
|---|---|
| A lookup needed before the policy response | A Realtime app on the appropriate Permit rule, using fields already available at that stage. |
| Inventory or CMDB enrichment for an alert | A Post Call app after the discovery or lookup that supplies its inputs. |
| An outbound notification or external workflow action | A Post Call app with the required call and enrichment data. |
The post-call notification workflow runs independently of call routing. It does not wait for the call to end or for a completed-call CDR. App order applies within each category; see Call Apps.
Look Up Data from an API
Send an identifier to a configured inventory or CRM endpoint and use the returned JSON object fields in the next configured app or alert template. The example below uses GET; the endpoint's API determines the request it accepts.
Send a Notification or Workflow Request
Build a POST payload containing the fields the receiving system needs. Inspect its HTTP response and verify the resulting notification, ticket or other action in that system.
A successful HTTP response confirms the endpoint response. Check the destination separately when you need proof that a person received an alert or that a downstream action completed.
Requirements
- Call Telemetry Appliance with a Premium or Demo license for call-policy apps.
- Cisco CallManager integration and configured External Call Control inspection.
- An endpoint reachable from the appliance, with the required API access and request format.
- Any discovery or earlier apps needed to supply the fields used in your request.
Use HTTPS for endpoints that receive credentials or call data. For a dedicated integration, see ServiceNow CMDB Lookup or SOAP Query.
Configuration Steps
1. Create and Associate the App
Open Policies → Apps, choose Realtime or Post Call for the intended workflow, then select Trigger Webhook. Enter an App name and App order, save it, and associate it with the intended rule.
Use the actual runtime context when selecting variables. A field offered by a picker is useful only if the corresponding event or earlier app supplied it for this execution.
2. Set the Endpoint and Method
Enter the API endpoint in URL and choose GET or POST in Method. The request line beneath these controls shows the configured method and URL.
For an inventory lookup, this fictional example calls https://inventory.example.com/phones with the calling device name as a query parameter:
| Control | Value |
|---|---|
| URL | https://inventory.example.com/phones |
| Method | GET |
| Param Key | device |
| Param Value | {{event.calling_devicename}} |
Under Query Parameters, enter the key and value, then click Add. Use the identifier and parameter name expected by your own API.

You can also use variables in the URL, for example https://inventory.example.com/contacts/{{event.calling_number}}. Query parameter values are encoded for the request. Define each key once rather than repeating it in both the URL and the query-parameter controls.
3. Configure Headers and Authentication
Use Custom Headers to enter the headers required by the endpoint. The presets help add common keys; New Header Key, New Header Value, and Add let you add others.
| Header | Typical Use |
|---|---|
Accept: application/json | Request a JSON response for a lookup. |
Content-Type: application/json | Identify a JSON request body. |
Authorization: Bearer <token> | Supply a bearer credential accepted by the endpoint. |
| An API-key header named by the provider | Supply the provider's required API key. |
Obtain and rotate credentials through the endpoint's supported process. This form sends the configured headers; it does not acquire or refresh an OAuth token for you. Sensitive header values are masked in the editor.
Header values are sent as configured. Put dynamic call or app fields in the URL, query parameters or payload.
4. Build a POST Payload
Select POST to open the payload editor. Choose JSON, XML, Form, or Raw to match the endpoint's expected body. The format control updates Content-Type; check that the body and header agree. Without a custom Content-Type, the request uses application/json.
For JSON, keep template variables inside string values. You can insert them from Webhook template variables or type the variable names. This example sends three call fields to https://alerts.example.com/events:
{
"caller": "{{event.calling_number}}",
"called": "{{event.called_number}}",
"device": "{{event.calling_devicename}}"
}

Templates substitute values into the body; they do not automatically construct or validate the receiving API's schema. Test the rendered body, especially if string fields can contain quotes, line breaks or other special characters.
Available Template Variables
Use only fields present in the current app's context. These are examples, not a promise that every call supplies every value.
| Data | Example Variable | When to Use It |
|---|---|---|
| Calling number | {{event.calling_number}} | A lookup key or notification field. |
| Called number | {{event.called_number}} | The number seen by the policy. |
| Calling device | {{event.calling_devicename}} | Device-specific queries when supplied by the call event. |
| Discovered phone IP | {{phone.ip}} | After phone discovery has supplied that field. |
| Earlier app result | {{app_data.inventory_lookup.data.building}} | After the named lookup has returned that field. |
Replace inventory_lookup with the actual key shown in your test context. Keep dependent enrichment apps after their inputs and before the alert that consumes their results.
Understanding Webhook Responses
For a lookup, return a JSON object. A successful object response becomes the app's data, subject to credential redaction. An empty response or a non-object response can complete successfully without providing useful fields for the next step.
For example, an inventory API might return:
{
"device": "SEP001122334455",
"building": "North Building",
"room": "Reception"
}
If the runtime app key is inventory_lookup, the following rule-alert template uses those returned fields:
Device: {{app_data.inventory_lookup.data.device}}
Location: {{app_data.inventory_lookup.data.building}} — {{app_data.inventory_lookup.data.room}}
With the fictional response above, it renders:
Device: SEP001122334455
Location: North Building — Reception
Choose the fields your API actually returns. For caller-ID or routing actions, follow the CRM integration guide; a generic response field is not automatically a call modifier.
Testing and Troubleshooting
Test a Single Request
Use Test Webhook to inspect the request and enter test calling/called numbers. Run Test Request sends a real request to the configured endpoint. Use a test destination when the request can create a ticket, send a notification or change external data.
Inspect the HTTP status, response body and transport errors. For the full workflow, run Policies → Call Test with the intended rule and verify that earlier apps supply the required data. Call Test can also execute outbound actions.
Check Common Problems
| Result | What to Check |
|---|---|
401 or 403 | Required headers, credential validity and API permissions. |
| Request or template rejected | Method, URL, rendered body and Content-Type. |
2xx but no lookup fields | Whether the endpoint returned a JSON object with the expected fields. |
| Blank or unexpected variables | Actual field paths, runtime app key and execution stage/order. |
| TLS or connection failure | Appliance-to-endpoint reachability, certificate trust and endpoint availability. |
| Endpoint accepts the request but no alert arrives | The receiving system's processing and delivery result. |
Keep realtime lookups short and test how the configured policy behaves when the endpoint fails. Use the post-call workflow for notification requests that do not need to influence the policy response. Webhooks on a matched Block rule are handled through notification processing.
Related Guides
- Call Apps — processing stages and app order.
- Emergency Notifications — discovery, enrichment and recipients.
- ServiceNow CMDB Lookup — dedicated CMDB and linked-location reads.
- CRM Integration with Webhooks — configured call modifiers.
- Policy Configuration — attaching inspection and rules.