---
updatedAt: 2025-12-18T00:27:39.000Z
---

# Get Requestable Managed Account(s)

### Required Permission(s)
Any of the following:
- Requestor role
- Requestor/Approver role
- ISA role

### Other Requirements

- Managed Account 'Enable for API Access' must be enabled (see: <see cref="P:BeyondTrust.PasswordSafe.API.Models.ManagedAccountModel.ApiEnabled">`ManagedAccount.ApiEnabled=true`</see>)
- Managed Account is either dedicated to the API User or _not_ dedicated to any other User

# OpenAPI definition

````json
{
  "openapi": "3.0.4",
  "info": {
    "title": "BeyondTrust Password Safe API",
    "description": "<details>\r\n<summary>\r\nThis document specifies the Representational State Transfer (REST) compliant Application Programmer Interface (API) over HTTPS for BeyondInsight and Password Safe. It is a way to integrate a portion of the BeyondInsight and Password Safe functionality into your own applications.\r\n\r\nUsing the REST API makes it easier for users to build customized solutions for their specific needs while ensuring secure data transmission. The API provides a set of predefined operations, or endpoints, that can be accessed using HTTP Requests, including GET requests to retrieve data, POST requests to create new data, PUT requests to update existing data, and DELETE requests to remove data.\r\n\r\nThis resource is intended for readers with knowledge of HTTPS request and response processing, web development, and JSON notation.\r\n</summary>\r\n\r\n## Usage\r\n\r\n### API key\r\n\r\nThe API key is a cryptographically strong random sequence of numbers hashed into a 128-character string. It is encrypted and stored internally using AES 256 encryption. Any language with a Representational State Transfer (REST) compliant interface can access the API with the API key and RunAs in the authorization header.\r\n\r\n> ℹ️ \r\n> \r\n> Some environments may still use an old-style API key, which is a formatted Globally Unique Identifier (GUID). Rotating the API Key produces the new-style API key described above.\r\n\r\n### Session state\r\n\r\nSession state is maintained between API calls. The method is dependent on the scripting language. Initiate a session using API **POST Auth/SignAppIn** and always call **POST Auth/Signout** when you are done.\r\n\r\n### Base endpoint\r\n\r\nThe following base endpoint is used throughout this document. For on-premises instances, **the-server** is a placeholder and should be replaced with the server name in your environment.\r\n\r\n```\r\n<base> = https://the-server/BeyondTrust/api/public/v3\r\n```\r\n\r\nFor cloud instances, **the-cloud-instance-url** is a placeholder and should be replaced with the cloud instance URL in your environment.\r\n\r\n```\r\n<base> = https://the-cloud-instance-url/BeyondTrust/api/public/v3\r\n```\r\n\r\nSSL is required to use the Password Safe Public API.\r\n\r\n### Authorization header\r\n\r\nUse the web request authorization header to communicate the API application key, the **RunAs** username, and the user password:\r\n\r\n- **key:** The API key configured in BeyondInsight for your application.\r\n- **runas:** The username of a BeyondInsight user that has been granted permission to use the API key.\r\n- **pwd:** The **RunAs** user password surrounded by square brackets (optional; required only if the **User Password** is required on the application API registration).\r\n\r\n```\r\nAuthorization=PS-Auth key=c479a66f…c9484d; runas=doe-main\\johndoe; pwd=[un1qu3];\r\n```\r\n\r\n> ℹ️ \r\n> \r\n> The API keys in the examples have been shortened for brevity. A domain user is being used. When using a domain user, depending on the programming or scripting tool used, you may need to escape the backslash (\\) character between the domain name and username.\r\n\r\n### Two-Factor authentication\r\n\r\nDepending on how the two-factor server is configured, a programmatic two-factor challenge is sometimes required.\r\n\r\n#### No challenge\r\n\r\nIf the two-factor server is configured to authenticate through a push or mobile two-factor challenge, a challenge response is often not required. The first call to **POST Auth/SignAppIn** logs the user in, as long as the authentication request to the two-factor server does not time out.\r\n\r\n#### Challenge\r\n\r\nWhen a two-factor challenge is configured, two calls to **POST Auth/SignAppIn** are required and session state must be maintained between these two calls to validate the two-factor challenge.\r\n\r\nThe initial call to POST Auth/SignAppIn results in a _401 Unauthorized response_ which contains a header WWW-Authenticate-2FA containing the prompt from the authentication service. The prompt can be used to prompt the user for the challenge answer.\r\n\r\n> ℹ️ \r\n> \r\n> If the WWW-Authenticate-2FA header is not present, a two-factor authentication challenge has not been configured for the user.\r\n\r\nWhen the challenge answer has been received from the user, **POST Auth/SignAppIn** is called again with the challenge answer in the authorization header, similar to the other authorization parameters:\r\n\r\n- **challenge:** The answer to the two-factor challenge.\r\n\r\n```\r\nAuthorization=PS-Auth key=c479a66f…c9484d; runas=doe-main\\johndoe; pwd=[un1qu3]; challenge=543687;\r\n```\r\n\r\n> ℹ️ \r\n> \r\n> The challenge answer is only required on the second call to <b>POST Auth/SignAppIn</b> and not on subsequent requests.\r\n\r\n### OAuth public API authentication\r\n\r\nThe OAuth sign-in method uses the OAuth client credential flow. The client credentials grant type is used by clients to obtain an access token outside of the context of a user.\r\n\r\nOnly users with user type **Application**, who are associated to an **API Access Policy** API registration in BeyondInsight, can use this authentication method.\r\n\r\n> ℹ️ \r\n> \r\n> Impersonation for the OAuth client credential flow is different than API key. Instead of providing the <b>RunAs</b> user as part of the Authorization header you provide the RunAs user using a new <b>RunAs</b> header. You can only impersonate users who are in the same group as the application user.\r\n\r\n> ℹ️ \r\n> \r\n> Setting up an OAuth authentication method requires the following steps:<ul style=\"text-align:left;\"><li>Create an API Registration using the API Access Policy type</li><li>Create an application user</li><li>Assign your access policy to the user</li><li>Record their client ID and secret for later use</li><li>Assign user to a group with necessary permissions</li></ul>\r\n\r\n### Use certificates with APIs\r\n\r\nWhen **Client certificate required** is enabled on API authentication, the following items are required to authenticate via API:\r\n\r\n- Client certificate must be present on the calling machine/instance.\r\n- Client certificate must be trusted by the appliance/Instance.\r\n- Client certificate must be included in script when calling Password Safe API.\r\n\r\nFor cloud certificate authentication, the client certificate must be signed by a well-known CA for cloud instance to trust it and allow authentication.\r\n\r\n> ℹ️ \r\n> \r\n> The client cert can be downloaded from the Password Safe appliance/Instance in the <b>Configuration > System > Downloads</b> menu.<p>For examples of utilizing a client cert in your API script, refer to the default scripts in the resource kit for your relevant version.</p>\r\n\r\n### Request body\r\n\r\nFor Password Safe API Endpoints, some request bodies have multiple versions available. The request body versions allow for different sets of data to be sent to a API endpoint dependent on what needs to be accomplished by the request. Each request body version is outlined on its relevant endpoint and these body versions are only relevant to their listed URI.\r\n\r\nWhen using a request body, if no version is specified in the URI, the default listed version is used (typically v3.0). To use a specific version, the version must be included in the URI.\r\n\r\n> ✅ **Example**\r\n> \r\n> https\\://server/BeyondTrust/api/public/v3.1/endpoint\r\n\r\n### Common response codes\r\n\r\nBelow are response codes common to all APIs. Custom responses are detailed in the individual endpoints.\r\n\r\n- 200 – Request successful.\r\n- 204 – Request successful. No content in body.\r\n- 400 – Bad Request – Validation failure, missing request body, or string values exceed the maximum length. Reason in response body.\r\n- 401 – Unauthorized – User is not authenticated. Typical reasons include:\r\n  - An invalid product license was detected.\r\n  - The request headers were not set properly.\r\n  - The server could not verify the validity of the request (due to one or more API factors).\r\n  - The user session has expired.\r\n  - The API key has been rotated but has not been updated in the calling script or application.\r\n\r\n> ℹ️ \r\n> \r\n> When you encounter a 401 error due to factor validation failure, a User Audit entry is created in BeyondInsight and an email is sent to the administrator detailing the reason. Look here first for the reason why authorization failed.\r\n\r\n- 403: – Access forbidden. User does not have the appropriate role or permission.\r\n\r\n> ℹ️ \r\n> \r\n> A 403 can also occur when SSL trust cannot be established.\r\n\r\n- 404 – Object not found where expected. Reason in response body.\r\n- 500 – Unexpected server error occurred. \r\n\r\n#### Examples\r\n\r\n> ✅ **Example** C#\r\n> \r\n> <p>Create and reuse a persistent connection using the System.Net.Http.HttpClient class.</p>\r\n> \r\n> ```\r\n> HttpClient client = new HttpClient();\r\n> client.DefaultRequestHeaders.Add(\"Authorization\",\r\n> \"PS-Auth key= c479a66f…c9484d; runas=doe-main\\\\johndoe;\");\r\n> \r\n> string json = Newtonsoft.Json.JsonConvert.SerializeObject(null);\r\n> System.Net.Http.StringContent content = new StringContent(json);\r\n> content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue(\"application/json\");\r\n> \r\n> HttpResponseMessage signInResponse = client.PostAsync(\"<base>/Auth/SignAppin\", content).Result;\r\n> ```\r\n> \r\n> <p>Subsequent calls:</p>\r\n> \r\n> ```\r\n> HttpResponseMessage getResponse = client.GetAsync(\"<base>/ManagedAccounts\").Result;\r\n> ```\r\n> \r\n> <p>User Password Factor Enabled (header example only)</p>\r\n> \r\n> ```\r\n> HttpClient client = new HttpClient();\r\n> client.DefaultRequestHeaders.Add(\"Authorization\",\r\n> \"PS-Auth key= c479a66f…c9484d; runas=doe-main\\\\johndoe; pwd=[un1qu3];\");\r\n> ```\r\n\r\n\r\n\r\n> ✅ **Example** Powershell\r\n> \r\n> <p>Powershell internally creates a session variable to use for each subsequent call; Invoke-RestMethod CmdLet options -SessionVariable and -WebSession respectively. In the below example, the variable is named \"session\" and has script-level scope.</p>\r\n> \r\n> ```\r\n> $headers = @{ Authorization=\"PS-Auth key=c479a66f…c9484d; runas=doe-main\\\\johndoe;\"; };\r\n> $uri = \"<base>/Auth/SignAppin\";\r\n> $signinResult = Invoke-RestMethod -Uri $uri -Method POST -Headers $headers -SessionVariable script:session;\r\n> ```\r\n> \r\n> <p class=\"nobreak-after\">Subsequent calls:</p>\r\n> \r\n> ```\r\n> $uri = \"<base>/ManagedAccounts\";\r\n> $accounts = Invoke-RestMethod -Uri $uri -Method GET -WebSession $script:session -Headers $headers;\r\n> ```\r\n\r\n\r\n\r\n> ✅ **Example** Java\r\n> \r\n> <p>Create and reuse a persistent connection using the java.net.HttpURLConnection class.</p>\r\n> \r\n> ```\r\n> URL baseURL = new URL(\"HTTPS\", \"the-server\", 443, \"/BeyondTrust/api/public/v3/\");\r\n> URL url = new URL(baseURL, \"Auth/SignAppIn\");\r\n> HttpURLConnection conn = (HttpURLConnection)url.openConnection();\r\n> conn.setRequestProperty(\"Authorization\",\"PS-Auth key=c479a66f…c9484d; runas=doe-main\\\\johndoe;\");\r\n> ```\r\n\r\n> ✅ **Example** Ruby\r\n> \r\n> <p>Using the rest-client gem, carry over the ASP.NET_SessionId header.</p>\r\n> \r\n> ```\r\n> samp_key = 'PS-Auth key= c479a66f…c9484d; runas=doe-main\\\\johndoe;'\r\n> result = RestClient::Request.execute(method: :post, url: '<base>/Auth/SignAppin', :headers => {‘Authorization’ => samp_key} )\r\n> session_id = result.cookies[\"ASP.NET_SessionId\"]\r\n> ```\r\n> \r\n> <p>Subsequent calls:</p>\r\n> \r\n> ```\r\n> result = RestClient::Request.execute(method: :get, url: '<base>/ManagedAccounts', :headers=>{‘Authorization’ => samp_key, :cookies => {'ASP.NET_SessionId' => session_id}} )\r\n> ```\r\n\r\n\r\n\r\n> ✅ **Example** Python\r\n> \r\n> <p>Create and reuse a persistent connection using the requests module.</p>\r\n> \r\n> ```\r\n> header = {'Authorization': 'PS-Auth key=c479a66f…c9484d; runas=doe-main\\\\johndoe;'}\r\n> session = requests.Session()\r\n> session.headers.update(header)\r\n> response = session.post('<base>/Auth/SignAppin')\r\n> ```\r\n> \r\n> <p>Subsequent calls:</p>\r\n> \r\n> ```\r\n> accounts = session.get('<base>/ManagedAccounts')\r\n> ```\r\n\r\n\r\n\r\n> ✅ **Example** Bash\r\n> \r\n> <p>Using curl, option <b>–c</b> stores authentication information for subsequent requests and <b>–b</b> uses it in subsequent API calls.</p>\r\n> \r\n> ```\r\n> curl -i -c apiToken -X POST https:<base>/Auth/SignAppin -H \"Content-Type: application/json\" -H \"Authorization: PS-Auth key=c479a66f…c9484d; runas=doe-main\\\\johndoe;\" -d \"\"\r\n> ```\r\n> \r\n> <p>Subsequent calls:</p>\r\n> \r\n> ```\r\n> curl -i -b apiToken -X GET https:<base>/ManagedAccounts\r\n> ```\r\n\r\n#### Workflow\r\n\r\nThere are some loose dependencies between the APIs. A typical sequence is to list accounts or find an account, request a password, retrieve that password (once approved), and then release the password.\r\n\r\n##### Create and manage an asset, create user group, assign roles\r\n\r\nCase: Create and manage an asset, create a managed account, create a managed account quick rule, create/provision an LDAP/AD/BeyondInsight user group, grant **Read** access to new Smart Rule with requester role and access policy.\r\n\r\n- **POST <base>/Auth/SignAppin**\r\n- **POST <base>/Workgroups/{ID}/Assets**\r\n- **POST <base>/Assets/{assetId}/ManagedSystems**\r\n- **POST <base>/ManagedSystems/{managedSystemId}/ManagedAccounts**\r\n- **POST <base>/QuickRules**\r\n- **POST <base>/UserGroups**\r\n- **POST <base>/UserGroups/{userGroupId}/SmartRules/{smartRuleId}/Roles**\r\n- **POST <base>/Auth/Signout**\r\n\r\n##### Retrieve a password\r\n\r\nCase: request, retrieve, and check in a password for a managed account:\r\n\r\n- **POST <base>/Auth/SignAppin**\r\n- **GET <base>/ManagedAccounts** OR **GET <base>/ManagedAccounts?systemName={systemName}&accountName={accountName}**\r\n- **POST <base>/Requests**\r\n- **GET <base>/Credentials/{requestId}**\r\n- **PUT <base>/Requests/{requestId}/Checkin**\r\n- **POST <base>/Auth/Signout**\r\n\r\n##### Create a session\r\n\r\nCase: request a session, create a session, and check in the request for a managed account:\r\n\r\n- **POST <base>/Auth/SignAppin**\r\n- **GET <base>/ManagedAccounts** OR **GET <base>/ManagedAccounts?systemName={systemName}&accountName={accountName}**\r\n- **POST <base>/Requests (AccessType=\"RDP\" or AccessType=\"SSH\" or AccessType=\"App\")**\r\n- **POST <base>/Requests/{requestId}/Sessions (SessionType == Request.AccessType above)**\r\n- **PUT <base>/Requests/{requestId}/Checkin**\r\n- **POST <base>/Auth/Signout**\r\n\r\n##### Retrieve a password as an ISA\r\n\r\nCase: create an ISA password request:\r\n\r\n- **POST <base>/Auth/SignAppin**\r\n- **GET <base>/ManagedAccounts** OR **GET <base>/ManagedAccounts?systemName={systemName}&accountName={accountName}**\r\n- **POST <base>/ISARequests**\r\n- **POST <base>/Auth/Signout**\r\n\r\n##### Create a session as an ISA\r\n\r\nCase: create an ISA session:\r\n\r\n- **POST <base>/Auth/SignAppin**\r\n- **GET <base>/ManagedAccounts** OR **GET <base>/ManagedAccounts?systemName={systemName}&accountName={accountName}**\r\n- **POST <base>/ISASessions**\r\n- **POST <base>/Auth/Signout**\r\n\r\n## Authentication\r\n\r\n### POST Auth/SignAppin\r\n\r\n#### Purpose\r\n\r\nAuthenticates the provided credentials and creates a user session.\r\n\r\n#### Required permissions\r\n\r\nA user group to which the user belongs must be granted access to the API key given in authorization header. Must be running script from a valid source address as configured in API registration for the given API key.\r\n\r\n#### Request body\r\n\r\nNone.\r\n\r\n#### Response body\r\n\r\nContent-Type: application/json\r\n\r\n```\r\n{\r\n    UserId: int,\r\n    SID: string,\r\n    EmailAddress: string,\r\n    UserName: string,\r\n    Name: string\r\n}\r\n```\r\n\r\n#### Response codes\r\n\r\n- 200 – Request successful. User model in the response body.\r\n- 403 – Access forbidden. Returned if the Password Safe license is not valid.\r\n- 410 – API version has been disabled.\r\n\r\n### POST Auth/Signout\r\n\r\n#### Purpose\r\n\r\nTerminates the current user session.\r\n\r\n#### Required permissions\r\n\r\nNone.\r\n\r\n#### Request body\r\n\r\nNone.\r\n\r\n#### Response body\r\n\r\nNone.\r\n\r\n#### Response codes\r\n\r\n- 200 – Request successful.\r\n\r\n### OAuth public API authentication\r\n\r\n### POST Auth/Connect/Token\r\n\r\n#### Purpose\r\n\r\nAuthenticates the provided credentials and allows access to the public API.\r\n\r\n#### Required permissions\r\n\r\nApplication user must be associated to an API Access Policy API registration and must belong to a user group with necessary permissions.\r\n\r\n#### Request body\r\n\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n```\r\ngrant_type=client_credentials&client_id=[user-client-id]&client_secret=[user-client-secret]\r\n```\r\n\r\n#### Response body\r\n\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n```\r\n{\r\n        access_token: string,\r\n        expires_in: int,\r\n        token_type:string = “Bearer”,\r\n        scope: string\r\n}\r\n```\r\n\r\n#### Response body details\r\n\r\n- **access\\_token**: The privileged credential to use in the Authorization header for API requests to authenticate the use.\r\n- **expires\\_in**: Lifetime (in seconds) that the token is valid.\r\n- **token\\_type**: Describes the access token (always **Bearer**).\r\n- **scope**: Describes the scope of the access token, which is what the token is allowed to perform. For application users, this consists of only a scope called **publicapi**.\r\n\r\n### POST Auth/SignAppIn\r\n\r\n#### Request body\r\n\r\nNone .\r\n\r\n#### Header\r\n\r\n**Authorization**: Bearer \\[access\\_token\\]\r\n\r\n> ℹ️ \r\n> \r\n> Cookies are still supported using this sign-in method.\r\n</details>",
    "contact": {
      "name": "BeyondTrust Support",
      "url": "https://www.beyondtrust.com/support"
    },
    "version": "v3"
  },
  "servers": [
    {
      "url": "/beyondtrust"
    }
  ],
  "paths": {
    "/api/public/v3/managedaccounts": {
      "get": {
        "tags": [
          "Managed Accounts"
        ],
        "summary": "Get Requestable Managed Account(s)",
        "description": "\r\n### Required Permission(s)\r\nAny of the following:\r\n- Requestor role\r\n- Requestor/Approver role\r\n- ISA role\r\n\r\n### Other Requirements\r\n\r\n- Managed Account 'Enable for API Access' must be enabled (see: <see cref=\"P:BeyondTrust.PasswordSafe.API.Models.ManagedAccountModel.ApiEnabled\">`ManagedAccount.ApiEnabled=true`</see>)\r\n- Managed Account is either dedicated to the API User or _not_ dedicated to any other User",
        "operationId": "get-api-public-v3-managedaccounts",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "(recommended) Type of Managed Account to return:\r\n\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.RequestableTypes.System\">system</see>: Local systems\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.RequestableTypes.Database\">database</see>: Database systems\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.RequestableTypes.DomainLinked\">domainlinked</see>: Domain-linked\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.RequestableTypes.Cloud\">cloud</see>: Cloud systems\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.RequestableTypes.Application\">application</see>: Applications\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.RequestableTypes.RecentlyUsed\">recent</see>: Recently used",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "systemName",
            "in": "query",
            "description": "Name of the Managed System",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "accountName",
            "in": "query",
            "description": "Name of the Managed Account",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "workgroupName",
            "in": "query",
            "description": "Name of the Workgroup",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "applicationDisplayName",
            "in": "query",
            "description": "Display name of the Application (when given, `type` must be application)",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "ipAddress",
            "in": "query",
            "description": "IP Address of the managed Asset. When given, `type` must be one of:\r\n\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.RequestableTypes.System\">system</see>: Local systems\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.RequestableTypes.Database\">database</see>: Database systems\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.RequestableTypes.DomainLinked\">domainlinked</see>: Domain-linked",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "systemID",
            "in": "query",
            "description": "ID of the Managed System",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of records to return",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1000
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Number of records to skip before returning `limit` records",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Request successful",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "title": "accountName and systemName|systemID are given",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ManagedAccountRequestableModel"
                        }
                      ]
                    },
                    {
                      "title": "other combinations of query parameters",
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ManagedAccountRequestableModel"
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Access forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Entity not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ManagedAccountRequestableModel": {
        "type": "object",
        "properties": {
          "PlatformID": {
            "type": "integer",
            "description": "ID of the target Platform",
            "format": "int32"
          },
          "SystemId": {
            "type": "integer",
            "description": "ID of the target Managed System",
            "format": "int32"
          },
          "SystemName": {
            "type": "string",
            "description": "Name of the target Managed System",
            "nullable": true
          },
          "InstanceName": {
            "type": "string",
            "description": "Database instance name of a database-type Managed System or empty for the default instance",
            "nullable": true
          },
          "DomainName": {
            "type": "string",
            "description": "Domain name for a domain-type account",
            "nullable": true
          },
          "AccountId": {
            "type": "integer",
            "description": "ID of the Managed Account",
            "format": "int32"
          },
          "AccountName": {
            "type": "string",
            "description": "Name of the Managed Account",
            "nullable": true
          },
          "UserPrincipalName": {
            "type": "string",
            "description": "User Principal Name of the Managed Account",
            "nullable": true
          },
          "AccountDescription": {
            "type": "string",
            "description": "Managed Account description",
            "nullable": true
          },
          "ApplicationID": {
            "type": "integer",
            "description": "ID of the Application for Application-based access",
            "format": "int32",
            "nullable": true
          },
          "ApplicationDisplayName": {
            "type": "string",
            "description": "Display name of the Application for Application-based access",
            "nullable": true
          },
          "MaximumReleaseDuration": {
            "type": "integer",
            "description": "(minutes) Maximum release duration",
            "format": "int32"
          },
          "DefaultReleaseDuration": {
            "type": "integer",
            "description": "(minutes) Default release duration",
            "format": "int32",
            "nullable": true
          },
          "LastChangeDate": {
            "type": "string",
            "description": "Date and time of the last password change",
            "format": "date-time",
            "nullable": true
          },
          "NextChangeDate": {
            "type": "string",
            "description": "Date and time of the next password change",
            "format": "date-time",
            "nullable": true
          },
          "ChangeState": {
            "type": "integer",
            "description": "<see cref=\"T:BeyondTrust.PasswordSafe.API.Models.Common.Constants.Credential.ChangeStates\">Change state</see> of the account credentials:\r\n            \r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.Credential.ChangeStates.Idle\">0</see>: Idle - No change taking place or scheduled within 5 minutes\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.Credential.ChangeStates.Changing\">1</see>: Changing - Credential currently changing\r\n- <see cref=\"F:BeyondTrust.PasswordSafe.API.Models.Common.Constants.Credential.ChangeStates.Queued\">2</see>: Queued - Credential is queued to change or scheduled to change within 5 minutes",
            "format": "int32"
          },
          "IsChanging": {
            "type": "boolean",
            "description": "True if the account credentials are in the process of changing, otherwise false",
            "readOnly": true
          },
          "IsISAAccess": {
            "type": "boolean",
            "description": "True if the account is for Information Systems Administrator (ISA) access, otherwise false.\r\n\r\nIf true, credential access is through `POST ISARequests` and session access is through `POST ISASessions`.\r\nIf false, credential access is through `POST Requests` and `GET Credentials`; session access is through `POST Requests` and `POST Sessions`."
          },
          "PreferredNodeID": {
            "type": "string",
            "description": "ID of the preferred Node for establishing Sessions. If no Node is preferred, returns the local Node ID.",
            "nullable": true
          },
          "TotpEnabled": {
            "type": "boolean",
            "description": "True if TOTP is enabled for the Managed Account, otherwise false"
          },
          "TotpParameters": {
            "$ref": "#/components/schemas/ManagedAccountTotpModel"
          }
        },
        "additionalProperties": false,
        "description": "Requestable Managed Account"
      },
      "ManagedAccountTotpModel": {
        "type": "object",
        "properties": {
          "Digits": {
            "type": "integer",
            "description": "Expected number of digits in the TOTP code",
            "format": "int32"
          },
          "PeriodSeconds": {
            "type": "integer",
            "description": "(seconds) Period between TOTP code rotations",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Managed Account TOTP Metadata"
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "API key needed to access the endpoints. Example: `PS-Auth key=$key; runas=$user;`",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Managed Accounts",
      "description": "Provides access to Managed Account functionality including retrieving requestable accounts and account management."
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
````