Retrieve and decrypt a secret value. The secret is permanently destroyed immediately after retrieval and cannot be accessed again. Requires a passphrase if one was set during creation. The secret owner is optionally notified when the secret is revealed.
Responses
-
Successful response
-
Bad Request - Invalid request parameters or body
-
Unauthorized - Authentication required
-
Forbidden - Insufficient permissions
-
Not Found - Resource does not exist
-
Unprocessable Entity - Validation failed
-
Too Many Requests - Rate limit exceeded
-
Internal Server Error - Something went wrong
POST
/api/v3/secret/{identifier}/reveal
curl \
--request POST 'http://localhost:3000/api/v3/secret/{identifier}/reveal' \
--cookie "rack.session=$API_KEY" \
--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",
"key": "string",
"shortid": "string",
"state": "new",
"has_passphrase": true,
"verification": true,
"secret_value": "string",
"is_previewed": true,
"is_revealed": true,
"secret_ttl": 42.0,
"lifespan": 42.0,
"created": 42.0,
"updated": 42.0
},
"details": {
"continue": true,
"is_owner": true,
"show_secret": true,
"display_lines": 42.0,
"one_liner": true
}
}
Response examples (400)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}
Response examples (401)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}
Response examples (403)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}
Response examples (404)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}
Response examples (422)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}
Response examples (429)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}
Response examples (500)
{
"error": "string",
"error_type": "string",
"message": "string",
"field": "string",
"error_id": "string",
"request_id": "string"
}