Create a tracking tag
Creates a tracking tag (Meta: a pixel) in the ad account and returns it, INCLUDING the install code.
THIS OPERATION IS NOT IDEMPOTENT and the cost of a retry is PERMANENT: the same body sent twice creates TWO tags, and META HAS NO API TO DELETE A TAG -- the extra one stays on the account forever. No Idempotency-Key is accepted, because the contract this API tracks declares one explicitly for other write endpoints and nothing here; the silence is a choice, not an omission. Do not auto-retry on timeout: read the list first and check whether the tag landed.
CREATING IS NOT INSTALLING. The returned tag has installed: false until the snippet is actually on your site and the first event arrives; lastFiredTime is what that flag is derived from.
name IS THE ONLY INPUT THE PLATFORM TAKES on this edge. Matching keys, cookie behaviour and data-use settings are set afterwards with the update operation.
The platform enforces its own ceiling on how many tags a business may hold, and an ad account outside a Business Manager cannot hold one at all; this API does not pre-check either -- they come back as a 400 from the platform.
Authentication
The following security requirement applies to this operation.
Read the authentication guideParameters
accountIdpathrequiredSocial account id -- a connected Meta account. It is what resolves the platform token; it is NOT the ad account and NOT the tag.
accountIdstringrequiredOriginal schema
{
"type": "string"
}platformqueryoptionalDefaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical.
platformstringOriginal schema
{
"type": "string"
}Request body
Bodyobjectrequired
- additionalProperties
false- required
[ "adAccountId", "name" ]
adAccountIdstringrequiredThe act_<n> ad account to create the tag in. REQUIRED: the platform edge lives under the ad account, and a tag cannot be created without one.
- pattern
^act_[1-9]\d{0,19}$- maxLength
32
namestringrequiredName for the new tag. THE ONLY OTHER INPUT THE PLATFORM ACCEPTS on this edge -- the matching and cookie settings are set afterwards with the update operation.
- minLength
1- maxLength
200
Original schema
{
"$ref": "#/components/schemas/CreateTrackingTagDto"
}Responses
Status codes and shapes declared for this operation. Read each description for the meaning of that response.
201Response schema
Response 201object
- required
[ "platform", "tag" ]
platformstringrequiredAlways metaads. This names the ADVERTISING SURFACE the tag lives on, and it is deliberately not one of the connected-account platform names: there is no separate metaads account, adapter or credential behind it. You connect a Facebook account and manage this surface through it.
- enum
[ "metaads" ]
tagobjectrequired
- required
[ "id", "name", "platform", "kind", "status", "code", "lastFiredTime", "isUnavailable", "installed", "creationTime", "ownerBusinessId", "ownerAdAccountId" ]
idstringrequiredPlatform-native tag id -- on Meta a numeric pixel id, as a string. THIS IS THE VALUE THE REST OF THE ADS SURFACE ASKS FOR: it is what getConversionsQuality calls destinationId, what createAdAudience calls pixelId, and what an ad's promotedObject.pixelId needs. No conversion is required -- all three validate the same shape.
- pattern
^[1-9]\d{0,19}$
namestringrequiredThe tag name as it is stored on the platform.
- minLength
1- maxLength
200
platformstringrequiredAlways metaads. This names the ADVERTISING SURFACE the tag lives on, and it is deliberately not one of the connected-account platform names: there is no separate metaads account, adapter or credential behind it. You connect a Facebook account and manage this surface through it.
- enum
[ "metaads" ]
kindstringrequiredWhat kind of tracking object this is. Always pixel today, because Meta is the only surface served. The contract this API tracks lists other kinds for other platforms; declaring them here would give you branches that can never be reached.
- enum
[ "pixel" ]
statusstringrequiredDERIVED, not a platform field: inactive when isUnavailable is true, active otherwise. isUnavailable is published alongside it because the derivation loses WHY the platform cannot reach the tag.
- enum
[ "active", "inactive" ]
codestringrequiredThe install snippet. IT IS ALWAYS NULL IN THE LIST VIEW -- the list edge does not request it, because the snippet is kilobytes of JavaScript per row. Read one tag by id to get it. A null from the by-id operation means the platform really did not return one.
- nullable
true
lastFiredTimenumberrequiredUnix seconds of the last event this tag received, or null if it has NEVER fired. Null and zero are not the same thing.
- nullable
true
isUnavailablebooleanrequiredThe platform's own is_unavailable flag -- published raw next to the derived status so the derivation can be checked rather than trusted.
installedbooleanrequiredDERIVED from lastFiredTime: true once the tag has fired at least once. CREATING A TAG DOES NOT INSTALL IT -- this stays false until the snippet is actually on the site and an event arrives.
creationTimenumberrequiredUnix seconds the tag was created. NULLABLE HERE although the tracked contract types it as a plain integer: the platform does not always return the field, and inventing a timestamp for the rows where it is missing would be worse than admitting it.
- nullable
true
ownerBusinessIdstringrequiredBusiness Manager that owns the tag, or null for a tag on a personal (non-BM) ad account. A NULL HERE IS WHY SHARING FAILS: the platform requires an owning business on every shared-accounts operation, so a tag with none cannot be shared at all.
- nullable
true
ownerAdAccountIdstringrequiredThe act_<n> ad account that owns the tag. THIS IS WHAT RESOLVES THE ambiguity getConversionsQuality warns about -- it tells you which ad account each dataset belongs to. Nullable for the same reason as creationTime: the tracked contract types it as a plain string, the platform does not always send it.
- nullable
true- pattern
^act_[1-9]\d{0,19}$
Original schema
{
"$ref": "#/components/schemas/TrackingTagResponseDto"
}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"
}409Conflict
Conflict
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"
}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.
CreateTrackingTagDto
#/components/schemas/CreateTrackingTagDto
{
"type": "object",
"properties": {
"adAccountId": {
"type": "string",
"pattern": "^act_[1-9]\\d{0,19}$",
"maxLength": 32,
"description": "The `act_<n>` ad account to create the tag in. REQUIRED: the platform edge lives under the ad account, and a tag cannot be created without one."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Name for the new tag. THE ONLY OTHER INPUT THE PLATFORM ACCEPTS on this edge -- the matching and cookie settings are set afterwards with the update operation."
}
},
"additionalProperties": false,
"required": [
"adAccountId",
"name"
]
}TrackingTagResponseDto
#/components/schemas/TrackingTagResponseDto
{
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"metaads"
],
"description": "Always `metaads`. This names the ADVERTISING SURFACE the tag lives on, and it is deliberately not one of the connected-account platform names: there is no separate `metaads` account, adapter or credential behind it. You connect a Facebook account and manage this surface through it."
},
"tag": {
"$ref": "#/components/schemas/TrackingTagDto"
}
},
"required": [
"platform",
"tag"
]
}TrackingTagDto
#/components/schemas/TrackingTagDto
{
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[1-9]\\d{0,19}$",
"description": "Platform-native tag id -- on Meta a numeric pixel id, as a string. THIS IS THE VALUE THE REST OF THE ADS SURFACE ASKS FOR: it is what `getConversionsQuality` calls `destinationId`, what `createAdAudience` calls `pixelId`, and what an ad's `promotedObject.pixelId` needs. No conversion is required -- all three validate the same shape."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "The tag name as it is stored on the platform."
},
"platform": {
"type": "string",
"enum": [
"metaads"
],
"description": "Always `metaads`. This names the ADVERTISING SURFACE the tag lives on, and it is deliberately not one of the connected-account platform names: there is no separate `metaads` account, adapter or credential behind it. You connect a Facebook account and manage this surface through it."
},
"kind": {
"type": "string",
"enum": [
"pixel"
],
"description": "What kind of tracking object this is. Always `pixel` today, because Meta is the only surface served. The contract this API tracks lists other kinds for other platforms; declaring them here would give you branches that can never be reached."
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
],
"description": "DERIVED, not a platform field: `inactive` when `isUnavailable` is true, `active` otherwise. `isUnavailable` is published alongside it because the derivation loses WHY the platform cannot reach the tag."
},
"code": {
"type": "string",
"nullable": true,
"description": "The install snippet. IT IS ALWAYS NULL IN THE LIST VIEW -- the list edge does not request it, because the snippet is kilobytes of JavaScript per row. Read one tag by id to get it. A null from the by-id operation means the platform really did not return one."
},
"lastFiredTime": {
"type": "number",
"nullable": true,
"description": "Unix seconds of the last event this tag received, or null if it has NEVER fired. Null and zero are not the same thing."
},
"isUnavailable": {
"type": "boolean",
"description": "The platform's own `is_unavailable` flag -- published raw next to the derived `status` so the derivation can be checked rather than trusted."
},
"installed": {
"type": "boolean",
"description": "DERIVED from `lastFiredTime`: true once the tag has fired at least once. CREATING A TAG DOES NOT INSTALL IT -- this stays false until the snippet is actually on the site and an event arrives."
},
"creationTime": {
"type": "number",
"nullable": true,
"description": "Unix seconds the tag was created. NULLABLE HERE although the tracked contract types it as a plain integer: the platform does not always return the field, and inventing a timestamp for the rows where it is missing would be worse than admitting it."
},
"ownerBusinessId": {
"type": "string",
"nullable": true,
"description": "Business Manager that owns the tag, or null for a tag on a personal (non-BM) ad account. A NULL HERE IS WHY SHARING FAILS: the platform requires an owning business on every shared-accounts operation, so a tag with none cannot be shared at all."
},
"ownerAdAccountId": {
"type": "string",
"nullable": true,
"pattern": "^act_[1-9]\\d{0,19}$",
"description": "The `act_<n>` ad account that owns the tag. THIS IS WHAT RESOLVES THE ambiguity `getConversionsQuality` warns about -- it tells you which ad account each dataset belongs to. Nullable for the same reason as `creationTime`: the tracked contract types it as a plain string, the platform does not always send it."
}
},
"required": [
"id",
"name",
"platform",
"kind",
"status",
"code",
"lastFiredTime",
"isUnavailable",
"installed",
"creationTime",
"ownerBusinessId",
"ownerAdAccountId"
]
}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"
]
}