Send conversion events to Meta
Sends one bounded batch to the connected Meta account. eventId is the provider deduplication key. Plaintext identity fields are accepted only so the adapter can normalize and hash them; they are never echoed in an error or persisted in the Idempotency-Key replay request.
Authentication
The following security requirement applies to this operation.
Read the authentication guideParameters
Idempotency-KeyheaderrequiredRequired client-generated retry key for this exact conversion batch.
Idempotency-Keystringrequired- maxLength
255
Original schema
{
"type": "string",
"maxLength": 255
}Request body
Bodyobjectrequired
- additionalProperties
false- required
[ "accountId", "adAccountId", "destinationId", "events" ]
accountIdstringrequiredConnected Facebook account id used to resolve the Meta token.
- pattern
^[0-9a-f]{24}$- maxLength
24
adAccountIdstringrequiredMeta ad account whose promote_pages edge authorizes the selected Page and whose adspixels edge contains the destination.
- pattern
^act_[1-9]\d{0,19}$
destinationIdstringrequiredMeta pixel/dataset id.
- pattern
^[1-9][0-9]{0,19}$- maxLength
20
eventsarrayrequired
- minItems
1- maxItems
1000
Array itemobject
- additionalProperties
false- required
[ "eventName", "eventTime", "eventId", "user" ]
eventNamestringrequired- maxLength
128
eventTimenumberrequiredUnix seconds.
eventIdstringrequiredStable provider-side deduplication key.
- maxLength
256
valuenumbercurrencystring- enum
[ "AED", "AFN", "ALL", "AMD", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRU", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLE", "SOS", "SRD", "SSP", "STN", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "USN", "UYI", "UYU", "UYW", "UZS", "VED", "VES", "VND", "VUV", "WST", "XAD", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XCG", "XDR", "XOF", "XPD", "XPF", "XPT", "XSU", "XTS", "XUA", "XXX", "YER", "ZAR", "ZMW", "ZWG" ]
userobjectrequired
- additionalProperties
false
emailstringPlaintext email; SHA-256 hashed by the adapter.
- maxLength
512
phonestringPlaintext phone; SHA-256 hashed by the adapter.
- maxLength
512
firstNamestring- maxLength
512
lastNamestring- maxLength
512
externalIdstring- maxLength
512
ipAddressstring- maxLength
512
userAgentstringRequired when actionSource is web (the default): the platform documents client_user_agent as required for website events, and this API refuses a website event without it rather than letting the platform quietly downgrade the match.
- maxLength
2048
countrystring- maxLength
512
citystring- maxLength
512
statestring- maxLength
512
zipstring- maxLength
512
dobstring- maxLength
512
genderstring- maxLength
512
leadIdstring- maxLength
512
clickIdsobject
- additionalProperties
false
fbcstring- maxLength
512
fbpstring- maxLength
512
itemsarray
- maxItems
100
Array itemobject
- additionalProperties
false- required
[ "id" ]
idstringrequired- maxLength
256
namestring- maxLength
512
pricenumberquantitynumbercategorystring- maxLength
512
sourceUrlstringRequired when actionSource is web (the default): the platform documents event_source_url as required for website events, and this API refuses a website event without it rather than letting the platform quietly downgrade the match.
- format
uri- maxLength
2048
actionSourcestring- enum
[ "web", "app", "offline", "crm", "phone_call", "system_generated" ]
appDataallOf
Required only when actionSource is app; rejected for every other source.
allOf / 1object
- additionalProperties
false- required
[ "advertiserTrackingEnabled", "extInfo" ]
advertiserTrackingEnabledbooleanrequiredapplicationTrackingEnabledbooleanextInfoarrayrequired
Meta app extinfo tuple. Slot 0 is a2/i2; slot 4 is the OS value; device metric slots use their string wire values and unavailable slots use an empty string.
- minItems
16- maxItems
16
Array itemstring- maxLength
128
platformDataobjectProvider-specific custom data; bounded recursively and limited to 32768 encoded bytes.
- additionalProperties
true- maxProperties
64
testCodestringMeta test_event_code passthrough.
- maxLength
64
consentobject
- additionalProperties
false
adUserDatastring- enum
[ "GRANTED", "DENIED" ]
adPersonalizationstring- enum
[ "GRANTED", "DENIED" ]
Original schema
{
"$ref": "#/components/schemas/SendAdConversionsDto"
}Responses
Status codes and shapes declared for this operation. Read each description for the meaning of that response.
200Response schema
Response 200object
- additionalProperties
false- required
[ "platform", "eventsReceived", "eventsFailed", "failures" ]
platformstringrequired- enum
[ "metaads" ]
eventsReceivednumberrequiredeventsFailednumberrequiredfailuresarrayrequired
Array itemobject
- additionalProperties
false- required
[ "eventIndex", "message" ]
eventIndexnumberrequiredeventIdstringmessagestringrequiredcodeoneOf
oneOf / 1stringoneOf / 2integertraceIdstringOriginal schema
{
"$ref": "#/components/schemas/SendAdConversionsResponseDto"
}400Response schema
Response 400object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}401Response schema
Response 401object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}403Response schema
Response 403object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}404Response schema
Response 404object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}409Response schema
Response 409object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}422Response schema
Response 422object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}429Response schema
Response 429object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}Response headers
X-RateLimit-Limit
Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.
X-RateLimit-Limitinteger- minimum
1
Original schema
{
"type": "integer",
"minimum": 1
}X-RateLimit-Remaining
Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.
X-RateLimit-Remaininginteger- minimum
0
Original schema
{
"type": "integer",
"minimum": 0
}X-RateLimit-Reset
Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.
X-RateLimit-Resetinteger- format
int64- minimum
0
Original schema
{
"type": "integer",
"format": "int64",
"minimum": 0
}Retry-After
Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.
Retry-Afterinteger- minimum
1- maximum
86400
Original schema
{
"type": "integer",
"minimum": 1,
"maximum": 86400
}500Server error
Server error
Response 500object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}501Response schema
Response 501object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}502Platform error
Platform error
Response 502object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}503Service unavailable
Service unavailable
Response 503object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}Referenced schemas
Original local definitions used by this operation. Recursive and deeply nested references can be inspected here without expanding them repeatedly.
SendAdConversionsDto
#/components/schemas/SendAdConversionsDto
{
"type": "object",
"properties": {
"accountId": {
"type": "string",
"description": "Connected Facebook account id used to resolve the Meta token.",
"pattern": "^[0-9a-f]{24}$",
"maxLength": 24
},
"adAccountId": {
"type": "string",
"description": "Meta ad account whose promote_pages edge authorizes the selected Page and whose adspixels edge contains the destination.",
"pattern": "^act_[1-9]\\d{0,19}$"
},
"destinationId": {
"type": "string",
"description": "Meta pixel/dataset id.",
"pattern": "^[1-9][0-9]{0,19}$",
"maxLength": 20
},
"events": {
"minItems": 1,
"maxItems": 1000,
"type": "array",
"items": {
"$ref": "#/components/schemas/AdConversionEventDto"
}
},
"testCode": {
"type": "string",
"description": "Meta test_event_code passthrough.",
"maxLength": 64
},
"consent": {
"$ref": "#/components/schemas/AdConversionConsentDto"
}
},
"additionalProperties": false,
"required": [
"accountId",
"adAccountId",
"destinationId",
"events"
]
}AdConversionEventDto
#/components/schemas/AdConversionEventDto
{
"type": "object",
"properties": {
"eventName": {
"type": "string",
"maxLength": 128
},
"eventTime": {
"type": "number",
"description": "Unix seconds."
},
"eventId": {
"type": "string",
"description": "Stable provider-side deduplication key.",
"maxLength": 256
},
"value": {
"type": "number"
},
"currency": {
"type": "string",
"enum": [
"AED",
"AFN",
"ALL",
"AMD",
"AOA",
"ARS",
"AUD",
"AWG",
"AZN",
"BAM",
"BBD",
"BDT",
"BHD",
"BIF",
"BMD",
"BND",
"BOB",
"BOV",
"BRL",
"BSD",
"BTN",
"BWP",
"BYN",
"BZD",
"CAD",
"CDF",
"CHE",
"CHF",
"CHW",
"CLF",
"CLP",
"CNY",
"COP",
"COU",
"CRC",
"CUP",
"CVE",
"CZK",
"DJF",
"DKK",
"DOP",
"DZD",
"EGP",
"ERN",
"ETB",
"EUR",
"FJD",
"FKP",
"GBP",
"GEL",
"GHS",
"GIP",
"GMD",
"GNF",
"GTQ",
"GYD",
"HKD",
"HNL",
"HTG",
"HUF",
"IDR",
"ILS",
"INR",
"IQD",
"IRR",
"ISK",
"JMD",
"JOD",
"JPY",
"KES",
"KGS",
"KHR",
"KMF",
"KPW",
"KRW",
"KWD",
"KYD",
"KZT",
"LAK",
"LBP",
"LKR",
"LRD",
"LSL",
"LYD",
"MAD",
"MDL",
"MGA",
"MKD",
"MMK",
"MNT",
"MOP",
"MRU",
"MUR",
"MVR",
"MWK",
"MXN",
"MXV",
"MYR",
"MZN",
"NAD",
"NGN",
"NIO",
"NOK",
"NPR",
"NZD",
"OMR",
"PAB",
"PEN",
"PGK",
"PHP",
"PKR",
"PLN",
"PYG",
"QAR",
"RON",
"RSD",
"RUB",
"RWF",
"SAR",
"SBD",
"SCR",
"SDG",
"SEK",
"SGD",
"SHP",
"SLE",
"SOS",
"SRD",
"SSP",
"STN",
"SVC",
"SYP",
"SZL",
"THB",
"TJS",
"TMT",
"TND",
"TOP",
"TRY",
"TTD",
"TWD",
"TZS",
"UAH",
"UGX",
"USD",
"USN",
"UYI",
"UYU",
"UYW",
"UZS",
"VED",
"VES",
"VND",
"VUV",
"WST",
"XAD",
"XAF",
"XAG",
"XAU",
"XBA",
"XBB",
"XBC",
"XBD",
"XCD",
"XCG",
"XDR",
"XOF",
"XPD",
"XPF",
"XPT",
"XSU",
"XTS",
"XUA",
"XXX",
"YER",
"ZAR",
"ZMW",
"ZWG"
]
},
"user": {
"$ref": "#/components/schemas/AdConversionUserDto"
},
"items": {
"maxItems": 100,
"type": "array",
"items": {
"$ref": "#/components/schemas/AdConversionItemDto"
}
},
"sourceUrl": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Required when actionSource is web (the default): the platform documents event_source_url as required for website events, and this API refuses a website event without it rather than letting the platform quietly downgrade the match."
},
"actionSource": {
"type": "string",
"enum": [
"web",
"app",
"offline",
"crm",
"phone_call",
"system_generated"
]
},
"appData": {
"description": "Required only when actionSource is app; rejected for every other source.",
"allOf": [
{
"$ref": "#/components/schemas/AdConversionAppDataDto"
}
]
},
"platformData": {
"type": "object",
"additionalProperties": true,
"maxProperties": 64,
"description": "Provider-specific custom data; bounded recursively and limited to 32768 encoded bytes."
}
},
"additionalProperties": false,
"required": [
"eventName",
"eventTime",
"eventId",
"user"
]
}AdConversionUserDto
#/components/schemas/AdConversionUserDto
{
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "Plaintext email; SHA-256 hashed by the adapter.",
"maxLength": 512
},
"phone": {
"type": "string",
"description": "Plaintext phone; SHA-256 hashed by the adapter.",
"maxLength": 512
},
"firstName": {
"type": "string",
"maxLength": 512
},
"lastName": {
"type": "string",
"maxLength": 512
},
"externalId": {
"type": "string",
"maxLength": 512
},
"ipAddress": {
"type": "string",
"maxLength": 512
},
"userAgent": {
"type": "string",
"maxLength": 2048,
"description": "Required when actionSource is web (the default): the platform documents client_user_agent as required for website events, and this API refuses a website event without it rather than letting the platform quietly downgrade the match."
},
"country": {
"type": "string",
"maxLength": 512
},
"city": {
"type": "string",
"maxLength": 512
},
"state": {
"type": "string",
"maxLength": 512
},
"zip": {
"type": "string",
"maxLength": 512
},
"dob": {
"type": "string",
"maxLength": 512
},
"gender": {
"type": "string",
"maxLength": 512
},
"leadId": {
"type": "string",
"maxLength": 512
},
"clickIds": {
"$ref": "#/components/schemas/AdConversionClickIdsDto"
}
},
"additionalProperties": false
}AdConversionClickIdsDto
#/components/schemas/AdConversionClickIdsDto
{
"type": "object",
"properties": {
"fbc": {
"type": "string",
"maxLength": 512
},
"fbp": {
"type": "string",
"maxLength": 512
}
},
"additionalProperties": false
}AdConversionItemDto
#/components/schemas/AdConversionItemDto
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 256
},
"name": {
"type": "string",
"maxLength": 512
},
"price": {
"type": "number"
},
"quantity": {
"type": "number"
},
"category": {
"type": "string",
"maxLength": 512
}
},
"additionalProperties": false,
"required": [
"id"
]
}AdConversionAppDataDto
#/components/schemas/AdConversionAppDataDto
{
"type": "object",
"properties": {
"advertiserTrackingEnabled": {
"type": "boolean"
},
"applicationTrackingEnabled": {
"type": "boolean"
},
"extInfo": {
"type": "array",
"minItems": 16,
"maxItems": 16,
"items": {
"type": "string",
"maxLength": 128
},
"description": "Meta app extinfo tuple. Slot 0 is a2/i2; slot 4 is the OS value; device metric slots use their string wire values and unavailable slots use an empty string."
}
},
"additionalProperties": false,
"required": [
"advertiserTrackingEnabled",
"extInfo"
]
}AdConversionConsentDto
#/components/schemas/AdConversionConsentDto
{
"type": "object",
"properties": {
"adUserData": {
"type": "string",
"enum": [
"GRANTED",
"DENIED"
]
},
"adPersonalization": {
"type": "string",
"enum": [
"GRANTED",
"DENIED"
]
}
},
"additionalProperties": false
}SendAdConversionsResponseDto
#/components/schemas/SendAdConversionsResponseDto
{
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"metaads"
]
},
"eventsReceived": {
"type": "number"
},
"eventsFailed": {
"type": "number"
},
"failures": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AdConversionFailureDto"
}
},
"traceId": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"platform",
"eventsReceived",
"eventsFailed",
"failures"
]
}AdConversionFailureDto
#/components/schemas/AdConversionFailureDto
{
"type": "object",
"properties": {
"eventIndex": {
"type": "number"
},
"eventId": {
"type": "string"
},
"message": {
"type": "string"
},
"code": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
}
},
"additionalProperties": false,
"required": [
"eventIndex",
"message"
]
}ZumpoErrorDto
#/components/schemas/ZumpoErrorDto
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Human-readable message. UNSTABLE — do not branch on it.",
"example": "WhatsApp session window expired; use a template message."
},
"type": {
"type": "string",
"description": "Stable error category (does not change across versions).",
"enum": [
"invalid_request_error",
"authentication_error",
"permission_error",
"not_found",
"conflict",
"rate_limit_error",
"platform_error",
"platform_rejected",
"account_disconnected",
"media_error",
"api_error"
],
"example": "invalid_request_error"
},
"code": {
"type": "string",
"description": "Stable machine-readable code.",
"example": "whatsapp_window_expired"
},
"param": {
"type": "string",
"description": "Offending parameter, present only when relevant.",
"example": "body"
},
"docUrl": {
"type": "string",
"description": "https://docs.zumpo.io/errors/{code}",
"example": "https://docs.zumpo.io/errors/whatsapp_window_expired"
},
"requestId": {
"type": "string",
"description": "Support correlation id: req_ + 16 hex.",
"example": "req_7f3a9c2e1b8d4056"
},
"details": {
"type": "object",
"additionalProperties": true,
"description": "Additional structured context, present only when an error has more to say than a single `param` can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.",
"example": {
"created": [
{
"kind": "campaign",
"platformId": "120210000000000001"
},
{
"kind": "adSet",
"platformId": "120210000000000002"
}
]
}
}
},
"required": [
"error",
"type",
"code",
"docUrl",
"requestId"
]
}