API reference
Endpoints
10 endpoints, all under https://api.cresva.ai/v1. Read only: nothing in this API changes a campaign, a budget or a creative on any platform.
GET
/v1/brandsList the brands this key can reachGET/v1/metricsAd performance, at any levelPOST/v1/queryAsk in plain languageGET/v1/forecastsStored forecasts with confidence intervalsGET/v1/anomaliesDetected outliers in performanceGET/v1/attributionAttributed performance under your own modelGET/v1/creativesPer-creative performancePOST/v1/recommendationsBudget reallocation under constraintsGET/v1/reportsReports this brand has generatedGET/v1/syncHow fresh your data isConventions
Two of these are POST and neither of them writes anything. /v1/query and /v1/recommendations take a body because their inputs do not fit comfortably in a query string, not because they mutate state.
Every response carries a meta object with a request_id and a simulated flag. Rate-limit headers are on every response, including errors.
Generate a client instead
The specification these pages are built from is served at
/v1/openapi.json. Point a generator at it and you get a typed client in your own language rather than hand-written request code.Spec
curl https://api.cresva.ai/v1/openapi.json -o cresva-openapi.json