Meta (Facebook) Conversions
This guide covers how to submit offline conversions to Meta (Facebook) through the TNT Growth API.
Authentication
All requests require an x-api-key header with your client-specific API key provided by TNT Growth.
-H "x-api-key: YOUR_API_KEY"
Submitting a Conversion
Endpoint
POST /api/meta/conversions/add
Request Body Schema
| Field | Type | Required | Description |
|---|---|---|---|
metaPixelId | string | Yes | Your Meta Pixel ID (provided during onboarding) |
eventName | string | Yes | The conversion event name (e.g. Purchase, Lead) |
eventTime | number | No | Unix timestamp (seconds) of when the event occurred |
actionSource | string | No | Where the event originated — website or phone_call |
eventSourceUrl | string | No | The URL where the event took place |
eventId | string | No | A unique ID for deduplication (recommended) |
testEventCode | string | No | Meta test event code for verifying in Events Manager |
userData | object | No | Customer identifiers for matching (see below) |
customData | object | No | Key-value pairs for conversion details (e.g. value, currency) |
tntId | string | No | The attribution handle from the pixel. A resolved session fills userData.fbc, userData.fbp, userData.clientIpAddress, userData.clientUserAgent and any missing UTM fields |
utmSource | string | No | UTM source parameter (e.g. facebook) — stored for attribution reporting, and also decides delivery when it names a different paid platform. See When we withhold a conversion |
utmMedium | string | No | UTM medium parameter (e.g. cpc) — stored for attribution reporting |
utmCampaign | string | No | UTM campaign name — stored for attribution reporting |
utmTerm | string | No | UTM search keyword — stored for attribution reporting |
utmContent | string | No | UTM content parameter (ad/creative variant) — stored for attribution reporting |
User Data Fields
Include as many identifiers as possible to improve match quality.
| Field | Type | Description |
|---|---|---|
email | string | Customer email address |
phone | string | Customer phone number |
firstName | string | Customer first name |
lastName | string | Customer last name |
clientIpAddress | string | IP address of the customer |
clientUserAgent | string | Browser user agent string |
fbp | string | Facebook browser pixel cookie |
fbc | string | Facebook click ID cookie |
city | string | Customer city |
state | string | Customer state or region |
country | string | Customer country (ISO 3166-1 alpha-2) |
postal_code | string | Customer postal/ZIP code |
Example Request
curl -X POST https://flex.tntgrowth.io/api/meta/conversions/add \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"metaPixelId": "123456789012345",
"eventName": "Purchase",
"eventTime": 1778043599,
"actionSource": "website",
"eventSourceUrl": "https://example.com/thank-you",
"eventId": "order-12345",
"userData": {
"email": "customer@example.com",
"phone": "+15551234567",
"firstName": "Jane",
"lastName": "Doe",
"fbc": "fb.1.1612345678.AbCdEfG"
},
"customData": {
"value": 150,
"currency": "USD"
},
"tntId": "9f2b7c1e-4d3a-4f8b-9c2e-1a5d7e0b4c63",
"utmSource": "facebook",
"utmMedium": "paid-social",
"utmCampaign": "retargeting-q2",
"utmTerm": "rehab-centers",
"utmContent": "carousel-ad-variant-b"
}'
Example Response
{
"message": "Conversion successfully queued for Example Client",
"data": {
"submissionId": "8f3c2d10-7e6b-4a51-9d8c-3b2e1f0a9b8c"
}
}
Checking Submission Status
After submitting a conversion, use the submission ID to check processing status.
Endpoint
GET /api/conversions/submissions/:submissionId
Example Request
curl https://flex.tntgrowth.io/api/conversions/submissions/8f3c2d10-7e6b-4a51-9d8c-3b2e1f0a9b8c \
-H "x-api-key: YOUR_API_KEY"
Example Response
{
"id": "8f3c2d10-7e6b-4a51-9d8c-3b2e1f0a9b8c",
"source": "META",
"externalAccountId": "123456789012345",
"expectedCount": 1,
"createdAt": "2026-05-11T12:00:00.000Z",
"scheduledFor": null,
"counts": {
"success": 1,
"failed": 0
},
"status": "complete"
}
Status Values
| Status | Description |
|---|---|
pending | Conversion is queued and waiting to be processed |
pending_delivery | Submission is scheduled for future delivery — the scheduledFor field carries the ISO-8601 fire timestamp. Currently only emitted by Google Ads ingest paths; Meta submissions never enter this state. |
complete | Every conversion reached a final outcome and none was rejected. Usually means all were delivered — but a withheld conversion also finishes here, so compare counts.success with expectedCount if you need delivery confirmed |
complete_with_errors | Processing finished but some conversions failed — use GET /api/conversions/meta/failed?submissionId=<id> to fetch the actual error messages |
stalled | Processing has not progressed — contact support |
Withheld Conversions
A conversion is withheld when its attribution says another paid channel served the click — a utmSource naming
a different platform, with no Meta click ID beside it. Uploading it would train Meta's bidding on traffic
Meta never sent, so we hold it back instead. The full rules, and the utm_source values that count as a claim,
are in When we withhold a conversion from a platform.
When TNT Growth has set your account to send Meta only click-attributed conversions, a conversion with no Meta
click ID (userData.fbc, sent directly or recovered from tntId) is withheld as well, whatever its
utmSource. Those entries carry "reason": "click_id_required" and no claimedPlatform.
This is not an error. A withheld pair appears in counts.withheld, is excluded from counts.success, and
never counts as failed — failed means the platform rejected it. A submission whose only non-delivered pairs
were withheld finishes as complete, so compare counts.success with expectedCount if you need delivery
confirmed.
{
"expectedCount": 2,
"counts": {
"success": 1,
"failed": 0,
"withheld": 1
},
"withheld": [
{
"reason": "cross_channel",
"claimedPlatform": "google",
"count": 1
}
],
"status": "complete"
}
Both counts.withheld and the withheld array are present only when something was withheld, so a submission
with nothing withheld returns exactly the shape it always has. Each entry carries reason (cross_channel,
click_id_required, or other for a reason not documented here), claimedPlatform on cross_channel entries
only (google, meta, bing, tiktok, linkedin, reddit or openai), and count; the entries sum to
counts.withheld. Nothing is discarded — the payload is kept, so a withheld conversion can still be delivered
later if your tagging or the rules change. Re-sending the same payload will be withheld again; send the Meta
click ID and it is delivered, whatever utmSource says.
The scheduledFor field is always null for Meta submissions and is included only for schema parity with Google Ads, which uses it for deferred delivery.
Inspecting Failed Conversions In Your Batch
When a submission ends with complete_with_errors, the submission status endpoint surfaces only the count of failed rows. Fetch the actual error messages with:
GET /api/conversions/meta/failed?submissionId=<submissionId>
The response payload mirrors the Google Ads failed-conversion shape — see Google Ads → Inspecting Failed Conversions In Your Batch.
Common Event Names
| Event Name | When to send |
|---|---|
Purchase | Customer completes a purchase |
Lead | Customer submits a lead form |
AddToCart | Customer adds an item to their cart |
ViewContent | Customer views a key page (e.g. pricing, product) |
AddPaymentInfo | Customer enters payment information |
InitiateCheckout | Customer begins the checkout process |
CompleteRegistration | Customer completes account registration |
Best Practices
- Include
eventIdfor deduplication — Flex suppresses another send when that event ID is already in progress or recorded as delivered for the same client and pixel. See duplicate submissions and resends. - Send
userDatawith as many identifiers as possible to maximize match rates - Use accurate timestamps —
eventTimeshould reflect when the event actually occurred, not when you're sending it - Include
fbpandfbccookies when available — these provide the strongest matching signal for web events - Poll with a delay — wait 30-60 seconds after submission before checking status
- Events older than 7 days will be permanently rejected by Meta
- Send
tntIdwhen your backend has it — the attribution handle recovers the click ID and UTMs captured on the visitor's original ad click, which is often the only thing that attributes an offline conversion at all