Skip to main content

External API Contact Resolution

Use the native External API Contact Resolution app to look up a caller through an external REST service. Attach the app to a realtime policy rule. When that rule matches, CallTelemetry checks local contact data first, then queries the configured API on a miss. A valid response with a nonempty name supplies the caller-name modifier for the CURRI response.

Requirements​

Configure the Native API App​

  1. Open Realtime Policies → Apps. In the app selector, choose REAL-TIME, then select External API Contact Resolution and click Create.

    External API Contact Resolution app card in the realtime application selector
  2. Enter an app name, then configure the endpoint:

    FieldWhat to enter
    API Base URLThe API origin and any shared path, such as https://crm.example.test/api/v1.
    API Endpoint PathThe path appended to the base URL. Start it with /, such as /contacts/search. For URL path lookups, include {phone} in the path, such as /contacts/{phone}.
    Phone Parameter NameThe request field name for the caller number. The default is phone.
    Phone Parameter LocationChoose Query parameter, Request body, or URL path. The name is used for query and body lookups; URL path lookups use the {phone} placeholder.
    HTTP MethodChoose the method accepted by the endpoint: GET, POST, or PUT.
    Request Timeout (seconds)Set how long the request can wait for a response. The form accepts 1.1 to 59.9 seconds.

    With the defaults, the app sends the caller number in a phone query parameter. Configure the endpoint to accept that request shape. For example:

    GET https://crm.example.test/api/v1/contacts/search?phone=%2B14155550123

    For a JSON request body, choose POST or PUT and Request body. For a URL path lookup, choose URL path and put {phone} in API Endpoint Path.

  3. Choose the authentication type your endpoint requires:

    Authentication TypeFields
    API KeyEnter the key, choose Header in API Key Location, and set API Key Header or Parameter. The default header name is X-API-Key.
    Bearer TokenEnter the token. Authorization Header Name and Authorization Header Prefix default to Authorization and Bearer.
    Basic AuthenticationEnter the API username and password.
    OAuth 2.0Enter the client ID, client secret, token URL, and any required scope.
    NoneUse when the endpoint does not require authentication.

    Use Custom Headers for additional fixed headers.

Map the JSON Response​

The endpoint must return a JSON contact with a nonempty name. In Response Field Mapping, set Response Data Path to the object containing the contact. The default is data; leave it empty when the response body is the contact object. Use dot notation for nested paths.

For example, with this response, keep Response Data Path set to data and use name, phone, company, and email for the corresponding fields:

{
"data": {
"name": "Morgan Example",
"phone": "+14155550123",
"company": "Example Systems",
"email": "morgan@example.test"
}
}

Name Field must point to a nonempty value for the lookup to count as a match. Phone Number Field, Company Field, and Email Field map the optional contact details returned with the name.

Test the API Connection​

  1. Enter a Test Phone Number (E.164).
  2. Click Test Connection.
  3. Review the result. A successful API response without a mapped contact is reported as no contact found; check Response Data Path and Name Field if the API response contains a name.

The test sends a real request to the external API using the current unsaved settings and the test number. It bypasses the contact cache and does not save the app configuration or the returned contact. Save the app after the test succeeds.

Save and Associate the App​

Attach the saved app to the policy rule that handles the calls you want to resolve. Confirm that the rule matches the configured CUCM inspection point. The native API app returns the mapped name as a caller-name modifier. A nonempty New Calling Name rule modifier takes precedence over the app's value.

Saved External Result Reuse and Expiry​

  • Cache contacts with TTL is on by default. When enabled, successful REST lookups are saved and reused. When disabled, the app does not reuse saved external API results or persist new REST results; manually entered or imported contacts remain available.
  • Contact cache TTL (minutes) sets the time to live for saved REST results. The default is 30 minutes. Quick-select presets offer 5, 15, or 30 minutes, 1 hour, 4 hours, or 12 hours; you can also enter a custom value from 1–1,439 minutes. This is not a scheduled sync: after a result expires, the next matching call treats it as a miss and queries REST when no separate eligible local contact resolves the number.
  • The lookup checks expiry before reusing a saved external result. If the provider is unavailable after expiry, CallTelemetry does not apply the stale external caller-name modifier. A separate eligible manual/import contact or a rule's own New Calling Name can still supply a name.
  • A bounded background cleanup removes expired external records every five minutes. Call processing checks expiry independently, so cleanup timing does not extend a result's usable lifetime.
Existing Contacts

The refresh interval applies to newly saved native REST lookup results. Manual/imported contacts remain available. Older contacts saved before expiry tracking remain ordinary directory records and are not retroactively refreshed; review or remove an outdated contact to allow a fresh lookup.

Troubleshoot a Lookup​

  • No contact found: confirm that the API returns JSON, the response path reaches a contact object, and the mapped name field is present and nonempty.
  • The test request fails: check the base URL, endpoint path, authentication, and whether the endpoint is reachable from the appliance.
  • The test succeeds but a call keeps the old name: confirm the app is attached to the rule that matched the call. Check whether New Calling Name on that rule overrides the app's caller-name modifier.
  • A saved result is stale: older contacts saved before expiry tracking are not retroactively refreshed. Review or remove an outdated contact to allow a fresh lookup.

The generic Webhook CRM Integration uses a separate Trigger Webhook app and a rule mapping for webhook response data. It is not the configuration flow described on this page.