---
title: "List workflow secrets"
method: GET
path: "/workflows/{workflowId}/secrets"
tags: ["Secrets"]
---

# List workflow secrets

`GET /workflows/{workflowId}/secrets`

## Request

- Base URL: `https://workflow.loopfour.ai/api/v1`
- URL: `https://workflow.loopfour.ai/api/v1/workflows/{workflowId}/secrets`
- Auth: API key in header `x-api-key`

Returns secret names (not values) for a workflow.

## Path parameters

- `workflowId` string, required

## Response `200`

Success

- object
  - `success` unknown
  - `data` Secret[]
    - `id` string
    - `workflowId` string
    - `key` string
    - `maskedValue` string, nullable
    - `lastUsedAt` string, date-time, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: Bad request — invalid parameters or request body.
- `401`: Missing or invalid API key.
- `403`: Forbidden — insufficient permissions for this resource.

---

[API](https://skmtc.dev/loopfour/apis/loopfour-workflows-api.md) - [All operations](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/revisions/872822a3af00?raw)
