Plans
Botyard REST API endpoints for plans.
2 endpoints in this group. Every request authenticates with an API key; see the API reference for the other groups.
- List Plans:
GET /v1/plans - Get Plan:
GET /v1/plans/{plan_id}
Get My Permissions
What the **caller** may do in this org — so a UI can disable what it may not. Answers every permission an org route enforces, from the same engine and resolved actor the gates use (:func:`actor_permission_answers`), so the control a UI greys out and the 403 the route would return cannot disagree. Advisory only: every route still enforces its own gate. Cost is one grant resolution for the caller plus an in-memory engine check per enforced permission — caller-scoped, never a scan over other actors. Gated on ``authz:permission.read`` like the rest of this module. Every org role holds it, which is what lets a viewer learn it is a viewer; and a caller reading its *own* authority learns nothing it could not discover by trying the routes. Not behind the active-plan gate: the plan screens of an org with no plan call it to decide whether the caller may choose one.
List Plans
List active public plans. No auth required.