Base URL
The default API base URL is:API Versioning
The current API version is0.0.1. The version may change as new features are added and the API evolves.
Authentication
All API requests require authentication using either:- Bearer Token (JWT) - Obtained through OAuth2 authentication flow
- Personal Access Token - Created via the dashboard or API
Request Format
All requests should:- Use HTTPS
- Set the
Content-Typeheader toapplication/jsonfor requests with a body - Include authentication credentials in the
Authorizationheader
Response Format
All responses are returned in JSON format. Successful responses typically return:200 OKfor successful GET, PUT, DELETE requests201 Createdfor successful POST requests creating new resources
400 Bad Request- Invalid request parameters401 Unauthorized- Missing or invalid authentication403 Forbidden- Insufficient permissions404 Not Found- Resource not found500 Internal Server Error- Server error
Rate Limiting
API rate limits depend on your subscription plan. When rate limited, you’ll receive a429 Too Many Requests response.
For NetBird Cloud users, rate limits are applied per account. Self-hosted instances may have different rate limiting configurations.
Pagination
Some endpoints support pagination for large result sets. Pagination parameters include:Page number (1-indexed)
Number of items per page
OpenAPI Specification
The complete OpenAPI specification is available in the NetBird repository:API Resources
Explore the available API resources:Users
Manage users and service accounts
Peers
Manage network peers and devices
Groups
Organize peers and users into groups
Policies
Configure access control policies
Routes
Manage network routes and exit nodes
DNS
Configure DNS settings and nameservers
Setup Keys
Generate keys for peer enrollment
Events
View audit logs and activity events
Getting Help
If you need assistance:- Join our Slack community
- Check the GitHub discussions
- Report issues on GitHub