Get experiment
Get details about an experiment.
### Expanding the experiment response
LaunchDarkly supports five 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.
- `analysisConfig` includes the analysis configuration for the experiment, such as the Bayesian threshold or significance threshold.
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.
Authentication
Authorizationstring
API Key authentication via header
Path parameters
projectKey
The project key
environmentKey
The environment key
experimentKey
The experiment key
Query parameters
expand
A comma-separated list of properties that can reveal additional information in the response. Supported fields are explained above.
Response
Experiment response
key
The experiment key
name
The experiment name
_maintainerId
The ID of the member who maintains this experiment.
_creationDate
Timestamp of when the experiment was created
environmentKey
_links
The location and content type of related resources
_id
The experiment ID
description
The experiment description
methodology
The results analysis approach.
Allowed values:
dataSource
The source of metric data in order to analyze results. Defaults to "launchdarkly" when not provided.
Allowed values:
archivedDate
Timestamp of when the experiment was archived
holdoutId
The holdout ID
currentIteration
Details on the current iteration
type
The experiment type
draftIteration
Details on the current iteration. This iteration may be already started, or may still be a draft.
previousIterations
Details on the previous iterations for this experiment.
analysisConfig
Details of the Analysis Configuration for this experiment.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
405
Method Not Allowed Error
429
Too Many Requests Error