Description:
The TikTok Events API is designed to help businesses deliver personalized advertising experiences to customers while maintaining data privacy. It achieves this by creating a direct connection between marketing data and systems that optimize ad targeting, reduce cost per action, and measure results across TIkTok technologies—without relying on browser-based tools like cookies.
Pre-Requisites:
- TikTok Ads account
- A website/Marketing Data System
- TikTok Business Manager account
- Server-side API permission
Getting Started:
- Log in to your Datahash account on https://studio.datahash.com/login
- Navigate to the TikTok category under the Destination list in the left section.
- Click on the “Events API” connector tile

The process to setup the TikTok Events API is detailed below. The Setup process is the same for both types of connection modes.
It is a fairly simple process and can be done in 2 ways – either use Login with TikTok to automatically fetch set-up details or provide the set-up details manually from TikTok Ads Manager.
Single Sign on:
- Click on the “Continue with TikTok” button. This will open a new window prompting you to log in to your TikTok account.

- Log in to your TikTok for Business account.
- Select the necessary permissions and click “Confirm”.
- You will be redirected back to the Datahash dashboard.
- Choose the specific TikTok Advertiser ID you want to proceed with. Select the associated Event Set ID.
- Opt-in for limited data usage: It is a feature to give businesses more control over how their event data is used in TikTok’s systems. In order to help facilitate advertiser’s compliance with the right to opt out of sale and sharing of personal data under certain U.S. state privacy laws. The feature will be available in California, Virginia, Colorado, Connecticut, and Utah.
- Select “Yes” to opt in and “No” to opt out
- Click Finish to complete the set-up.
Manual Process:
- Provide the Pixel ID and the Access token of the business account with which you would like to integrate.
- Pixel ID :- The Pixel ID is a unique identifier assigned to each TikTok Pixel created by a business within the TikTok Ads Manager.
- Access Token :- An Access Token is a unique identifier that allows businesses to connect their TikTok ad account with third-party tools such as the TikTok Events API..

- Once done, click on Finish to complete the setup.

- The setup has been done & the data will start to flow from the source to the destination.

Components:
To better understand the setup, here are some technical details about the components involved:
Finding the Pixel ID and Access Token:
- Log in to your TikTok Ads Manager account at https://ads.tiktok.com/
- Choose the relevant Ad Account which includes the pixel that you wish to integrate.
- Click on the “ Tools” menu located on the top navigation panel and Navigate to the “Events” section.
- Select the type of events that you would like to manage. For web Events API implementation, select “Manage” for Web Events.
- The Pixel ID is available under the Pixel name written in blue, as shown in the image.
- To retrieve the Access token, click on the Pixel ID name written in blue above the Pixel ID, then click on Settings tab.
- Scroll down to the Events API section and click on “Generate Access Token”.
- Once clicked, an Access token will be available. Copy and save this access token.
- Enter the Pixel ID and access token in the Datahash dashboard.