reach & frequency
Reserve a Reach & Frequency prediction
Locks the quoted price + inventory until the returned expiresAt and mints a NEW
prediction id — pass that RESERVED id (not the original) as rfPredictionId on
POST /v1/ads/create. Release an unused reservation via DELETE.
PlatformsMeta
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
predictionIdstring
accountIdstring
adAccountIdstring
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.reachandfrequency.reserveRfPrediction({ path: { predictionId: 'prediction_abc123', }, body: { accountId: 'account_abc123', adAccountId: 'adaccount_abc123', },});console.log(data);{
"adAccountId": "string",
"prediction": {
"predictionId": "string",
"status": "string",
"budget": 0,
"reach": 0,
"impressions": 0,
"minBudget": 0,
"maxBudget": 0,
"minReach": 0,
"maxReach": 0,
"frequencyCap": 0,
"startTime": 0,
"stopTime": 0,
"expiresAt": "string"
}
}Empty
{
"error": "Unauthorized"
}Empty
Cancel a Reach & Frequency reservation DELETE
Releases a RESERVATION's locked price and inventory. Unreserved predictions expire on their own.
List leads for a single form GET
Returns leads for one form. Serves persisted leads (ingested via the leadgen webhook) when available, falling back to a live Graph read.