Intempt
  1. API Reference
Intempt
  • Installation
    • Basic Intempt Installation
    • Create source
    • Google Tag Manager
    • Environment Setup
    • Validating Installation
  • SDK
    • JS SDK
    • Android SDK
    • iOS SDK
    • Node.js SDK
  • API Reference
    • Track data
      POST
    • Consent
      POST
    • Choose API
      POST
    • Recommendations Feed API
      POST
  • Data Ingestion & Tracking
    • intempt:html / intempt:page / intempt:session
    • Product Catalog Ingestion via API
    • How Intempt Works — A One-Page Mental Model
    • Revenue & Refund Tracking
    • Recommendation events mapping
    • Track Events API (Recommendations)
  • Data Models & Event Schema
    • Event Schema Overview
  • Webhooks
    • All about Webhooks
  • Server Side Experiments
    • Overview
  1. API Reference

Track data

POST
/{orgName}/projects/{projectName}/sources/{sourceId}/track
Ingest tracking events into Intempt via HTTP.
This endpoint accepts one or more tracking events in a single request and sends them directly into Intempt’s real-time ingestion pipeline for processing, identity resolution, and analytics.
Use this endpoint when:
• Tracking events from backend or server-side systems
• Sending events from environments where the Intempt SDK is not available
• Syncing behavioral, transactional, or lifecycle data from custom backends or integrations

Request

Path Params

Query Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
200
Body

🟠400Bad Request
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST '//projects//sources/0/track?apiKey' \
--header 'Content-Type: application/json' \
--data-raw '{
    "track": [
        {
            "name": "Purchase",
            "payload": [
                {
                    "eventId": "generated-event-id",
                    "profileId": "generated-profile-id",
                    "userId": "custom@intempt.com",
                    "timestamp": 1714631904000,
                    "accountId": "Intempt",
                    "sessionId": "generated-session-id",
                    "pageId": "generated-page-id",
                    "anotherUserId": "+111111111",
                    "anotherAccountId": "no-reply@intempt.com",
                    "data": {
                        "amount": 150,
                        "productName": "Wine",
                        "quantity": 4,
                        "locationLatitude": 51.509865
                    },
                    "userAttributes": {
                        "location": "USA"
                    },
                    "accountAttributes": {
                        "founded": 2000
                    }
                }
            ]
        }
    ]
}'
Response Response Example
200 - Successful ingestion — Purchase event accepted
This response indicates that the Purchase event was successfully received and processed by Intempt.
Returned identifiers (such as eventId, profileId, and sessionId) confirm:
• the event was accepted
• identity resolution succeeded
• the payload was valid
This example is mainly illustrative.
In production, Intempt may return an empty object {} while still ingesting the event successfully.
{
    "track": [
        {
            "name": "Purchase",
            "payload": [
                {
                    "eventId": "evt_123456789",
                    "profileId": "profile_abc123",
                    "userId": "customer@example.com",
                    "timestamp": 1714631904000,
                    "accountId": "Intempt",
                    "sessionId": "sess_987654",
                    "pageId": "checkout_page",
                    "data": {
                        "amount": 150,
                        "productName": "Wine",
                        "quantity": 4,
                        "locationLatitude": 51.509865
                    },
                    "userAttributes": {
                        "location": "USA"
                    },
                    "accountAttributes": {
                        "founded": 2000
                    }
                }
            ]
        }
    ]
}
Modified at 2026-01-27 12:21:11
Previous
Node.js SDK
Next
Consent
Built with