---
title: "List who used which secret, where, and how it ended"
method: GET
path: "/v1/org/secret-activity"
tags: ["Secrets"]
---

# List who used which secret, where, and how it ended

`GET /v1/org/secret-activity`

## Request

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

Lists uses of organization secrets across the organization, newest first, optionally for one secret or one member: the person, the agent if any, the command or site, and whether it was released, needed approval, or was refused. Never returns secret values.

## Query parameters

- `secret` string
- `memberId` string, typeid
- `cursor` string
- `limit` integer

## Response `200`

Secret uses.

- OrganizationSecretActivityResponse
  - `activity` OrganizationSecretActivityEntry[], required
    - `id` string, required
    - `at` string, date-time, required
    - `secretId` string, required
    - `secretName` string, required
    - `secretType` string, required
    - `member` object, required
      - `id` string, required
      - `name` string, nullable, required
      - `email` string, nullable, required
    - `agent` object, nullable, required
      - `id` string, required
      - `name` string, nullable, required
    - `surface` 'cli' | 'desktop' | 'cloud', required
    - `target` string, required
    - `outcome` 'released' | 'approval_required' | 'blocked' | 'not_allowed' | 'wrong_target' | 'wrong_boundary' | 'failed', required
    - `approval` string, nullable, required
  - `nextCursor` string, nullable, required: Pass as cursor to fetch the next page; null on the last page.

## 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** `6a95d77df4da`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/secret-activity/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)
