How to enable Server-Side API for Tiktok pixel and Using Test Event Code
Improve your ad performance, enhance tracking accuracy, and lower your cost per action by setting up TikTok’s Conversions API for your Pixel. This guide provides step-by-step instructions on enabling the Conversions API using an access token and testing events with a test event code.
What is Server-Side Api for TikTok Pixel?
Why Use Server-Side API for Tiktok Pixel?
Step-By-Step Guide.
Enable Server-Side API
Use Test Event Code to Verify Tracking.
In TikTok Ads Manager, under the Events section, the Server-Side API (SAPI) — also referred to as the Events API — is a method that allows advertisers to send conversion events directly from their servers to TikTok, bypassing the need for browser-based or pixel-based tracking. Please refer to this article for information.
By integrating SAPI, you’ll benefit from:
More Reliable Tracking: Not affected by browser limitations or ad blockers.
Enhanced Attribution: TikTok can more accurately link conversions to ads.
Supports iOS 14+ Privacy Updates: Helps mitigate signal loss due to ATT (App Tracking Transparency).
You need to have a Tiktok access token to turn on the Server-Side API. Let me show you how to find it.
Go to TikTok Ads Manager
From Tiktik Ads Manager dashboard and click Tool then choose Events

Choose Pixel ID to get event API access token

Go to Settings tab then scroll down to the bottom to Access Token Generation section

Click Generate Access Token

Copy the Access Token shown there and go back to our app.

Edit > enable Server-side API > enter the Tiktok access token > Save to complete the process.

After enabling Server-side API, please click into the Test events tab, kindly copy the test event code.

Then please come back to our app > Edit > enter the test event code > Save to complete the process.

After that, please enter your website URL and click Generate QR code.

Use a device to scan QR code .

Your Website will popup events . Interact with your website to see if events are triggering correctly.

⚠️ Remove the Test Event Code after testing. Otherwise, real user activity will not appear correctly in your Pixel’s Overview.
✅ Feature Availability: The Server-Side API integration is available on Standard, Professional, and Advanced plans only.
Need Help?
Enabling TikTok’s Server-Side API is a key step toward achieving accurate data tracking and more intelligent advertising. By following this guide, you’ll enhance ad optimization—even in a privacy-first digital landscape. Now that everything is set up, it’s time to maximize the value of your marketing data.
If you have any further questions about this, don't hesitate to contact us via in-app live chat or email at support@socialhead.io.
Table of Contents
What is Server-Side Api for TikTok Pixel?
Why Use Server-Side API for Tiktok Pixel?
Step-By-Step Guide.
Enable Server-Side API
Use Test Event Code to Verify Tracking.
1. What is Server-Side Api for TikTok Pixel?
In TikTok Ads Manager, under the Events section, the Server-Side API (SAPI) — also referred to as the Events API — is a method that allows advertisers to send conversion events directly from their servers to TikTok, bypassing the need for browser-based or pixel-based tracking. Please refer to this article for information.
2. Why User Server-Side API for Tiktok Pixel?
By integrating SAPI, you’ll benefit from:
More Reliable Tracking: Not affected by browser limitations or ad blockers.
Enhanced Attribution: TikTok can more accurately link conversions to ads.
Supports iOS 14+ Privacy Updates: Helps mitigate signal loss due to ATT (App Tracking Transparency).
3.Step-By-Step Guide
Enable Server-Side API.
You need to have a Tiktok access token to turn on the Server-Side API. Let me show you how to find it.
Go to TikTok Ads Manager
From Tiktik Ads Manager dashboard and click Tool then choose Events

Choose Pixel ID to get event API access token

Go to Settings tab then scroll down to the bottom to Access Token Generation section

Click Generate Access Token

Copy the Access Token shown there and go back to our app.

Edit > enable Server-side API > enter the Tiktok access token > Save to complete the process.

Use Test Event Code to Verify Tracking.
After enabling Server-side API, please click into the Test events tab, kindly copy the test event code.

Then please come back to our app > Edit > enter the test event code > Save to complete the process.

After that, please enter your website URL and click Generate QR code.

Use a device to scan QR code .

Your Website will popup events . Interact with your website to see if events are triggering correctly.

Important Notes
⚠️ Remove the Test Event Code after testing. Otherwise, real user activity will not appear correctly in your Pixel’s Overview.
✅ Feature Availability: The Server-Side API integration is available on Standard, Professional, and Advanced plans only.
Need Help?
Enabling TikTok’s Server-Side API is a key step toward achieving accurate data tracking and more intelligent advertising. By following this guide, you’ll enhance ad optimization—even in a privacy-first digital landscape. Now that everything is set up, it’s time to maximize the value of your marketing data.
If you have any further questions about this, don't hesitate to contact us via in-app live chat or email at support@socialhead.io.
Updated on: 18/06/2025
Thank you!