> ## Documentation Index
> Fetch the complete documentation index at: https://microstrate-1133-notifications-prefs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a secret

> Retrieves a specific secret by its key from the secrets bucket



## OpenAPI

````yaml /api-reference/endpoint/secrets-manager/openapi.json get /secrets/{key}
openapi: 3.0.0
info:
  title: quiva.ai Gateway
  description: API for managing secrets in the quiva.ai platform
  version: 0.1.0
  contact:
    name: quiva.ai Support
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Secrets
    description: Operations for managing secrets
paths:
  /secrets/{key}:
    get:
      tags:
        - Secrets
      summary: Get a secret
      description: Retrieves a specific secret by its key from the secrets bucket
      operationId: getSecret
      parameters:
        - name: key
          in: path
          description: The key of the secret to retrieve
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Secret retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Secret'
              example:
                key: api-key
                value: sk_live_abcdefghijklmnopqrstuvwxyz
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: error retrieving secret
        '404':
          description: Secret not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: resource not found
components:
  schemas:
    Secret:
      type: object
      properties:
        key:
          type: string
          description: The unique identifier for the secret
        value:
          type: string
          description: The secret value
      required:
        - key
        - value
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message describing what went wrong
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````