Documentation
  • The Fundamental
  • ACTIVE SYNC
    • Data Ingestion
      • Data Tracking
        • API Key Management
        • Generate Tracking ID
        • Install tracking with Tag Manager
        • Install Tracking from the Console
        • Tracking Method on Website
      • Datasource
        • MySQL
        • PostgreSQL
        • MongoDB
        • Microsoft SQL Server
        • Shopify
        • CSV
        • Google Sheets
    • Data Ingestion API
      • Data Lake
        • File upload
        • Tracking API
      • Data Warehouse
        • Batch upload
        • CSV upload
        • Tracking API
      • Data Schema Warehouse API
    • Data Integrations
      • Manage your API Key
      • Get Data using API
  • ROCKET.BI
    • Introduction
    • Data Warehouse
      • Data Management
      • Ad-hoc Query
        • Measure Schema
        • Calculated Field
      • Query Analysis
      • Relationship
    • Row-level Security
    • Dashboard
      • Dashboard Filter
      • Chart Control
        • Tab Control
        • Single Choice
        • Multiple Choice
        • Dropdown Control
        • Slicer Control
        • Date Control
        • Input Control
      • Manage Dashboard
        • Relationship
        • View and Share
        • Select Main Date Filter
        • Boost
        • Settings
        • Add Chart
        • Add Tab
        • Add Text
    • Chart Builder
      • Chart Types
        • Pie Chart
        • Column Chart
        • Bar Chart
        • Line Chart
        • Line Stock Chart
        • Pareto Chart
        • Bubble Chart
        • Scatter Chart
        • Map Chart
        • Area Chart
        • KPI Chart
        • Lollipop Chart
        • Parliament Chart
        • Funnel Chart
        • Pyramid Chart
        • Gauge Chart
        • Bullet Graph Chart
        • Heat Map Chart
        • Word Cloud Chart
        • Tree Map Chart
        • Stacked Column Chart
        • Stacked Bar Chart
        • Sankey Chart
        • Spider Web Chart
        • Wind Rose Chart
        • Histogram Chart
        • Bell Curve Chart
        • Table Chart
        • Pivot Table Chart
      • Chart Settings
        • Zoom
        • Inner chart filter
      • Chart Filters
        • Tab Filter
        • Single Choice
        • Multiple Choice
        • Dropdown Filter
        • Slicer Filter
        • Date Filter
        • Input Filter
      • Right-click Settings
        • Change date function
        • Drill down
        • Drill through
        • Use as a filter
    • SQL Query
      • Syntax
      • Functions
      • Aggregate Functions
      • Data Types
  • UNLOCK.CI
    • Unlock.CI
Powered by GitBook
On this page
  • What is an API key?
  • Create an API key
  • Demo
  • Add the API key to your request
  1. ACTIVE SYNC
  2. Data Ingestion
  3. Data Tracking

API Key Management

Personal access tokens are used to authenticate with the DataInsider

PreviousData TrackingNextGenerate Tracking ID

Last updated 2 years ago

What is an API key?

An application programming interface (API) key is a unique identifier providing a private token to a user for authentication purposes.

Create an API key

1. On the Main Screen, click Settings, select Organization Settings

2. Access to API Key Management section

3. Click Create API key

4. Enter Token name and select Expired date

5. Select the Privileges that the token can access, then click Create

6. The new API key is listed with its name and expired date, you can update or remove it later.

Demo

Add the API key to your request

Sample request:

In the following example, add your API key: [SAMPLE_KEY]

curl --request POST \
  --url https://[client].datainsider.co/api/tracking/warehouse/stream \
  --header 'Content-Type: application/json' \
  --data '{
    "api_key": [SAMPLE_KEY],
    "events": [
   	 {
   		 "db_name": "demo",
   		 "tbl_name": "purchase",
   		 "properties": {
   			 "card_number": "1123123-123123-1232135",
   			 "order_id": 123123,
   			 "user_id": "ng-van-a-1999",
   			 "user_device": "iphone xs",
   			 "item": "mac pro 2020",
   			 "total_price": 1999,
   			 "created_time": 1627379100000
   		 }
   	 },
   	 {
   		 "db_name": "demo",
   		 "tbl_name": "purchase",
   		 "properties": {
   			 "card_number": "1123123-123123-1232135",
   			 "order_id": 123123,
   			 "user_id": "ng-van-a-1999",
   			 "user_device": "macbook pro",
   			 "item": "ipad pro 2020",
   			 "total_price": 999,
   			 "created_time": 1627379110000
   		 }
   	 },
   	 {
   		 "db_name": "demo",
   		 "tbl_name": "view_product",
   		 "properties": {
   			 "user_id": "ng-van-a-1999",
   			 "start_time": 1627379101263,
   			 "end_time": 1627379200000,
   			 "total_product_views": 123,
   			 "is_checkout_out": true
   		 }
   	 }
    ]
}'

You have to include an API key with request.

Data Ingestion API