Skip to navigation

Generate a passenger entertainment persona (Deep tier)

Drafts a behavioral persona from declared traveler attributes, subject to the platform’s policy, cost, and safety checks, normalizes it (canonical genre/retail vocabularies, clamped scores, genre affinities/retail categories/engagement/monetization propensity), embeds it, and saves an immutable-for-session persona record keyed to the server-resolved airline/session and the request’s seat/member locators. airline_id/session_id are never caller-supplied. Idempotent per session per member: a member that already has a generated persona gets that SAME record back (200, no second write) rather than a freshly drafted one — the record is written once per session and never overwritten.

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
ageBandstringRequired

Coarse, self-declared age band (e.g. “18-24”, “35-44”) — an input signal only, never the authoritative age tier used for content gating (that is always resolved separately, server-side, during session setup).

memberSlotstring or nullOptional
travelPurposestring or nullOptional

The purpose of the trip, as free text; optional. Any text is accepted. Recommended values: business, leisure, visiting friends or family, adventure, first flight. Omit it, or send null, when it is not known. A value that is sent must not be blank and is at most 100 characters.

cabinClassstring or nullOptional

The traveler’s cabin, as free text; optional. Any text is accepted. Recommended values: economy, premium economy, business, first. Omit it, or send null, when it is not known. A value that is sent must not be blank and is at most 100 characters.

groupTypestring or nullOptional

The traveler’s party, as free text; optional. Any text is accepted. Recommended values: solo, couple, family, friends, group. Omit it, or send null, when it is not known. A value that is sent must not be blank and is at most 100 characters.

declaredGenrePreferencesmap from strings to integers or strings or nullOptional

Optional self-declared genre preferences: genre label to strength (0 to 100). Null when the traveler declared none. Normalized against the platform’s canonical genre vocabulary downstream — never trusted verbatim.

languagestring or nullOptional
retailInterestslist of stringsOptional

Self-declared retail interests. Normalized against the platform’s canonical retail-category vocabulary downstream — never trusted verbatim.

contentStylestring or nullOptional

Response

OK
featureSchemaVersionstring

Internal schema-versioning discriminator for this record’s feature shape.

airlineIdstring
sessionIdstring
seatIdstring
descriptionstring

AI-generated persona description. Never a fabricated placeholder — an unset value means the persona has not been generated yet.

embeddinglist of doubles or strings

Embedding for similarity lookup against archetypes/content.

generatedAtMsinteger or string

Server-stamped generation time, epoch milliseconds.

schemaVersionstringOptional
memberSlotstring or nullOptional

The per-member key within the seat. A solo traveler (no shared seat roster) uses a reserved placeholder value rather than null.

anonymousUserIdstring or nullOptional

Set only when the passenger has a persistent (opted-in) anonymous or identified profile; null for an anonymous, session-only visit.

genreAffinitiesmap from strings to integers or strings or nullOptional

Genre label to affinity strength, 0 to 100. Every canonical genre is present once computed — never a partial map. Null when not yet computed for this persona.

retailCategorieslist of strings or nullOptional

Ordered list of retail-category interest labels, most preferred first. Not padded to a full vocabulary (unlike genreAffinities). Null when not yet computed.

engagementScoreinteger or string or nullOptional
Engagement propensity, 0 to 100. Null when not yet computed.
monetizationPropensityinteger or string or nullOptional

Monetization/retail propensity, 0 to 100. Null when not yet computed.

Errors

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