---
title: "Get an experiment"
method: GET
path: "/experiments/{experimentId}"
tags: ["Experiment"]
---

# Get an experiment

`GET /experiments/{experimentId}`

Get an experiment associated with the given Id. To use optionalFields check out [this guide](../../developer-docs/apis/automation-api-rest/tutorials/using-optional-fields-in-queries). For a multivariate test (MVT) experiment, use this endpoint after creation to retrieve the generated section and variation IDs, which you need to set custom traffic allocation with a PATCH request. See [Create a multivariate experiment](../../developer-docs/apis/automation-api-rest/tutorials/experiments/create-a-multivariate-experiment).

## Path parameters

- `experimentId` integer, required

## Query parameters

- `optionalFields` string[]

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `423` — Locked
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api.md) · [All operations](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kameleoon/openapi-definition-for-automation-api/versions/09f2abcea0b5/schema)
