Ads REST API
The Ads REST API manages channels, origins, marker rules, breaks, events, templates, and integrations under /api/v1.
Authentication
Every request requires both:
- HTTP Basic authentication, with the API key as the username and API secret as the password.
- The
X-Org-IDheader identifying the organization.
curl 'https://ads.example.com/api/v1/channels' \
-u "$ADS_API_KEY:$ADS_API_SECRET" \
-H 'X-Org-ID: org_123'
Treat the secret like a password. The internal service authentication used between platform components is not a public API authentication method.
Reference
Browse the generated Ads REST API reference. Operations are grouped by resource.
Refresh the reference
The reference is generated at build time from the committed OpenAPI contract in Dolby-OptiView/optiview-ads. The default URL is pinned to the ADS-109 contract commit so documentation builds remain reproducible without storing a second copy of openapi.json.
npm run fetch-ads-openapi
npm run refresh-ads-api-docs
For a local checkout or a newer remote ref, override the source:
ADS_OPENAPI_SPEC_URL=/path/to/optiview-ads/openapi.json npm run refresh-ads-api-docs
ADS_OPENAPI_REF=commit-or-branch npm run refresh-ads-api-docs
Private GitHub fetches use ADS_OPENAPI_TOKEN, GITHUB_TOKEN, or GH_TOKEN. Change the pinned commit in scripts/fetch-ads-openapi.mjs when intentionally refreshing the published contract, regenerate the pages, and commit the reviewed generated reference.