Get API key details
const url = 'https://localhost:8080/api/v1/api-keys/example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:8080/api/v1/api-keys/example \ --header 'Authorization: <Authorization>'Get details of one of the authenticated user’s API keys. JWT/session only — API keys cannot manage API keys
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”API Key ID
Responses
Section titled “ Responses ”API key details
An API key for service-to-service authentication; the secret itself is never returned here
object
Set via the revoke endpoint
Resolved from the caller
Example
{ "status": "active"}Bad request - Key ID required
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Unauthorized - Authentication required
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Forbidden - API keys cannot manage API keys, or can only view own API keys
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}API key not found
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Internal server error
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}