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

# Namespace Snapshot

> Get a snapshot of all flag evaluation state for a namespace.

<RequestExample>
  ```bash cURL theme={null}
  curl --url http://localhost:8080/client/v2/environments/production/namespaces/default/snapshot \
    --header 'Accept: application/json'
  ```
</RequestExample>


## OpenAPI

````yaml https://raw.githubusercontent.com/flipt-io/flipt/refs/heads/v2/rpc/v2/evaluation/openapi.yaml GET /client/v2/environments/{environmentKey}/namespaces/{key}/snapshot
openapi: 3.0.3
info:
  title: ClientEvaluationService API
  version: 0.0.1
servers: []
security: []
tags:
  - name: ClientEvaluationService
paths:
  /client/v2/environments/{environmentKey}/namespaces/{key}/snapshot:
    get:
      tags:
        - ClientEvaluationService
      operationId: evaluationSnapshotNamespace
      parameters:
        - name: environmentKey
          in: path
          required: true
          schema:
            type: string
        - name: key
          in: path
          required: true
          schema:
            type: string
        - name: reference
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvaluationNamespaceSnapshot'
components:
  schemas:
    EvaluationNamespaceSnapshot:
      type: object
      properties:
        namespace:
          $ref: '#/components/schemas/EvaluationNamespace'
        flags:
          type: array
          items:
            $ref: '#/components/schemas/EvaluationFlag'
        digest:
          type: string
    EvaluationNamespace:
      type: object
      properties:
        key:
          type: string
    EvaluationFlag:
      type: object
      properties:
        key:
          type: string
        name:
          type: string
          description: name will be empty to avoid exposing internal information.
        description:
          type: string
          description: description will be empty to avoid exposing internal information.
        enabled:
          type: boolean
        type:
          enum:
            - VARIANT_FLAG_TYPE
            - BOOLEAN_FLAG_TYPE
          type: string
          format: enum
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        rules:
          type: array
          items:
            $ref: '#/components/schemas/EvaluationRule'
        rollouts:
          type: array
          items:
            $ref: '#/components/schemas/EvaluationRollout'
        defaultVariant:
          $ref: '#/components/schemas/EvaluationVariant'
    EvaluationRule:
      type: object
      properties:
        id:
          type: string
        segments:
          type: array
          items:
            $ref: '#/components/schemas/EvaluationSegment'
        rank:
          type: integer
          format: int32
        segmentOperator:
          enum:
            - OR_SEGMENT_OPERATOR
            - AND_SEGMENT_OPERATOR
          type: string
          format: enum
        distributions:
          type: array
          items:
            $ref: '#/components/schemas/EvaluationDistribution'
    EvaluationRollout:
      type: object
      properties:
        type:
          enum:
            - UNKNOWN_ROLLOUT_TYPE
            - SEGMENT_ROLLOUT_TYPE
            - THRESHOLD_ROLLOUT_TYPE
          type: string
          format: enum
        rank:
          type: integer
          format: int32
        segment:
          $ref: '#/components/schemas/EvaluationRolloutSegment'
        threshold:
          $ref: '#/components/schemas/EvaluationRolloutThreshold'
    EvaluationVariant:
      type: object
      properties:
        id:
          type: string
        key:
          type: string
        attachment:
          type: string
    EvaluationSegment:
      type: object
      properties:
        key:
          type: string
        name:
          type: string
          description: name will be empty to avoid exposing internal information.
        description:
          type: string
          description: description will be empty to avoid exposing internal information.
        matchType:
          enum:
            - ALL_SEGMENT_MATCH_TYPE
            - ANY_SEGMENT_MATCH_TYPE
          type: string
          format: enum
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        constraints:
          type: array
          items:
            $ref: '#/components/schemas/EvaluationConstraint'
    EvaluationDistribution:
      type: object
      properties:
        ruleId:
          type: string
        variantKey:
          type: string
        variantAttachment:
          type: string
        rollout:
          type: number
          format: float
    EvaluationRolloutSegment:
      type: object
      properties:
        value:
          type: boolean
        segmentOperator:
          enum:
            - OR_SEGMENT_OPERATOR
            - AND_SEGMENT_OPERATOR
          type: string
          format: enum
        segments:
          type: array
          items:
            $ref: '#/components/schemas/EvaluationSegment'
    EvaluationRolloutThreshold:
      type: object
      properties:
        percentage:
          type: number
          format: float
        value:
          type: boolean
    EvaluationConstraint:
      type: object
      properties:
        type:
          enum:
            - UNKNOWN_CONSTRAINT_COMPARISON_TYPE
            - STRING_CONSTRAINT_COMPARISON_TYPE
            - NUMBER_CONSTRAINT_COMPARISON_TYPE
            - BOOLEAN_CONSTRAINT_COMPARISON_TYPE
            - DATETIME_CONSTRAINT_COMPARISON_TYPE
            - ENTITY_ID_CONSTRAINT_COMPARISON_TYPE
          type: string
          format: enum
        property:
          type: string
        operator:
          type: string
        value:
          type: string

````

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