experiments

How the recordings tab's in-session exposure scope reads on this experiment.

Resolved through the same seam as the recordings query's in_session refusal, so the scope control disables exactly what a query would be refused for, and the copy can say when sessions are matched on the stamped flag property rather than on the exposure event. Postgres reads only, so it can serve the tab's mount path.

get/api/projects/{project_id}/experiments/{id}/in_session_exposure/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/experiments/{id}/in_session_exposure/
  • Auth: HTTP bearer

Path parameters

idinteger required

A unique integer value identifying this experiment.

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Response

availableboolean required

Whether the in-session exposure scope can answer for this experiment. Mirrors the recordings query, which refuses experiment_exposure.in_session exactly when this is false.

unavailable_reasonstring nullable required

Why the in-session scope can't answer for this experiment, worded for display next to the disabled option. Null when available.

uses_stamped_fallbackboolean required

True when in-session evidence is the stamped $feature/<flag_key> property, which means the flag was active in the session, rather than the exposure event itself being captured there. Copy must not claim the exposure was captured in the session when this is set.

Changes

No recorded changes to this operation across all 1 revision of this API.