List API keys
const url = 'https://localhost:8080/api/v1/api-keys';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 \ --header 'Authorization: <Authorization>'List API keys owned by the authenticated user, optionally filtered by organization. JWT/session only — API keys cannot manage API keys
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Filter by organization ID
Responses
Section titled “ Responses ”List of API keys
The caller’s API keys, with the total available
object
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
{ "apiKeys": [ { "status": "active" } ]}Bad request - Invalid organization ID
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
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"}