Foundations 3 min read

What Is the TikTok Events API? Server-Side Tracking for TikTok Ads

Last verified: 2026-11-07

The TikTok Events API is TikTok’s server-side tracking interface for sending conversion events directly from your server to TikTok Ads. It’s the TikTok equivalent of Meta’s Conversions API (CAPI) — enabling offline conversion tracking, bypassing ad blockers, and providing reliable data in privacy-restricted environments.

For The Upload Offline Conversions App (TUOCA), the TikTok Events API is the mechanism for uploading offline conversions — phone calls that turned into booked jobs, CRM leads that became customers — back to TikTok Ads for campaign optimization.

How the Events API Works

Your Server → HTTPS POST → TikTok Events API → TikTok Ads
                                                    ↓
                                            Conversion attributed
                                            to the ad that drove it

API Endpoint

POST https://business-api.tiktok.com/open_api/v1.3/event/track/

Event Payload

{
  "event_source": "web",
  "event_source_id": "PIXEL_ID",
  "data": [{
    "event": "CompletePayment",
    "event_time": 1714502400,
    "event_id": "job-2026-001",
    "user": {
      "ttclid": "E.C.P.AbCdEf123...",
      "email": "a8b14f04b2be6c5f...",
      "phone": "d4f5c3b1e72a9f8d...",
      "ip": "192.168.1.1",
      "user_agent": "Mozilla/5.0..."
    },
    "properties": {
      "value": 4500.00,
      "currency": "USD",
      "content_type": "product"
    }
  }]
}

Supported Event Types

EventUse CaseOffline Relevance
ViewContentPage viewLow
AddToCartProduct interestLow
InitiateCheckoutBeginning purchaseLow
AddPaymentInfoPayment stepLow
PlaceAnOrderJob/service booked★★★★★
CompletePaymentJob completed, invoice paid★★★★★
ContactPhone call, inquiry★★★★
SubmitFormLead form submitted★★★★
SubscribeService agreement signed★★★
DownloadResource downloaded★★

For offline conversion tracking, PlaceAnOrder (booked job) and CompletePayment (completed/invoiced) are the most relevant events.

User Data Matching

The Events API uses the TTCLID and hashed PII for matching:

FieldRequiredFormatMatch Priority
ttclidRecommendedRaw TTCLID string★★★★★
emailRecommendedSHA-256 hashed, lowercase★★★★
phoneRecommendedSHA-256 hashed, E.164★★★★
ipOptionalRaw IP address★★★
user_agentOptionalRaw user agent string★★
external_idOptionalSHA-256 hashed CRM ID★★

Best practice: Send the TTCLID plus hashed email and phone for maximum match rates.

Events API vs. Meta CAPI Comparison

FeatureTikTok Events APIMeta Conversions API
Event windowKeep the click ID at least 28 days7 days after the event
Click identifierTTCLIDFBCLID/fbc
Deduplication keyevent_idevent_id
User data hashingSHA-256SHA-256
Batch uploadUp to 1,000 events/requestUp to 1,000 events/request
Rate limit1,000 events per request1,000 events per request
Action source fieldNot requiredRequired

Setting Up the Events API

Step 1: Create a Pixel

  1. Go to TikTok Ads Manager → Assets → Events → Web Events
  2. Click Create Pixel
  3. Name your pixel and select Manual Setup
  4. Note the Pixel ID — you’ll need it for API calls

Step 2: Generate Access Token

  1. In Events settings, click Generate Access Token
  2. Copy and securely store the token
  3. The token is included in the Access-Token request header

Step 3: Test Your Integration

TikTok provides a Test Events tool in Ads Manager:

  1. Go to Assets → Events → Web Events → your pixel → Test Events
  2. Send test events via the API
  3. Verify they appear in the test console

How TUOCA Uses the Events API

TUOCA’s TikTok integration handles the full Events API pipeline:

  1. Authentication — Securely stores your Pixel ID and access token
  2. Data extraction — Pulls conversions from your data sources
  3. Event mapping — Maps your conversion types to TikTok event names (e.g., “Booked Job” → PlaceAnOrder)
  4. User data processing — Normalizes and SHA-256 hashes email and phone
  5. TTCLID inclusion — Includes the TTCLID when available from call tracking
  6. Batch upload — Sends events in batches to the Events API
  7. Deduplication — Generates consistent event_id values for safe retries
  8. Error handling — Catches and logs API errors

Next Steps

  1. Create a TikTok Pixel and generate an access token
  2. Enable TTCLID auto-tracking in your pixel settings
  3. Configure TUOCA with your TikTok pixel as a destination
  4. Read the full guide — TikTok Offline Conversions Guide

Frequently Asked Questions

The TikTok Pixel is JavaScript that runs in the user's browser to track online events. The Events API is a server-side endpoint that receives events from your server without browser involvement. The Pixel captures real-time web events, while the Events API handles offline events, server-side events, and provides a privacy-resilient alternative to browser tracking.

TikTok asks you to keep the click ID for at least 28 days and expires it on the attribution window you set, so keep the ID from a March 1 click through at least March 29 and send the job while that window is still open. There is no second rule that throws the event out at 28 days.

Authentication requires a TikTok Business account, a Pixel ID, and an access token generated in the TikTok Ads Manager under Assets > Events > Manage > Settings. The access token is included in the API request header.

Yes. TUOCA integrates with the TikTok Events API as a destination. When you connect your TikTok Ads account, TUOCA handles authentication, event formatting, user data hashing, and deduplication. Offline conversions from your data sources are automatically formatted and sent to TikTok's Events API.

Stop Guessing. Start Proving ROI.

TUOCA connects your CRM and call tracking data directly to your ad platforms. Set up in minutes.