Reveal API key

Returns the plaintext API key value (the full `sk_live_...` / `sk_test_...` token). Display it once; it will not be returned again from this endpoint without an explicit re-reveal call. Any active member of the owning account may reveal a key. ## Error codes | HTTP | error_code | Meaning | |------|---------------------|---------| | 401 | unauthenticated | Missing or invalid Clerk JWT. | | 403 | forbidden | Caller is not a member of the owning account. | | 404 | not_found | No API key matches the given ID. | | 409 | api_key_revoked | The API key has been revoked and cannot be revealed. | | 409 | reveal_unavailable | This key was created before the reveal feature was enabled. Revoke and recreate to enable reveal. | | 429 | rate_limited | Per-account reveal rate limit exceeded. | | 500 | internal_error | |

POST
/v1/account/api-keys/{id}/reveal

Authorization

AuthorizationRequiredBearer <token>

Clerk-issued JWT. Obtain via Clerk frontend SDK after sign-in.

In: header

Path Parameters

idRequiredstring
curl -X POST "https://api.bytekit.com/v1/account/api-keys/string/reveal" \
  -H "Authorization: Bearer <token>"

Returns the plaintext API key value.

{
  "key": "string"
}