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

# Get Feature Flags

> Documentation for the Get Feature Flags action for Posthog

![images/posthog.svg](https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/posthog.svg?fit=max\&auto=format\&n=EU2WCxuXGIUQcziR\&q=85\&s=68f43c29792d2fccd792a68821ad0634)

# Parameters

**Action** `Parameters`

**parameters**

**Distinct ID** `string` *required*

`ID`
This field maps to the destination API `distinct_id` field.

```json Result Object Example theme={null}
{
  "$result_object_key": {
    "errors_while_computing_flags": false,
    "flags": {
      "key": null,
      "value": {
        "enabled": true,
        "key": "my-flag",
        "metadata": {
          "id": 42,
          "payload": null,
          "version": 1
        },
        "reason": {
          "code": "condition_match",
          "condition_index": 0,
          "description": "Matched condition set 0"
        },
        "variant": "control"
      }
    },
    "quota_limited": [],
    "request_id": "req_abc123"
  }
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": {
    "errors_while_computing_flags": "True if any flags failed to evaluate",
    "flags": {
      "key": null,
      "value": {
        "enabled": "Whether the flag is enabled for this user",
        "key": "Flag key",
        "metadata": {
          "id": "Internal flag ID",
          "payload": "JSON payload attached to this flag (nil if none)",
          "version": "Flag definition version"
        },
        "reason": {
          "code": "Reason code",
          "condition_index": "Index of the matching condition",
          "description": "Human-readable reason"
        },
        "variant": "Multivariate variant, if applicable"
      }
    },
    "quota_limited": "Flag keys that were quota-limited",
    "request_id": "Unique identifier for this evaluation request"
  }
}
```

### Result Object Field Details

You can use the result of the action's data as inputs to downstream workflow actions.

Each fetch action requires an object name, which nests the action's result data inside the downstream data context in the workflow. See [Passing Data Between Actions](https://docs.morf.health/docs/knowledge_base/passing_data_between_actions.md) for how to set it and reference the result from downstream nodes.

Here we demonstrate how to refer to this data using the prefix `$result_object_key`.

**GetFeatureFlagsResponse** `Fetch Action Response Object`

**fields**

**flags** `Map\<string,dynamic (any)\>` *required*

Map of flag key to evaluated feature flag

```json CEL theme={null}
$result_object_key.flags
```

```json Example theme={null}
{
"key": null,
"value": {
"enabled": true,
"key": "my-flag",
"metadata": {
"id": 42,
"payload": null,
"version": 1
},
"reason": {
"code": "condition_match",
"condition_index": 0,
"description": "Matched condition set 0"
},
"variant": "control"
}
}
```

**errors\_while\_computing\_flags** `bool` *required*

True if any flags failed to evaluate

```json CEL theme={null}
$result_object_key.errors_while_computing_flags
```

```json Example theme={null}
false
```

**request\_id** `string` *required*

Unique identifier for this evaluation request

```json CEL theme={null}
$result_object_key.request_id
```

```json Example theme={null}
"req_abc123"
```

**quota\_limited** `[]string` *required*

Flag keys that were quota-limited

```json CEL theme={null}
$result_object_key.quota_limited
```

```json Example theme={null}
[]
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.