The TikTok Events API is TikTok's server interface for receiving conversion events. Your server sends events such as CompletePayment or SubmitForm straight to TikTok, instead of relying only on the TikTok Pixel in the browser. TikTok uses the events for reporting, attribution, and campaign optimization.
Events API 2.0 accepts four event sources in one endpoint: web, app, offline, and crm.
How does the TikTok Events API work?
Your server sends a POST to https://business-api.tiktok.com/open_api/v1.3/event/track/ with an Access-Token header. The body names the source and the events.
event_source, such asweb, andevent_source_id, which for web events is the Pixel code.- A
dataarray. Each item hasevent,event_time(Unix seconds, UTC), and anevent_id. - A
userobject with hashedemailandphone, plusexternal_id,ttclid,ttp(the_ttpfirst-party cookie value),ip, anduser_agent. - A
propertiesobject with fields such asvalue,currency, andcontent_type.
TikTok's event deduplication documentation says it deduplicates on event_source_id, event, and event_id. It keeps the first event and discards later copies received within 48 hours. If a copy arrives within 5 minutes, TikTok attempts to merge its extra data into the first one.
A concrete example
A shopper lands from a TikTok ad with ttclid=E.C.P.abc123 in the URL. Your site stores it. At checkout the Pixel calls ttq.track('CompletePayment', ...) with event_id set to the order number 5530. Your server sends the same CompletePayment with event_id 5530, the stored ttclid, and the hashed email. TikTok counts one purchase and has better data to match it to the ad.
Why it matters
Browser delivery fails for ordinary reasons: a blocked request, a slow page, a tab closed before the Pixel fires. A server path keeps confirmed events flowing, and it is the only path for outcomes that never touch a browser, such as a CRM lead marked qualified.
Common pitfalls
- Different IDs on each path. If the Pixel uses a random ID and the server uses the order number, TikTok counts two conversions and cost per result looks better than it is.
- Mixing deduplication methods. TikTok's cookie-based deduplication on
_ttponly applies when the server event has noevent_id, and it uses a 5 minute window. Pick one method per event. - Losing the
ttclid. If it is not stored at landing, it cannot be sent later. - Sending events without consent. The server must follow the same consent choice the browser received.
How Hardal helps
Hardal is the first-party data and agentic analytics platform. It sends server-side events to the TikTok Events API with one event ID per action, and can serve collection from your own domain. For setup steps, read TikTok DNS Setup: First-Party Domain for Events API and the TikTok Events API Gateway setup.
Related terms: Event deduplication, Server-to-server, First-party data, Meta Conversions API
Frequently asked questions
Do I need both the TikTok Pixel and the Events API?
TikTok recommends both for the best data coverage. The Pixel sees browser context and the Events API sends events your server confirms. When both report the same action, set up deduplication so TikTok counts it once.
How does TikTok deduplicate Pixel and Events API events?
TikTok matches the event_source_id, the event name, and the event_id. It keeps the first event and discards later copies received within 48 hours. If a copy arrives within 5 minutes, TikTok tries to merge its extra fields, such as a hashed email, into the first event.
What is the ttclid?
The ttclid is the click ID TikTok adds to the landing URL when someone clicks an ad. Store it when the visitor lands and send it with later server events so TikTok can connect the conversion to the click.
Which fields should be hashed for the TikTok Events API?
Hash the email and the phone number with SHA-256 after normalizing them. Format the phone number in E.164 first. Click IDs, the IP address, and the user agent are sent as they are.
Is the TikTok Events API the same as the Events API Gateway?
No. The Events API is the endpoint. A gateway is a packaged server that sends events to that endpoint on your behalf.