Skip to main content

Prerequisites

Before you can track Contact metrics, you must create a Contact profile, to learn more, see Creating a Contact.

Using Contact metrics

To track Contact metrics effectively, you have two primary options:
  1. API Direct Usage: When using the API directly, you can attach the contact ID through the request headers.
  2. SDK Implementation: We strongly recommend using our SDKs, as they provide a more streamlined approach to tracking contact metrics.
curl 'https://api.orq.ai/v2/deployments/invoke' \
-H 'Authorization: Bearer {apiKey}' \
-H 'X-ORQ-CONTACT-ID: <external_id>' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
   "key": "<deployment_key>",
   "context": {
      "environments": []
   }
}' \
--compressed
To learn more, see the API Reference.