Help CenterVying
Open Vying
Menu

Get the Latest Opportunities ReportExperimental

GET/brands/{brandId}/opportunities

Experimental — the response shape may still change.

The brand's Opportunities report: a prioritized set of ways to get cited more often, with the tracked prompts and cited pages behind each one. The same analysis the dashboard shows, from the same code. Generation is inline and synchronous. A stored report is served while it is fresh and regenerated when it is not, so there is nothing to poll for and no way to be handed a stale one — but a request that triggers a generation waits for it. The freshness window bounds the cost: however many callers ask, one generation per brand per window. There is deliberately no POST, which would spend provider budget with nothing metering it per call.

Needs read access. About keys

Request

curl "https://app.vyingfor.com/api/v1/brands/{brandId}/opportunities" \
  -H "Authorization: Bearer YOUR_API_KEY"

Parameters

NameInTypeDescription
brandId requiredPathstring

Brand identifier.

Response

200 Get the latest opportunities report

FieldTypeDescription
brandIdstring
status"ready" | "insufficient-data"

ready when a report is present. insufficient-data when the brand hasn't accumulated enough tracked answers to say anything useful yet, in which case the lists are empty.

generatedAtstring or null
modelstring or null

The model that produced the report, when recorded.

summarystring[]

A few bullets on where the brand stands and the through-line of the plan.

opportunitiesOpportunity[]

Prioritized, highest impact first.

risksstring[]

Caveats: hard-to-win areas, or tactics to avoid.

Errors