Read a Reach & Frequency prediction
Reads one prediction live from the platform.
THIS IS THE POLLING ENDPOINT. Predictions are produced asynchronously and reservations are confirmed asynchronously, so prediction.status may still be moving when a create or a reserve returns. Neither of those operations waits for you: waiting would mean unpriced extra calls against your platform quota.
prediction.status IS THE PLATFORM'S OWN NUMBER and this API publishes no names for it -- the vendor documents the field only as an unsigned integer and never says what each value means, so any ready/pending/failed mapping here would be invented.
RESERVING MINTS A NEW PREDICTION ID. The prediction.predictionId you get back from the reserve is NOT the id you reserved -- it is a new object. That RESERVED id is the one that belongs on POST /v1/ads/create with buyingType: "RESERVED", and it is the one the cancelling DELETE expects. Cancelling with the ORIGINAL quote id is refused by the platform.
MONEY FIELDS COME BACK IN THE MINOR UNIT of currency (cents for USD), unconverted. A bad prediction id answers 400, NOT 404: the platform reports it with one error that cannot be told apart from "no permission", and naming one of the two would state a fact this API never observed.
Only served for Meta today. An account whose adapter does not implement reach and frequency answers 501 -- the request is valid, the capability is what is missing.
Authentication
The following security requirement applies to this operation.
Read the authentication guideParameters
predictionIdpathrequiredThe platform's own prediction id -- a quote id, or the RESERVED id a reserve minted.
predictionIdstringrequired- pattern
^[1-9]\d{0,20}$
Original schema
{
"type": "string",
"pattern": "^[1-9]\\d{0,20}$"
}adAccountIdqueryrequiredMeta ad account id (act_<n>). The platform reads the prediction from the node itself, so this value never reaches the wire -- it is still REQUIRED and validated, because silently ignoring it would let a call naming the wrong account succeed and never tell you.
adAccountIdstringrequired- pattern
^act_[1-9]\d{0,19}$
Original schema
{
"type": "string",
"pattern": "^act_[1-9]\\d{0,19}$"
}accountIdqueryrequiredSocial account id used to resolve the platform token.
accountIdstringrequiredOriginal schema
{
"type": "string"
}Responses
Status codes and shapes declared for this operation. Read each description for the meaning of that response.
200Response schema
Response 200object
- required
[ "adAccountId", "currency", "prediction" ]
adAccountIdstringrequiredThe ad account the prediction belongs to, echoed back from your request. It is NOT read out of the platform response: the node does not carry it, and deriving it would mean publishing a value that was never observed.
- pattern
^act_[1-9]\d{0,19}$
currencystringrequiredThe ad account currency the money fields are denominated in, as the platform reported it. null when the platform did not report one -- this API does not fall back to a default, because a wrong currency would silently mis-scale every amount above.
- nullable
true
predictionobjectrequired
- required
[ "predictionId", "status", "budget", "reach", "impressions", "minBudget", "maxBudget", "minReach", "maxReach", "frequencyCap", "startTime", "stopTime", "expiresAt" ]
predictionIdstringrequiredThe platform's own prediction id. AFTER A RESERVE THIS IS A NEW id, not the one you reserved: reserving mints a fresh object. It is the RESERVED id that belongs on POST /v1/ads/create and on the DELETE that releases it.
- pattern
^[1-9]\d{0,20}$
statusnumberrequiredThe platform's own numeric prediction status, forwarded AS IS. THIS API PUBLISHES NO NAMES FOR IT: the vendor documents the field only as an unsigned integer and never states what each value means, so any mapping here would be invented. Treat the number as opaque and poll GET /v1/ads/rf-predictions/{predictionId} until it stops changing.
budgetnumberrequiredQuoted (or provided) lifetime budget for the window, in the MINOR unit of currency -- cents for USD -- exactly as the platform reported it. THIS API DOES NOT CONVERT: the divisor depends on the currency (JPY, KRW and CLP have no minor unit at all), so a fixed divide-by-100 would be wrong for them. null means the platform did not report a number, which is not the same fact as zero.
- nullable
true
reachnumberrequiredPredicted (or requested) unique reach. null when unreported.
- nullable
true
impressionsnumberrequiredPredicted impressions over the window. null when unreported.
- nullable
true
minBudgetnumberrequiredThe platform's allowed LOWER bound for this spec, in the MINOR unit of currency, unconverted. null when unreported.
- nullable
true
maxBudgetnumberrequiredThe platform's allowed UPPER bound for this spec, in the MINOR unit of currency, unconverted. null when unreported.
- nullable
true
minReachnumberrequiredThe platform's allowed lower bound on reach.
- nullable
true
maxReachnumberrequiredThe platform's allowed upper bound on reach.
- nullable
true
frequencyCapnumberrequiredMax impressions per person over the window, echoed by the platform. null when you did not send one and the platform did not report one -- this API does not substitute the platform's own default, because that default was never measured.
- nullable
true
startTimenumberrequiredReserved window start as Unix SECONDS. The platform may report this as an ISO-8601 timestamp instead; either form is normalised to seconds here, so callers get one type. null when unreported or unreadable.
- nullable
true
stopTimenumberrequiredReserved window end as Unix SECONDS. Same normalisation as startTime.
- nullable
true
expiresAtstringrequiredWhen the RESERVATION's locked price and inventory expire. It is set after reserving, so a plain quote carries null here. THE VALUE IS THE PLATFORM'S: this API embeds no reservation lifetime of its own, because the vendor describes it only as "approximately one hour" -- an observation, not a guarantee, and one that would go stale silently if it were hard-coded.
- nullable
true
Original schema
{
"$ref": "#/components/schemas/RfPredictionEnvelopeDto"
}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"
}403Permission denied
Permission denied
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"
}404Resource not found
Resource not found
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.
RfPredictionEnvelopeDto
#/components/schemas/RfPredictionEnvelopeDto
{
"type": "object",
"properties": {
"adAccountId": {
"type": "string",
"pattern": "^act_[1-9]\\d{0,19}$",
"description": "The ad account the prediction belongs to, echoed back from your request. It is NOT read out of the platform response: the node does not carry it, and deriving it would mean publishing a value that was never observed."
},
"currency": {
"type": "string",
"nullable": true,
"description": "The ad account currency the money fields are denominated in, as the platform reported it. `null` when the platform did not report one -- this API does not fall back to a default, because a wrong currency would silently mis-scale every amount above."
},
"prediction": {
"$ref": "#/components/schemas/RfPredictionDto"
}
},
"required": [
"adAccountId",
"currency",
"prediction"
]
}RfPredictionDto
#/components/schemas/RfPredictionDto
{
"type": "object",
"properties": {
"predictionId": {
"type": "string",
"pattern": "^[1-9]\\d{0,20}$",
"description": "The platform's own prediction id. AFTER A RESERVE THIS IS A NEW id, not the one you reserved: reserving mints a fresh object. It is the RESERVED id that belongs on POST /v1/ads/create and on the DELETE that releases it."
},
"status": {
"type": "number",
"description": "The platform's own numeric prediction status, forwarded AS IS. THIS API PUBLISHES NO NAMES FOR IT: the vendor documents the field only as an unsigned integer and never states what each value means, so any mapping here would be invented. Treat the number as opaque and poll GET /v1/ads/rf-predictions/{predictionId} until it stops changing."
},
"budget": {
"type": "number",
"nullable": true,
"description": "Quoted (or provided) lifetime budget for the window, in the MINOR unit of `currency` -- cents for USD -- exactly as the platform reported it. THIS API DOES NOT CONVERT: the divisor depends on the currency (JPY, KRW and CLP have no minor unit at all), so a fixed divide-by-100 would be wrong for them. `null` means the platform did not report a number, which is not the same fact as zero."
},
"reach": {
"type": "number",
"nullable": true,
"description": "Predicted (or requested) unique reach. `null` when unreported."
},
"impressions": {
"type": "number",
"nullable": true,
"description": "Predicted impressions over the window. `null` when unreported."
},
"minBudget": {
"type": "number",
"nullable": true,
"description": "The platform's allowed LOWER bound for this spec, in the MINOR unit of `currency`, unconverted. `null` when unreported."
},
"maxBudget": {
"type": "number",
"nullable": true,
"description": "The platform's allowed UPPER bound for this spec, in the MINOR unit of `currency`, unconverted. `null` when unreported."
},
"minReach": {
"type": "number",
"nullable": true,
"description": "The platform's allowed lower bound on reach."
},
"maxReach": {
"type": "number",
"nullable": true,
"description": "The platform's allowed upper bound on reach."
},
"frequencyCap": {
"type": "number",
"nullable": true,
"description": "Max impressions per person over the window, echoed by the platform. `null` when you did not send one and the platform did not report one -- this API does not substitute the platform's own default, because that default was never measured."
},
"startTime": {
"type": "number",
"nullable": true,
"description": "Reserved window start as Unix SECONDS. The platform may report this as an ISO-8601 timestamp instead; either form is normalised to seconds here, so callers get one type. `null` when unreported or unreadable."
},
"stopTime": {
"type": "number",
"nullable": true,
"description": "Reserved window end as Unix SECONDS. Same normalisation as `startTime`."
},
"expiresAt": {
"type": "string",
"nullable": true,
"description": "When the RESERVATION's locked price and inventory expire. It is set after reserving, so a plain quote carries `null` here. THE VALUE IS THE PLATFORM'S: this API embeds no reservation lifetime of its own, because the vendor describes it only as \"approximately one hour\" -- an observation, not a guarantee, and one that would go stale silently if it were hard-coded."
}
},
"required": [
"predictionId",
"status",
"budget",
"reach",
"impressions",
"minBudget",
"maxBudget",
"minReach",
"maxReach",
"frequencyCap",
"startTime",
"stopTime",
"expiresAt"
]
}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"
]
}