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

# List feature flag evaluations

> Evaluate every feature flag for the caller's organization, optionally narrowed to a project, environment, pipeline, or module instance.



## OpenAPI

````yaml https://api.ravion.com/openapi.yaml get /feature-flags
openapi: 3.0.0
info:
  title: Ravion
  version: 0.0.0
servers:
  - url: https://api.ravion.com
security:
  - BearerAuth: []
tags:
  - name: Projects
  - name: Environments
  - name: FeatureFlags
  - name: Pipelines
  - name: PipelineRuns
  - name: TerraformResources
  - name: TerraformExecutionSummaries
  - name: PipelineStepExecutions
  - name: AwsCloudWatch
  - name: PipelineVersions
  - name: Organizations
  - name: Stacks
  - name: StackWorkspaces
  - name: Auth
  - name: OAuth
  - name: User
  - name: Health
  - name: Memberships
  - name: ServiceAccounts
  - name: AwsDefaultNetworks
  - name: AwsAccounts
  - name: ApiKeys
  - name: AwsAmp
  - name: EksPrometheus
  - name: EksLoki
  - name: ExecutionEnvironments
  - name: ModuleDefinitions
  - name: ModuleCategories
  - name: ModuleVersions
  - name: ModuleInstances
  - name: DefaultValueDefinitions
  - name: DefaultValues
  - name: CodeSources
  - name: Github
  - name: Gitlab
  - name: Git
  - name: Values
  - name: Deployments
  - name: DeploymentResources
  - name: InfrastructureEvents
  - name: WebSocket
  - name: Domains
  - name: AcmCertificates
  - name: Describe
  - name: Reports
  - name: BillingPlans
  - name: BillingAccounts
  - name: BillingCycles
  - name: BillingUsageSummaries
  - name: BillingAddOns
  - name: BillingInvoices
paths:
  /feature-flags:
    get:
      tags:
        - FeatureFlags
      summary: List feature flag evaluations
      description: >-
        Evaluate every feature flag for the caller's organization, optionally
        narrowed to a project, environment, pipeline, or module instance. Flags
        are evaluated on the server from trusted identifiers: each supplied ID
        must belong to the organization, and returns 404 otherwise. Every flag
        in the registry is present in the response; one that cannot be evaluated
        comes back disabled.
      operationId: ListFeatureFlags
      parameters:
        - description: Narrow the evaluation to a project in the organization.
          in: query
          name: projectId
          schema:
            nullable: true
            type: string
        - description: Narrow the evaluation to an environment in the organization.
          in: query
          name: environmentId
          schema:
            nullable: true
            type: string
        - description: Narrow the evaluation to a pipeline in the organization.
          in: query
          name: pipelineId
          schema:
            nullable: true
            type: string
        - description: Narrow the evaluation to a module instance in the organization.
          in: query
          name: moduleInstanceId
          schema:
            nullable: true
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    $ref: '#/components/schemas/FeatureFlags'
                required:
                  - data
                type: object
          description: The request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: The request is invalid or malformed.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You are not authenticated
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You do not have permission to access this resource.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: The server cannot find the requested resource.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Server error
components:
  schemas:
    FeatureFlags:
      additionalProperties: false
      description: Evaluations for the whole registry, keyed by flag key.
      properties:
        flags:
          additionalProperties:
            $ref: '#/components/schemas/FeatureFlagEvaluation'
          description: One entry per flag in the registry, keyed by `FeatureFlagKey`.
          type: object
      required:
        - flags
      type: object
    Errors.UserFacingErrorData:
      additionalProperties: false
      description: |-
        User-facing error presentation data.
        This is what the API returns to the frontend after formatting ErrorData
        using CEL templates from the error registry.

        Used for both:
        - Error fields on domain models (e.g., PipelineRun.error)
        - API error response bodies (HTTP 4xx/5xx responses)
      properties:
        action:
          allOf:
            - $ref: '#/components/schemas/Errors.Action'
          description: Optional action to help resolve the error
        code:
          description: Full error code, e.g., "Ravion:Pipeline:NOT_FOUND"
          type: string
        description:
          description: Additional description with more details
          type: string
        details:
          description: Structured details rendered as user-facing sections.
          items:
            $ref: '#/components/schemas/Errors.UserFacingErrorDetailSection'
          type: array
        isInternal:
          description: >-
            Indicates whether this error is internal (only set when
            ShowInternal=true).

            This allows SUPERADMINs to identify internal errors while viewing
            full details.
          type: boolean
        message:
          description: Main error message (required)
          type: string
        metadata:
          additionalProperties: {}
          description: >-
            Error params/metadata. Stripped for internal errors unless
            superadmin.
          type: object
        requestId:
          description: Request ID for correlating errors with server logs.
          type: string
      required:
        - code
        - message
      type: object
    FeatureFlagEvaluation:
      additionalProperties: false
      description: How one flag resolved for the requested scope.
      properties:
        enabled:
          description: Whether the flag is on for the requested scope.
          type: boolean
        key:
          allOf:
            - $ref: '#/components/schemas/FeatureFlag.Key'
          description: >-
            The flag this evaluation is for. It repeats the map key so a single

            evaluation is meaningful on its own, and so the key enum is part of
            the

            generated types the frontend consumes.
        payload:
          description: >-
            Raw JSON payload attached to the matched flag value; absent when
            none is

            configured. Parse and validate client-side.
          type: string
        variant:
          description: Matched variant of a multivariate flag; absent for a boolean flag.
          type: string
      required:
        - key
        - enabled
      type: object
    Errors.Action:
      additionalProperties: false
      description: Action to help user resolve the error
      properties:
        label:
          description: Button/link label text
          type: string
        url:
          description: URL to navigate to for resolution
          type: string
      required:
        - label
        - url
      type: object
    Errors.UserFacingErrorDetailSection:
      additionalProperties: false
      description: Structured user-facing error detail section.
      properties:
        items:
          description: List of detail values for this section.
          items:
            type: string
          type: array
        object:
          additionalProperties: {}
          description: Structured detail payload for object rendering.
          type: object
        render:
          description: Rendering hint for clients. Valid values are list or object.
          type: string
        title:
          description: Detail section title shown in the UI.
          type: string
      required:
        - title
        - render
      type: object
    FeatureFlag.Key:
      description: |-
        Every feature flag Ravion knows about. This enum is the single source of
        truth shared with the backend registry (`featureflags.AllFlags()` in
        `shared-go/featureflags`); a Go test fails the build if the two drift.
      enum:
        - example-flag
      type: string
  securitySchemes:
    BearerAuth:
      scheme: Bearer
      type: http

````