> Site index: https://usehardal.com/llms.txt
> Every content route also serves markdown at <url>.md

# What Is the TikTok Events API?

The TikTok Events API lets a server send web, app, offline, and CRM events to TikTok. Shared event IDs let TikTok deduplicate them against the TikTok Pixel.

Source: https://usehardal.com/glossary/tiktok-events-api

---

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 as `web`, and `event_source_id`, which for web events is the Pixel code.
- A `data` array. Each item has `event`, `event_time` (Unix seconds, UTC), and an `event_id`.
- A `user` object with hashed `email` and `phone`, plus `external_id`, `ttclid`, `ttp` (the `_ttp` first-party cookie value), `ip`, and `user_agent`.
- A `properties` object with fields such as `value`, `currency`, and `content_type`.

TikTok's [event deduplication documentation](https://business-api.tiktok.com/portal/docs/event-deduplication/v1.3) 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 `_ttp` only applies when the server event has no `event_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](https://usehardal.com/destinations/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](https://usehardal.com/how-to-set-up-first-party-domain-for-tiktok-eapi) and the [TikTok Events API Gateway setup](https://usehardal.com/tiktok-events-api-gateway-hardal-setup).

**Related terms:** [Event deduplication](https://usehardal.com/glossary/event-deduplication), [Server-to-server](https://usehardal.com/glossary/server-to-server), [First-party data](https://usehardal.com/glossary/first-party-data), [Meta Conversions API](https://usehardal.com/glossary/meta-conversions-api)
