API Connector Configuration Properties

Platform API configuration properties

These properties are set once per API configuration in Unica Platform, under Affinium > UnicaDetect.

Property (display name) Internal name Required Description
Target Endpoint api.target.endpoint Yes URL that receives events by HTTP POST.
Authorization Type api.auth.type Yes Authorization scheme: NoAuth (default), Basic Auth, or Bearer Token.
Authorization Endpoint api.auth.endpoint For Bearer Token Token endpoint Detect calls to obtain an access token.
Auth credentials datasource Username api.auth.datasource.username For Basic Auth and Bearer Token Username who created the Platform User Datasource.
Auth credentials datasource Name api.auth.datasource.name For Basic Auth and Bearer Token Platform User Datasource name, for the above user, that stores the client credentials. In datasource, the password or client secret is Encrypted by Platform before storage.
Connection Timeout in Millis api.connection.timeout Yes Maximum time, in milliseconds, to open the connection, including DNS resolution. Default: 5000 (5 seconds).
Read Timeout in Millis api.socket.timeout Yes Maximum period of inactivity, in milliseconds, allowed between two consecutive data packets once the connection is open, including the token exchange for bearer authentication. The timer resets each time data arrives, so it limits idle time between packets, not the total response duration. Default: 10000 (10 seconds).
Note:
This setting does not indicate the total response duration. For more information, see "Read Timeouts" under "API Connector Delivery, Retry, and Failure Handling."
Note:
Administrators can also import these properties from an XML file using configTool, the same way Kafka cluster and data source configurations are imported. See the configTool usage described for Kafka clusters in the troubleshooting topics of this guide for the equivalent command syntax.

Destination-level connector properties

These properties are set per destination, in the api entry of connectorConfig in the destination's JSON payload.

Field Required Description
connectorType Yes Connector type identifier for the API connector.
apiConfigName Yes Name of the API configuration created in Platform.
headers No Optional custom HTTP headers sent with every request, as key-value pairs.