Ana içerik geç

GET /api/zsc/info/:name

Returns the same per-row metadata as /list but for one named secret. Useful for the admin UI's drawer view, CLI context info <name>, or scripted checks before a grant/revoke.

Auth

Admin cookie (zeq_admin) required.

Path parameters

ParamTypeNotes
namestringThe vault key. URL-encode if it contains slashes (avoid them anyway).

Request

curl -H "Cookie: zeq_admin=$ADMIN_JWT" \
https://YOUR-FRAMEWORK/api/zsc/info/STRIPE_SECRET_KEY

Response · 200 OK

{
"ok": true,
"secret": {
"id": "01928f44-...",
"name": "STRIPE_SECRET_KEY",
"purpose_tag": "payments",
"bound_zid": "ZEQ-FOUNDATION",
"expires_zeqond": 2289676900,
"last_read_zeqond": 2289605501,
"read_count": 47,
"permissions": ["ZEQ07111111111"],
"created_at": "2026-05-10T12:00:00.000Z",
"updated_at": "2026-05-17T13:09:01.000Z"
}
}

Field reference identical to /list.

Errors

StatuserrorCause
400name requiredEmpty path segment.
401unauthorizedAdmin cookie missing/invalid.
404NOT_FOUNDNo row with this name.
500INTERNAL_ERRORDB unreachable.