---
title: "Get layers"
method: GET
path: "/api/v2/projects/{projectKey}/layers"
tags: ["Layers"]
---

# Get layers

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

Get a collection of all layers for a project

## Path parameters

- `projectKey` string, string, required — The project key

## Query parameters

- `filter` string, 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`.

## Response `200`

Layer Collection response

- LayerCollectionRep
  - `items` LayerRep[], required — The layers in the project
    - `key` string, required — The key of the layer
    - `name` string, required — The name of the layer
    - `description` string, required — The description of the layer
    - `createdAt` integer, required
    - `randomizationUnit` string — The unit of randomization for the layer
    - `environments` object — The layer configurations for each requested environment
  - `totalCount` integer, required — The total number of layers in the project
  - `_links` object, required — The location and content type of related resources

## Other responses

- `400` — Invalid request
- `403` — Forbidden
- `404` — Invalid resource identifier
- `429` — Rate limited

---

[API](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api.md) · [All operations](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/launchdarkly/launchdarkly-rest-api/revisions/69c5c9aafe78/schema)
