These endpoints tell your code where it stands before it does anything. GET /whoami returns the team, the key, and its access. GET /capabilities lists every operation and tells you whether this key can use it right now. GET /capabilities/{name} gives the details for a single operation. Agents that explore the API on their own start here.
The account endpoints show your plan, what it includes, and what you’ve used, much like Credits and usage in the app. They require the Account, Credits, and Team areas, which are included in both Full access and Read-only keys. For more on how these work, see The REST API and Plans, credits and prices.
The account endpoints are GET /account, /account/entitlements, and /account/usage. Credits have separate endpoints for the balance and the list of transactions. The team endpoints list the members and the team’s invitations, along with each one’s status.
POST /authorization-requests sets up an operation that needs a person’s approval before it runs, such as turning on a rule:
{ "operation": "rule.enable", "input": { "id": "RULE_ID" } }
The response includes an approval_url to send to the person and an id. Once they approve it, send the operation itself with authorization_request_id set to that id. You can check the status in the meantime with GET /authorization-requests/{id}. Sending email uses its own flow and isn’t prepared here.
You can also fetch the OpenAPI document without a key. If you prefer the terminal, svanja whoami, svanja capabilities, svanja account, and svanja credits do the same things. See Sign-in and setup commands and Account, credits and API keys.