Skip to navigation

Fast-tier, per-member pre-roll ad decisioning

Scores an eligible ad pool for the CURRENT member (never a seat/group average) — age-gated, cost-metered, output-guarded, audited. seatId/memberSlot are un-trusted locators only; airline_id and the member’s age tier are always server-resolved. selectedAd is honestly null when no eligible ad clears the match threshold, or when the age gate/view-cap/cooldown filters leave nothing eligible. Carries no monetary field anywhere.

Authentication

AuthorizationBearer

OAuth authentication of the form <token>.

Headers

X-Session-IdstringRequired

The passenger-session locator (a within-tenant locator, never a trust assertion). A missing or key-unsafe value is rejected 400 before this handler runs.

Request

This endpoint expects an object.
seatIdstringRequired
titleContextobjectRequired

The content that is about to play — the pre-roll decision’s title context.

memberSlotstring or nullOptional
adHistorylist of stringsOptional

Ad ids this session has already shown, oldest first. Feeds the cooldown window and per-ad view cap.

adInteractionsmap from strings to stringsOptional

Ad id to the passenger’s last recorded reaction to it (e.g. “skipped”, “completed”). Advisory signal only, never a trust assertion.

sessionTimeMsinteger or string or nullOptional

Optional elapsed session time in milliseconds — advisory context only.

Response

OK
correlationIdstring
matchScoreinteger or string

0..100. Meaningless (reported as 0) when selectedAd is null.

reasoningstring

Passenger-visible model free-text explaining the pick. Output-guarded.

terminalMessagestring

A short (target ≤12 words) passenger-visible model free-text summary. Output-guarded.

schemaVersionstringOptional
selectedAdobject or nullOptional

One ad card. Carries no monetary field anywhere — a match score from 0 to 100 is the only number an ad decision ever produces; ad selection is never a bid/CPM auction on this platform.

alternativeAdobject or nullOptional

One ad card. Carries no monetary field anywhere — a match score from 0 to 100 is the only number an ad decision ever produces; ad selection is never a bid/CPM auction on this platform.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error