Skip to navigation

Get experience by ID

Returns a hydrated experience by its ID.

If the experience declares parameters, pass their values as query parameters prefixed with parameter., such as parameter.item=4fJx2kQ9mN or parameter.item.fields.slug=standing-desk. 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

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