mcp

GET /api/v1/environments/{environment_api_key}/experiments/{experiment_id}/

Changed on

(Beta) Retrieves experiment details including feature configuration, attached metrics, and rollout state.

Request

  • Base URL
    https://api.flagsmith.com
  • Auth
    • API key in header Authorization
    • or API key in header Authorization

Path parameters

environment_api_keystring required
experiment_idinteger required

A unique integer value identifying this experiment.

Response

idinteger
namestring required
hypothesisstring required
status'created' | 'running' | 'paused' | 'completed'
  • created - Created
  • running - Running
  • paused - Paused
  • completed - Completed
experiment_rolloutobject nullable
created_atstring date-time
updated_atstring date-time
started_atstring date-time nullable
ended_atstring date-time nullable
rollout_variantinteger nullable

Changes

    • info

      added the optional property rollout_decision to the response with the status

    • info

      added the optional property rollout_variant to the response with the status

    • info

      added the optional property metrics/items/direction to the response with the status