Skip to main content

Check if Secret Exists

Endpoint: GET /api/secrets/{key}/exists

Checks whether a secret exists in your Conductor cluster.

Path parameters

ParameterDescriptionTypeRequired/ Optional
keyThe secret key name.stringRequired.

Response

Returns 200 OK with a boolean value:

  • true if the secret exists
  • false if the secret does not exist

Examples

Check if secret exists (secret found)

Request

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

Response

true
Check if secret exists (secret not found)

Request

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

Response

false