---
title: "List the API keys and logins shared with you"
method: GET
path: "/v1/org/my-secrets"
tags: ["Secrets"]
---

# List the API keys and logins shared with you

`GET /v1/org/my-secrets`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/my-secrets`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Lists the organization secrets (API keys, website logins, command-line secrets) the caller is allowed to use, by name, with what each is for (its service host, website or program) and whether it is used always, after asking, or never. Use this to find a secret's name before sending a request with it. Never returns a secret value or who else has access.

## Response `200`

Secrets the caller may use.

- MyOrganizationSecretsResponse
  - `secrets` MyOrganizationSecret[], required
    - `secret` UsableOrganizationSecret, required
      - `id` string, required
      - `name` string, required
      - `description` string, nullable, required
      - `secretType` 'mcp_header' | 'http_header' | 'ssh_key' | 'cli_env' | 'web_login', required
      - `executionBoundary` 'cloud_only' | 'desktop_allowed', required
      - `targetHost` string, nullable, required
      - `targetCommand` string, nullable, required
      - `headerName` string, nullable, required
      - `envName` string, nullable, required
      - `loginUsername` string, nullable, required
    - `access` object, required
      - `effectiveRule` 'allow' | 'ask' | 'block', required
      - `myRule` 'allow' | 'ask' | 'block', nullable, required
      - `organizationRule` 'allow' | 'ask' | 'block', nullable, required
      - `canChooseAlways` boolean, required
    - `lastUsedAt` string, date-time, nullable, required

## Other responses

- `400`: Invalid request.
- `401`: Sign-in required.
- `403`: Not allowed, approval required, wrong target, or a person's own sign-in is required.
- `404`: Organization secrets are off or the secret is not available to the caller.

## Changes

- **2026-12-03** `b433928052b7`: 1 info
  - added the required property `secrets/items/secret/headerName` to the response with the `200` status
- **2026-12-03** `6a95d77df4da`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/my-secrets/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
