> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.omegatheme.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Set up Events API

## 
Events API will help improve your tracking precision
This step is required when you add pixel manually. With auto add pixel or create pixel directly within our app, this setup is not necessary. We will auto get the Access token for you.

[**-> See AUTO ADD NEW PIXEL in app**](https://omegatheme-contact.gitbook.io/omega-multiple-tiktok-pixels-1/add-your-tiktok-pixel/auto-add-existing-tiktok-pixel)
[**-> See CREATE NEW PIXEL in app**](https://omegatheme-contact.gitbook.io/omega-multiple-tiktok-pixels-1/add-your-tiktok-pixel/create-new-pixel-directly-in-omega)
## 
**Check out this video for detailed instructions:**

## ${youtube}[How To Generate Access Token For Tiktok Events API](h5HKID6dMzs)
### 1️⃣ Get an access token from TikTok Events Manager

The access token is a key that allows our app to send server events to the TikTok server through Events API. Server events will be stored in your pixel ID and processed the same way as browser events by Tiktok

👉 Go to Settings tab of your pixel

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_18ynwsq.png)
👉 Scroll down to the bottom. Click **Generate Access Token**, copy the value 

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1pzxaph.png)
### 2️⃣ Pass the access token to Omega

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_ssatcn.png)
That’s it! Your next task is testing if server events are sent properly.
### Check if your Events API is working well

You can use the TikTok Event Test Code
#### TikTok Event Test Code

**Go to your TikTok Pixel -> Test Events -> Copy the test code**

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_fsz9rf.png)te the code to Omega**

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_bwai2.png)

That's it. You can perform some test actions & go back to the TikTok Test Events tab to see the test events result.

**Important:** You have to remove the test code after testing for the live events to arrive properly









