Related guides
Endpoints
Next steps
- API overview: base URLs, authentication, and pagination
- Errors: status codes and the error format
- Editions: which endpoints each edition serves
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Manage organization rules with the OneCLI API: blocks, allows, rate limits, approvals, and app permissions enforced across every workspace.
| Endpoint | Method and path | What it does |
|---|---|---|
| List organization rules | GET /org/policy/rules | List organization rules in first-match order, with the Default Rule last. |
| Create an organization rule | POST /org/policy/rules | Create an organization rule that blocks, allows, rate limits, or requires approval for agent requests across every workspace, effective now. |
| Reorder organization rules | PUT /org/policy/rules/order | Reorder organization rules to change which one matches first. |
| Get an organization rule | GET /org/policy/rules/{ruleId} | Get one organization rule by ID, including its action, match conditions, and source. |
| Update an organization rule | PATCH /org/policy/rules/{ruleId} | Update an organization rule with a partial change. |
| Delete an organization rule | DELETE /org/policy/rules/{ruleId} | Delete a custom organization rule. |
| Get the organization’s Default Rule | GET /org/policy/default | Get the organization’s Default Rule, the terminal rule that decides any agent request no other organization rule matched. |
| Set the organization’s default action | PATCH /org/policy/default | Set the organization’s default action. |
| Publish the organization’s rules | POST /org/policy/publish | Publish the organization’s rules for older clients. |
| Get the most recent publish | GET /org/policy/last-publish | Get the most recent organization policy publish. |
| Effective app permissions (organization) | GET /org/policy/effective-app-permissions | See what organization rules alone decide for every tool of one app. |