v5

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-02-283466592.5 MB
Layers

Create layer

Create a layer. Experiments running in the same layer are granted mutually-exclusive traffic.

post/api/v2/projects/{projectKey}/layers

Path parameters

projectKeystring string required

The project key

The project key

Request body

keystring required

Unique identifier for the layer

namestring required

Layer name

descriptionstring required

The checkout flow for the application

Example request

{
  "key": "checkout-flow",
  "name": "Checkout Flow"
}

Response

Layer response

keystring required

The key of the layer

namestring required

The name of the layer

descriptionstring required

The description of the layer

createdAtinteger required
randomizationUnitstring

The unit of randomization for the layer

environmentsobject

The layer configurations for each requested environment

Example response

{
  "key": "checkout-flow",
  "name": "Checkout Flow",
  "description": "The checkout flow for the application",
  "randomizationUnit": "user"
}