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

# Get secret

> Fetch the metadata of one of your organization's secrets.

Returns a secret's name, organization, and timestamps. The secret value is never returned.

```bash theme={null}
curl https://api.allium.so/api/v1/secrets/${SECRET_ID} \
  -H "X-API-KEY: ${ALLIUM_API_KEY}"
```

**Response:**

```json theme={null}
{
  "id": "<secret_id>",
  "name": "webhook-signing-key",
  "organization_id": "<organization_id>",
  "created_at": "2026-10-01T12:00:00Z",
  "updated_at": "2026-10-01T12:00:00Z"
}
```

Returns `404` if the secret doesn't exist or belongs to another organization.


## OpenAPI

````yaml _openapi/account-api.json GET /api/v1/secrets/{secret_id}
openapi: 3.1.0
info:
  title: Allium Account API
  version: 0.1.0
servers:
  - url: https://api.allium.so
security: []
paths:
  /api/v1/secrets/{secret_id}:
    get:
      tags:
        - SECRETS
      summary: Get Secret
      operationId: get_org_secret_api_v1_secrets__secret_id__get
      parameters:
        - $ref: '#/components/parameters/SecretId'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgSecret'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - APIKeyBearer: []
components:
  parameters:
    SecretId:
      name: secret_id
      in: path
      required: true
      description: Secret ID, as returned by Create Secret or List Secrets.
      schema:
        type: string
        title: Secret Id
  schemas:
    OrgSecret:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        organization_id:
          type: string
          title: Organization Id
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
      type: object
      required:
        - name
        - organization_id
      title: OrgSecret
      description: Secret metadata. The secret value is never returned.
    ErrorMessage:
      properties:
        message:
          type: string
          title: Message
      type: object
      required:
        - message
      title: ErrorMessage
  responses:
    NotFound:
      description: >-
        The secret does not exist in your organization, or the API key does not
        belong to an organization
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorMessage'
  securitySchemes:
    APIKeyBearer:
      type: apiKey
      in: header
      name: X-API-KEY

````