Get enabled API features
const url = 'https://example.com/api/v1/features';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://example.com/api/v1/features \ --header 'Authorization: <Authorization>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
object
Alerts gates the Alerts section in the SPA. Tied to –alerts-enabled — when false the /api/v1/alerts routes are not registered and the alert tables are not created.
Health gates the Health section in the SPA. Tied to –health-enabled — when false the /api/v1/health routes are not registered.
LogSinks gates the Log Sinks section in the SPA. Tied to the same flag as ServiceConfig — the log_sinks routes are registered alongside the service-config routes.
ServiceConfig gates the whole Service Config section in the SPA. When false the /api/v1/service-config routes are not registered at all.
Vulnerabilities gates the vulnerability pages in the SPA. Tied to –vuln-enabled — when false the /api/v1/vulnerabilities routes are not registered and the vulnerability tables are not created.
Examplegenerated
{ "accelerated": true, "alerts": true, "auth_providers": true, "console": true, "event_topics": [ "example" ], "events": true, "file_explorer": true, "health": true, "log_sinks": true, "posture": true, "service_config": true, "vulnerabilities": true}Unauthorized
object
Examplegenerated
{ "code": "example", "error": "example"}