---
title: "Get flag defaults for project"
method: GET
path: "/api/v2/projects/{projectKey}/flag-defaults"
tags: ["Projects"]
---

# Get flag defaults for project

`GET /api/v2/projects/{projectKey}/flag-defaults`

Get the flag defaults for a specific project.

## Path parameters

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

## Response `200`

Flag defaults response

- FlagDefaultsRep
  - `_links` object — The location and content type of related resources
  - `key` string — A unique key for the flag default
  - `tags` string[] — A list of default tags for each flag
  - `temporary` boolean — Whether the flag should be temporary by default
  - `defaultClientSideAvailability` ClientSideAvailability
    - `usingMobileKey` boolean
    - `usingEnvironmentId` boolean
  - `booleanDefaults` BooleanDefaults
    - `trueDisplayName` string — The display name for the true variation, displayed in the LaunchDarkly user interface
    - `falseDisplayName` string — The display name for the false variation, displayed in the LaunchDarkly user interface
    - `trueDescription` string — The description for the true variation
    - `falseDescription` string — The description for the false variation
    - `onVariation` integer — The variation index of the flag variation to use for the default targeting behavior when a flag's targeting is on and the target did not match any rules
    - `offVariation` integer — The variation index of the flag variation to use for the default targeting behavior when a flag's targeting is off

## Other responses

- `401` — Invalid access token
- `403` — Forbidden
- `404` — Invalid resource identifier

---

[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)
