Layers

Get layers

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

Get a collection of all layers for a project

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projectKey*string

The project key

Formatstring

Query Parameters

filter?string

A comma-separated list of filters. This endpoint only accepts filtering by experimentKey. The filter returns layers which include that experiment for the selected environment(s). For example: filter=reservations.experimentKey contains expKey.

Formatstring

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/projects/string/layers"
{  "items": [    {      "key": "checkout-flow",      "name": "Checkout Flow",      "description": "The checkout flow for the application",      "createdAt": 0,      "randomizationUnit": "user",      "environments": {        "property1": {          "reservations": [            {              "experimentKey": "checkout-flow-experiment",              "flagKey": "checkout-flow-flag",              "reservationPercent": 20            }          ]        },        "property2": {          "reservations": [            {              "experimentKey": "checkout-flow-experiment",              "flagKey": "checkout-flow-flag",              "reservationPercent": 20            }          ]        }      }    }  ],  "totalCount": 0,  "_links": {    "self": {      "href": "/api/v2/projects/my-project/layers",      "type": "application/json"    }  }}