> ## Documentation Index
> Fetch the complete documentation index at: https://allhandsai-chore-regenerate-agent-sdk-openapi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Secret Value

> Get a single secret value by name.

Returns the raw secret value as plain text. This endpoint is designed
to be used with LookupSecret for lazy secret resolution.

Raises:
    HTTPException: 400 if name format is invalid, 404 if secret not found.



## OpenAPI

````yaml /openapi/agent-sdk.json get /api/settings/secrets/{name}
openapi: 3.1.0
info:
  description: OpenHands Agent Server - REST/WebSocket interface for OpenHands AI Agent
  title: OpenHands Agent Server
  version: 1.52.0
servers: []
security: []
paths:
  /api/settings/secrets/{name}:
    get:
      tags:
        - Settings
      summary: Get Secret Value
      description: |-
        Get a single secret value by name.

        Returns the raw secret value as plain text. This endpoint is designed
        to be used with LookupSecret for lazy secret resolution.

        Raises:
            HTTPException: 400 if name format is invalid, 404 if secret not found.
      operationId: get_secret_value_api_settings_secrets__name__get
      parameters:
        - in: path
          name: name
          required: true
          schema:
            title: Name
            type: string
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - APIKeyHeader: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        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
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-Session-API-Key
      type: apiKey

````

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