GET/api-keys/:keyId

Fetch a single API key by its ID. Returns metadata only — the raw key value and hash are never returned. Requires the api_keys:read scope.

Path parameter

keyId: The API key ID (e.g. pRvJ6Q-F7u_kJAODgWney). Must belong to the team in the URL.

Response

Returns data.key with all metadata fields. Returns 404 not_found if the key ID does not exist or belongs to a different team.

Code examples

cURL
curl "https://www.zyberspace.com/api/v1/{teamSlug}/api-keys/{keyId}" \
  -H "Authorization: Bearer zxk_live_YOUR_API_KEY"
JavaScript
const res = await fetch(`https://www.zyberspace.com/api/v1/{teamSlug}/api-keys/{keyId}`, {
  headers: { Authorization: "Bearer zxk_live_YOUR_API_KEY" },
});
const data = await res.json();
console.log(data);

Base URL: https://www.zyberspace.com

Get your API key →