open-vault/website/source/docs/http/sys-capabilities-self.html.md

856 B

layout page_title sidebar_current description
http HTTP API: /sys/capabilities-self docs-http-auth-capabilities-self The `/sys/capabilities-self` endpoint is used to fetch the capabilities of client token on a given path.

/sys/capabilities-self

POST

Description
Returns the capabilities of client token on the given path. Client token is the Vault token with which this API call is made.
Method
POST
Parameters
  • path required Path on which the client token's capabilities will be checked.
Returns
```javascript
{
    "capabilities": ["read", "list"]
}
```