Retrieves and permanently reveals a secret's content. Requires the secret identifier, a passphrase if one was set, and a continue flag to confirm the reveal. The secret is destroyed immediately upon reveal and cannot be accessed again. Returns the decrypted secret value along with display metadata.
POST
/api/v2/guest/secret/{identifier}/reveal
curl \
--request POST 'https://eu.onetimesecret.com/api/v2/guest/secret/{identifier}/reveal' \
--header "Content-Type: application/json" \
--data '{"passphrase":"string","continue":"string"}'
Request examples
{
"passphrase": "string",
"continue": "string"
}
Response examples (200)
{
"user_id": "string",
"shrimp": "",
"record": {
"identifier": "string",
"created": "string",
"updated": "string",
"key": "string",
"shortid": "string",
"state": "new",
"has_passphrase": "string",
"verification": "string",
"secret_value": "string",
"is_previewed": "string",
"is_revealed": "string",
"secret_ttl": "string",
"lifespan": "string",
"is_viewed": "string",
"is_received": "string"
},
"details": {
"continue": "string",
"is_owner": "string",
"show_secret": "string",
"correct_passphrase": "string",
"display_lines": "string",
"one_liner": "string"
}
}
Response examples (400)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (404)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (422)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (429)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (500)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}