Lists receipts (metadata records) for secrets created within the last 30 days. Supports scoping by customer (default), organization, or custom domain. Returns each receipt's state, timestamps, and summary information.
GET
/api/v2/receipt/recent
curl \
--request GET 'https://nz.onetimesecret.com/api/v2/receipt/recent' \
--user "username:password"
Response examples (200)
{
"user_id": "string",
"shrimp": "",
"records": [
{
"identifier": "string",
"created": 42.0,
"updated": 42.0,
"key": "string",
"shortid": "string",
"state": "new",
"custid": "string",
"owner_id": "string",
"shared": "string",
"previewed": "string",
"revealed": "string",
"burned": "string",
"secret_ttl": "string",
"receipt_ttl": "string",
"lifespan": "string",
"secret_shortid": "string",
"secret_identifier": "string",
"recipients": [
"string"
],
"share_domain": "string",
"has_passphrase": true,
"is_previewed": "string",
"is_revealed": "string",
"is_burned": "string",
"is_destroyed": "string",
"is_expired": "string",
"is_orphaned": "string",
"memo": "string",
"kind": "generate",
"received": "string",
"viewed": "string",
"is_viewed": "string",
"is_received": "string",
"show_recipients": "string"
}
],
"details": {
"type": "string",
"scope": "string",
"scope_label": "string",
"since": 42.0,
"now": "string",
"has_items": "string",
"received": [
{
"identifier": "string",
"created": 42.0,
"updated": 42.0,
"key": "string",
"shortid": "string",
"state": "new",
"custid": "string",
"owner_id": "string",
"shared": "string",
"previewed": "string",
"revealed": "string",
"burned": "string",
"secret_ttl": "string",
"receipt_ttl": "string",
"lifespan": "string",
"secret_shortid": "string",
"secret_identifier": "string",
"recipients": [
"string"
],
"share_domain": "string",
"has_passphrase": true,
"is_previewed": "string",
"is_revealed": "string",
"is_burned": "string",
"is_destroyed": "string",
"is_expired": "string",
"is_orphaned": "string",
"memo": "string",
"kind": "generate",
"received": "string",
"viewed": "string",
"is_viewed": "string",
"is_received": "string",
"show_recipients": "string"
}
],
"notreceived": [
{
"identifier": "string",
"created": 42.0,
"updated": 42.0,
"key": "string",
"shortid": "string",
"state": "new",
"custid": "string",
"owner_id": "string",
"shared": "string",
"previewed": "string",
"revealed": "string",
"burned": "string",
"secret_ttl": "string",
"receipt_ttl": "string",
"lifespan": "string",
"secret_shortid": "string",
"secret_identifier": "string",
"recipients": [
"string"
],
"share_domain": "string",
"has_passphrase": true,
"is_previewed": "string",
"is_revealed": "string",
"is_burned": "string",
"is_destroyed": "string",
"is_expired": "string",
"is_orphaned": "string",
"memo": "string",
"kind": "generate",
"received": "string",
"viewed": "string",
"is_viewed": "string",
"is_received": "string",
"show_recipients": "string"
}
]
},
"count": 42
}
Response examples (401)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (403)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (404)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}
Response examples (500)
{
"error": "string",
"message": "string",
"field": "string",
"error_id": "string"
}