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

# List Application Env Secrets

> List the environment-secret keys of an application: which keys its generated manifests read out of the <app>-env Secret, which of them have a stored value, and when each was last set. Values are never returned - there is no reveal endpoint on this surface, because a value the platform writes into a cluster Secret has no reason to travel back out. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).



## OpenAPI

````yaml https://platform.ankra.app/openapi.json get /api/v1/org/applications/{application_id}/env-secrets
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /api/v1/org/applications/{application_id}/env-secrets:
    get:
      tags:
        - Applications API
      summary: List Application Env Secrets
      description: >-
        List the environment-secret keys of an application: which keys its
        generated manifests read out of the <app>-env Secret, which of them have
        a stored value, and when each was last set. Values are never returned -
        there is no reveal endpoint on this surface, because a value the
        platform writes into a cluster Secret has no reason to travel back out.
        A browser session twin is mounted at the same path without the /api/v1
        prefix (cookie authentication).
      operationId: >-
        list_application_env_secrets_api_v1_org_applications__application_id__env_secrets_get
      parameters:
        - in: path
          name: application_id
          required: true
          schema:
            title: Application Id
            type: string
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Ankra-Organisation-Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationEnvSecrets'
          description: Successful Response
        '401':
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: Not found ("Application not found")
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ApplicationEnvSecrets:
      description: >-
        An application's environment-secret surface: the Secret the generated
        manifests read, the keys that have a value, and the keys still missing
        one.
      properties:
        secret_name:
          description: >-
            The Kubernetes Secret the deploy renders these keys into
            ("<app>-env").
          title: Secret Name
          type: string
        secrets:
          items:
            $ref: '#/components/schemas/ApplicationEnvSecretItem'
          title: Secrets
          type: array
        missing_keys:
          description: Keys the manifests read that have no value yet.
          items:
            type: string
          title: Missing Keys
          type: array
      required:
        - secret_name
        - secrets
        - missing_keys
      title: ApplicationEnvSecrets
      type: object
    DemoDetailError:
      description: >-
        The FastAPI-style detail envelope the demo routes use for
        400/403/404/409/502 responses.
      properties:
        detail:
          type: string
      required:
        - detail
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ApplicationEnvSecretItem:
      description: >-
        One key of an application's <app>-env Secret. The stored value is never
        part of this model - no endpoint on this surface returns one.
      properties:
        key:
          title: Key
          type: string
        required:
          description: >-
            True when the application's committed manifests read this key
            through a secretKeyRef.
          title: Required
          type: boolean
        status:
          description: >-
            "set" when the secret store holds a value for this key,
            "value_missing" when the value was removed out of band.
          enum:
            - set
            - value_missing
          title: Status
          type: string
        updated_at:
          title: Updated At
          type: string
        updated_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated By
      required:
        - key
        - required
        - status
        - updated_at
        - updated_by
      title: ApplicationEnvSecretItem
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````