> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Secret State

Retrieve state about a Secret such as whether it requires approval, doublelock, checkout, or other restricted actions to be performed before calling the get the secret.

<Note>
  External Documentation

  To learn more, visit the [Delinea documentation](https://updates.thycotic.net/secretserver/restapiguide/11.6.3/TokenAuth/#tag/Secrets/operation/SecretsService_GetSecretState).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                    |
  | --------- | -------------------------------------------------------------- |
  | Secret ID | Secret ID. Can be retrieved from the 'Get All Secrets' action. |
</div>

## Example Output

```json theme={"dark"}
{
	"actions": [
		"ChangePasswordNow"
	],
	"approvalEnd": "2019-08-24T14:15:22Z",
	"availableActions": {
		"extendCheckOut": true
	},
	"checkedOutUserDisplayName": "string",
	"checkedOutUserId": 0,
	"checkOutIntervalMinutes": 0,
	"checkOutMinutesRemaining": 0,
	"folderId": 0,
	"folderName": "string",
	"id": 0,
	"inheritPermissions": true,
	"isActive": true,
	"isCheckedOut": true,
	"isCheckedOutByCurrentUser": true,
	"passwordChangeFailed": true,
	"passwordChangePending": true,
	"remainingTimeWarningMinuteMarker": 0,
	"role": "string",
	"secretName": "string",
	"secretState": "None",
	"warningMinutesRemaining": 0
}
```

## Workflow Library Example

[Get Secret State with Delinea and Send Results Via Email](https://library.blinkops.com/workflows/get-secret-state-with-delinea-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-secret-state-with-delinea-and-send-results-via-email/canvas" />
</div>
