API (HTTP REST) Connector for Destinations
Send detected events to an external system over HTTP by configuring an API (HTTP REST) connector on a destination.
A destination defines where Detect sends detected events. Previously, destinations supported two connector types: Kafka and database (DataSource). Starting with 26.1.0.0.IF2, destinations also support an API (HTTP REST) connector. The API connector publishes detected events as JSON over HTTP POST to a REST endpoint that you provide, such as a webhook, a microservice, or a third-party platform.
As with Kafka clusters and data sources, you define the connection details for an API connector once in Unica Platform, as an API configuration. A destination then refers to that configuration by name.
How event delivery works
The Detect engine does not call the external endpoint directly. Instead:
- The engine processes an event and sends them to the target endpoint as HTTP POST requests, reusing a shared pool of HTTP connections.
- Each request carries a unique
Idempotency-Keyheader so the receiving system can detect and ignore duplicate deliveries. - If a message still fails after the configured number of retries, it is removed from the normal processing path so that it does not block later events.
Prerequisites
- Unica Platform and HCL Detect 26.1.0.0.IF2 or later are installed.
- You have administrator access to Unica Platform configuration and to Detect destinations.
- The Detect engine host can reach the target endpoint, and the token endpoint if you use bearer token authentication, through any firewalls or proxies in between.
- The target endpoint accepts HTTP POST requests with a JSON body.
- You have the credentials for the authorization type you plan to use: a user name and password for basic authentication, or a token URL, client ID, and client secret for bearer token authentication.
- For HTTPS endpoints, the endpoint's certificate is trusted by the Java truststore used by the Detect engine JVM.