Skip to content

List Secrets with Tags

Endpoint: GET /api/secrets-v2

Retrieves all secret names that the user has permission to grant access to, along with their tags.

Response

Returns 200 OK with an array of objects. Each object contains:

  • name: The secret name (string)
  • tags: An array of tag objects with key and value properties

Examples

List secrets with tags

Request

curl -X 'GET' \
  'https://<YOUR-SERVER-URL>/api/secrets-v2' \
  -H 'accept: application/json' \
  -H 'X-Authorization: <TOKEN>'

Response

[
  {
    "tags": [
      {
        "key": "env",
        "value": "prod"
      }
    ],
    "name": "atlassian-token"
  },
  {
    "tags": [],
    "name": "payment_api_token"
  },
  {
    "tags": [
      {
        "key": "team",
        "value": "backend"
      }
    ],
    "name": "GITHUB_TOKEN"
  },
  {
    "tags": [],
    "name": "openai_api_key"
  }
]