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

# Get secret value

> Retrieves the actual secret value for a specific secret by name. This endpoint returns sensitive data and requires read permissions on the secret. The secret value is returned as stored in Infisical.



## OpenAPI

````yaml /openapi/em-runtime-governance-v2.yaml get /governance/resources/{resource_type}/{resource_id}/secrets/{secret_name}
openapi: 3.1.0
info:
  title: em_runtime_governance
  version: 5.27.0
servers: []
security: []
paths:
  /governance/resources/{resource_type}/{resource_id}/secrets/{secret_name}:
    get:
      tags:
        - secrets
      summary: Get secret value
      description: >-
        Retrieves the actual secret value for a specific secret by name. This
        endpoint returns sensitive data and requires read permissions on the
        secret. The secret value is returned as stored in Infisical.
      operationId: get_secret
      parameters:
        - name: resource_type
          in: path
          required: true
          schema:
            type: string
            description: Type of resource the secret belongs to
            title: Resource Type
          description: Type of resource the secret belongs to
        - name: resource_id
          in: path
          required: true
          schema:
            type: string
            description: Unique identifier of the resource containing the secret
            title: Resource Id
          description: Unique identifier of the resource containing the secret
        - name: secret_name
          in: path
          required: true
          schema:
            type: string
            description: Name of the secret to retrieve
            title: Secret Name
          description: Name of the secret to retrieve
        - name: X-Project-ID
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Project-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecretValue'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service Unavailable
      security:
        - HTTPBearer: []
components:
  schemas:
    SecretValue:
      properties:
        name:
          type: string
          title: Name
          description: Name of the secret
        value:
          type: string
          title: Value
          description: The actual secret value (sensitive data)
      type: object
      required:
        - name
        - value
      title: SecretValue
      description: Secret value response.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorResponse
      description: Standard error response model.
    ErrorBody:
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          title: Message
        details:
          additionalProperties: true
          type: object
          title: Details
        request_id:
          type: string
          title: Request Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - code
        - message
        - request_id
        - timestamp
      title: ErrorBody
      description: Error body with structured details.
    ErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - INVALID_TOKEN
        - INSUFFICIENT_PERMISSIONS
        - RESOURCE_NOT_FOUND
        - RESOURCE_ALREADY_EXISTS
        - VALIDATION_ERROR
        - RATE_LIMIT_EXCEEDED
        - SERVICE_UNAVAILABLE
        - INTERNAL_ERROR
      title: ErrorCode
      description: Standard error codes for API responses.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````