> ## Documentation Index
> Fetch the complete documentation index at: https://feather.mupeni.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Flag

> Returns a single flag with its latest config per environment.

## Path parameters

<ParamField path="projectId" type="string" required />

<ParamField path="flagKey" type="string" required>
  The flag's `key` identifier.
</ParamField>

## Response

Returns the flag object with a `versions` map keyed by `environmentId`. See [Flag Config](/docs/concepts/flag-config) for the version schema.

<RequestExample>
  ```bash theme={null}
  curl https://nest.feather.mupeni.dev/v1/projects/proj_01hx.../flags/new-checkout \
    -H "Authorization: Bearer <server_key>"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "flag_01hx...",
    "orgId": "org_01hx...",
    "projectId": "proj_01hx...",
    "key": "new-checkout",
    "name": "New Checkout Flow",
    "description": null,
    "type": "boolean",
    "clientSafe": false,
    "archivedAt": null,
    "createdAt": "2024-03-01T12:00:00.000Z",
    "versions": {
      "env_01hx...": {
        "id": "fv_02hx...",
        "version": 2,
        "config": {
          "version": 2,
          "enabled": true,
          "defaultValue": false,
          "rules": []
        },
        "createdAt": "2024-04-01T09:00:00.000Z"
      }
    }
  }
  ```

  ```json 404 theme={null}
  {
    "error": { "code": "RESOURCE_NOT_FOUND", "message": "Flag not found." }
  }
  ```
</ResponseExample>
