Popular starting points. Use Tab or arrow keys to browse results.

Skip to content
Aten SecurityThoth docs

Capabilities API

Read which optional features the enforcer supports with GET /v1/capabilities. The Thoth SDKs call it for you.

The enforcer reports the optional features it supports as a small map of names to booleans. An SDK reads it before it relies on a feature that older enforcers do not have, so a newer SDK keeps working against an older or customer-hosted enforcer. You only need to call it yourself if you are building your own client.

It is read-only, takes no body and needs no API key, and it returns nothing about your workspace: no tenant data, no version and no health detail. Use /health on the same host for liveness; on the hosted API that path is answered by a different service and does not list these capabilities.

Read the capabilities

GET/v1/capabilities

Returns

capabilitiesobject

A map of capability name to true or false. A name that is missing means the enforcer does not know the feature, so treat it as unsupported.

Capabilities

client_request_errorboolean

true when the enforcer accepts the second, small request an SDK sends in observe mode for a call whose arguments it cannot build (a non-finite number, a value that cannot be serialised, or a request over 4 MiB). The record counts in the would-have-blocked summary and carries identifiers only: never the arguments.

An enforcer that predates this route answers 404. An SDK then reads GET /health and, if that does not list the capability either, sends nothing extra.