Lockbox API, REST: Payload.Get
Written by
Updated at August 8, 2025
Returns the payload of the specified secret.
To get the list of all available secrets, make a SecretService.List request.
HTTP request
GET https://payload.lockbox.api.cloud.yandex.net/lockbox/v1/secrets/{secretId}/payload
Path parameters
|
Field |
Description |
|
secretId |
string Required field. ID of the secret. |
Query parameters
|
Field |
Description |
|
versionId |
string Optional ID of the version. |
Response
HTTP Code: 200 - OK
{
"versionId": "string",
"entries": [
{
"key": "string",
// Includes only one of the fields `textValue`, `binaryValue`
"textValue": "string",
"binaryValue": "string"
// end of the list of possible fields
}
]
}
A payload.
|
Field |
Description |
|
versionId |
string ID of the version that the payload belongs to. |
|
entries[] |
Payload entries. |
Entry
|
Field |
Description |
|
key |
string Non-confidential key of the entry. |
|
textValue |
string Text value. Includes only one of the fields Confidential value of the entry. |
|
binaryValue |
string (bytes) Binary value. Includes only one of the fields Confidential value of the entry. |