List secrets

<span class="badge">Commercial & Enterprise</span> List secrets available to the organization, available to a given workspace, or with a given alias. <Note>Only organization admins can list all secrets in the organization. Non-admins must specify a workspace.</Note>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Headers

IB-ContextstringOptional
Specify whether to use your community account or organization account to complete the request. To use your community account, define as your user ID. To use your organization account, define as your organization ID. If unspecified, defaults to community account context. See [Authorization and context identification](/api-sdk/authorization#ib-context-header) for details.

Query parameters

workspacestringOptional
Show secrets available in the specified workspace. <Info>Only members of a workspace can access secrets that are available within that workspace.</Info>
aliasstringOptional
Get the secret with the specified alias.

Response

A list of secrets.
secretslist of objects or null