# TikTok Event API

With the TikTok event API, you can easily send conversion data, helping track ad performance on TikTok and optimize ad delivery, especially when third-party cookies are blocked.

{% hint style="info" %}
To use the TikTok Event API, you need: a **Pixel ID** and an **Access Token**
{% endhint %}

### Get necessary data from TikTok Ads Manager

#### Pixel ID

1. Tools **»** Event
2. Go to Manage for Web Events
3. Enter Pixel name **»** Select "**Events API**" as a Connection Method **»** Next

<figure><img src="/files/buKuLpgAwpLulHUk0GnR" alt=""><figcaption></figcaption></figure>

4. Select "**Manually Set Up Events API**" in Installation Type **»** Next

<figure><img src="/files/cc8NfoNcL9J7xo16HnpC" alt=""><figcaption></figcaption></figure>

5. Make sure you're in Ads Manager **»** Assets **»** Settings

<figure><img src="/files/hKg1HnAiXXnQLnD3WVe4" alt=""><figcaption></figcaption></figure>

6. **Pixel ID** will appear after "**ID:"** **»** Copy this **Pixel ID**

#### For Access Token

1. Event Manager **»** Settings
2. Go to "**Generate Access Token**" under Events API Section

***

### Placement of Pixel ID and an access token in Affiliate dashboard

1. Login to Affiliate dashboard **»** open respective Offer&#x20;

2. Go to Postback section\ <br>

   <figure><img src="/files/LFt7DqPTvnzYtUTx7j4S" alt=""><figcaption></figcaption></figure>

3. Select TikTok in Type

4. Place **Pixel ID** and **Access token**&#x20;

5. Select Event&#x20;

6. Define TikTok Event

<figure><img src="/files/mOEGHYmyZGrH2tO5884q" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

* For TikTok Click ID use **{aff\_click\_id}**&#x20;
* For other values use additional parameters from **{aff\_sub1}** to **{aff\_sub5}**
  {% endhint %}

8. Go to Submit

{% hint style="info" %}
To use existing **Pixel ID** and **Access Token**, click on Use Existing then select Pixel ID from drop-down.
{% endhint %}

Make sure to use the same parameters in affiliate tracking link to receive the values from TikTok.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.offer18.com/affiliate/integration/tiktok-event-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
