Return metadata about a secret without revealing its value. Includes state, expiration details, and whether a passphrase is required. Records the access as telemetry on the receipt (#3633); a metadata GET no longer advances the secret's lifecycle state.
GET
/api/v3/guest/secret/{identifier}
curl \
--request GET 'https://uk.onetimesecret.com/api/v3/guest/secret/{identifier}'
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 (404)
{
"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"
}