Reserve a Reach & Frequency prediction
THIS IS THE OPERATION THAT BINDS MONEY. It locks the quoted price and the inventory until the returned expiresAt. Everything before it -- the create, the reads -- buys nothing.
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.
DO NOT AUTO-RETRY THIS CALL. A single prediction can be reserved MORE THAN ONCE: a repeat does not return the reservation you already have, it mints a SECOND one and locks the inventory again. That is measured platform behaviour, not a guess, and it is why this endpoint accepts no Idempotency-Key and is classified as an unsafe write. If a call times out, READ the prediction instead of reserving again.
THE RESERVATION IS CONFIRMED ASYNCHRONOUSLY, so prediction.status may not be final when this returns; this endpoint does not poll for you. Use GET /v1/ads/rf-predictions/{predictionId} with the RESERVED id.
RELEASE AN UNUSED RESERVATION with DELETE /v1/ads/rf-predictions/{predictionId}. Unreserved quotes need no cleanup -- they expire on their own.
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 QUOTE id to reserve. The id that comes back is a different one.
predictionIdstringrequired- pattern
^[1-9]\d{0,20}$
Original schema
{
"type": "string",
"pattern": "^[1-9]\\d{0,20}$"
}Request body
Bodyobjectrequired
- additionalProperties
false- required
[ "accountId", "adAccountId" ]
accountIdstringrequiredSocial account id used to resolve the platform token.
adAccountIdstringrequiredMeta ad account id (act_<n>) the prediction was quoted on.
- pattern
^act_[1-9]\d{0,19}$
Original schema
{
"$ref": "#/components/schemas/ReserveRfPredictionDto"
}Responses
Status codes and shapes declared for this operation. Read each description for the meaning of that response.
201Response schema
Response 201object
- required
[ "adAccountId", "prediction" ]
adAccountIdstringrequiredThe ad account the reservation belongs to, echoed back.
- pattern
^act_[1-9]\d{0,19}$
predictionallOfrequired
prediction.predictionId IS THE NEW RESERVED id -- not the id you reserved. Keep it: it is what POST /v1/ads/create and the cancelling DELETE both expect.
allOf / 1object
- 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/ReserveRfPredictionResponseDto"
}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.
ReserveRfPredictionDto
#/components/schemas/ReserveRfPredictionDto
{
"type": "object",
"properties": {
"accountId": {
"type": "string",
"description": "Social account id used to resolve the platform token."
},
"adAccountId": {
"type": "string",
"pattern": "^act_[1-9]\\d{0,19}$",
"description": "Meta ad account id (act_<n>) the prediction was quoted on."
}
},
"additionalProperties": false,
"required": [
"accountId",
"adAccountId"
]
}ReserveRfPredictionResponseDto
#/components/schemas/ReserveRfPredictionResponseDto
{
"type": "object",
"properties": {
"adAccountId": {
"type": "string",
"pattern": "^act_[1-9]\\d{0,19}$",
"description": "The ad account the reservation belongs to, echoed back."
},
"prediction": {
"description": "`prediction.predictionId` IS THE NEW RESERVED id -- not the id you reserved. Keep it: it is what POST /v1/ads/create and the cancelling DELETE both expect.",
"allOf": [
{
"$ref": "#/components/schemas/RfPredictionDto"
}
]
}
},
"required": [
"adAccountId",
"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"
]
}