Reveal
Returns an existing key's secret.
It needs the apikeys.reveal scope, which apikeys.manage doesn't
include.
Refused with NOT_RETRIEVABLE for a key issued before we kept secrets.
Rotate that key instead.
Authorization
bearerAuthbearer token
Authorization: Bearer <key>.
Scopes: apikeys.reveal
Path parameters
idrequiredstring (uuid)The key's ID, as returned by the list endpoint. Never the key itself.
Responses
200application/json
The key's secret.
rcrequiredstringkeyrequiredstringThe secret.
TypeScript type
{
rc: string;
key: string;
}401application/json
No credential was presented, or it is not valid.
rcrequiredstringThe outcome. SUCCESS on success; otherwise the reason.
TypeScript type
{
rc: string;
}403application/json
The credential does not hold the scope this endpoint requires. The missing scope is deliberately not named.
rcrequiredstringThe outcome. SUCCESS on success; otherwise the reason.
TypeScript type
{
rc: string;
}404application/json
No such key in this organization, or its secret was never stored
recoverably (NOT_RETRIEVABLE).
rcrequiredstringThe outcome. SUCCESS on success; otherwise the reason.
TypeScript type
{
rc: string;
}