> For the complete documentation index, see [llms.txt](https://docs.adpage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adpage.io/integrations-marketingtools/tiktok-ads/where-to-find-the-tiktok-pixel-id-and-the-tiktok-api-token.md).

# Where to find the TikTok Pixel ID and the TikTok API Token

How to retrieve the TikTok Pixel ID and TikTok API Token in the TikTok Ads Manager

To send server-side events to TikTok, you need two values: the Pixel ID of the pixel you want to send events to, and an Events API access token that authorises those events. You can find both in TikTok Ads Manager.

### **Where to find the Pixel ID**

{% stepper %}
{% step %}

#### Open the TikTok Ads Manager

Log in to TikTok Ads Manager: <https://ads.tiktok.com/>
{% endstep %}

{% step %}

#### Find your Assets

Go to Tools and open Assets.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FdCCxj26X6koFp2fChNxm%2Fimage.png?alt=media&amp;token=3858eacf-9d33-4782-b772-c5ece1cd4bd7" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Open the Events Manager

Select the correct pixel and open the pixel in Events Manager.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FLHptoxotei8km2b9P6Ok%2Fimage.png?alt=media&amp;token=51de2dbc-a19f-4c26-a41a-909dd8f8affd" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Find the Pixel ID

At the top you'll be able to find the Pixel ID.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FdIh8ssht4dZgNVUriXz6%2Fimage.png?alt=media&amp;token=d6a793cf-2435-4a3f-83f5-ca1483d2b1cc" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### **Where to find the API token**

{% stepper %}
{% step %}

### Open the TikTok Ads Manager

Log in to TikTok Ads Manager: <https://ads.tiktok.com/>
{% endstep %}

{% step %}

### Find your Assets

Go to Tools and open Assets.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2Fl2IP3lDtFvAseaxxFBWM%2Fimage.png?alt=media&amp;token=04c7c660-7abf-45a5-8699-60ec873efa43" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Open the Events Manager

Select the correct pixel and open the pixel in Events Manager.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FuKeaQ1IzuwhGMGgjj7Mc%2Fimage.png?alt=media&amp;token=49b9216e-5aab-47a9-8c9f-cc5080a0be1b" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Generate the API Token

Open the settings of your pixel. Here you can find the button to generate the Access Token for the Events API.

<figure><img src="https://1274044937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FHhqKuKEnEfpHeRGF586N%2Fimage.png?alt=media&amp;token=80a8247b-0aa3-416d-8902-05f637f845ea" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.adpage.io/integrations-marketingtools/tiktok-ads/where-to-find-the-tiktok-pixel-id-and-the-tiktok-api-token.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
