Skip to navigation

Get experience by ID with personalization input

Returns a hydrated experience by ID, applying personalization input and parameter values from the request body.

If the experience declares parameters, pass their values in parameters, keyed by parameter ID. See Passing parameters to an experience.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

spaceIdstringRequired
environmentIdstringRequired
idstringRequired

Headers

cf-environment-uuidstringRequiredformat: "uuid"

UUID of the environment (required on the delivery API).

Query parameters

previewenumOptional

Set to true to fetch unpublished, preview content. Requires a preview access token.

Allowed values:
access_tokenstringOptional
optimization-profile-idstringOptional
localestringOptional
variantstringOptional

Request

Body
parametersmap from strings to strings or doubles or maps from strings to strings or doubles or objectsOptional

Values for the parameters the experience declares, keyed by parameter ID. See Passing parameters to an experience.

extensionsobjectOptional

Response

200
HydratedViewobject

A fully hydrated Experience, including the tree nodes to render and any errors encountered during resolution. In this shape, links use componentType and template.

OR
HydratedExperienceViewobject

A fully hydrated Experience, including the tree nodes to render and any errors encountered during resolution. In this shape, links use component and experienceTemplate.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
500
Internal Server Error