Get experiment

GET
/api/v2/projects/:projectKey/environments/:environmentKey/experiments/:experimentKey

Get details about an experiment.

Expanding the experiment response

LaunchDarkly supports four fields for expanding the “Get experiment” response. By default, these fields are not included in the response.

To expand the response, append the expand query parameter and add a comma-separated list with any of the following fields:

  • previousIterations includes all iterations prior to the current iteration. By default only the current iteration is included in the response.
  • draftIteration includes the iteration which has not been started yet, if any.
  • secondaryMetrics includes secondary metrics. By default only the primary metric is included in the response.
  • treatments includes all treatment and parameter details. By default treatment data is not included in the response.

For example, expand=draftIteration,treatments includes the draftIteration and treatments fields in the response. If fields that you request with the expand query parameter are empty, they are not included in the response.

Path parameters

projectKeystringRequired

The project key

environmentKeystringRequired

The environment key

experimentKeystringRequired

The experiment key

Query parameters

expandstringOptional

A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above.

Response

Experiment response

keystring

The experiment key

namestring

The experiment name

_maintainerIdstring

The ID of the member who maintains this experiment.

_creationDatelong

Timestamp of when the experiment was created

environmentKeystring
_idstringOptional

The experiment ID

descriptionstringOptional

The experiment description

archivedDatelongOptional

Timestamp of when the experiment was archived

holdoutIdstringOptional

The holdout ID

currentIterationobjectOptional

Details on the current iteration

draftIterationobjectOptional

Details on the current iteration. This iteration may be already started, or may still be a draft.

previousIterationslist of objectsOptional

Details on the previous iterations for this experiment.

Errors

Built with