NetBird Full API Reference + Read-Only MCP Prototype
GET/api/agent-network/budget-rules

List Agent Network budget rules

Lists account-level Agent Network budget rules. Use this endpoint to inspect rules that apply across policies; rules with empty target_groups and target_users apply account-wide, and limits act as min-wins ceilings.

4 status codes
200Returns a JSON array of budget rule objects, including each rule's name, enabled state, target groups and users, limits, and creation and update timestamps.
created_atstringrequired
enabledbooleanrequired
Whether the rule is enforced.
idstringrequired
Budget rule ID.
limitsobjectrequired
Token and budget caps attached directly to the policy. These compose with any guardrail-level checks.
namestringrequired
Display name for the budget rule.
target_groupsarray<string>required
NetBird group ids the rule binds. Empty plus empty target_users means account-wide.
target_usersarray<string>required
NetBird user ids the rule binds directly.
updated_atstringrequired
401Returned when authentication is required but missing or invalid.
403Returned when the authenticated user is not permitted to list budget rules.
500Returned when an internal server error occurs.

Error handling

A 401 is returned when authentication is missing or invalid; send valid authentication credentials. A 403 is returned when the authenticated user is not permitted to list budget rules. A 500 is returned when an internal server error occurs.