Public API
Baseguard REST API documentation
The Baseguard API provides programmatic access to manage your mesh network. Use it to automate node management, configure access control, and integrate Baseguard into your infrastructure workflows.
Full Documentation
For the complete interactive API reference with all endpoints, request/response schemas, and example payloads:
Base URL
https://api.baseguard.net/openapiFor self-hosted deployments, use your control plane URL.
Authentication
All requests require an API key. Create one in the console:
- Go to Keys > API Keys
- Click Create API Key
- Copy the generated key (shown only once)
Include the key in the Authorization header along with your organization Id:
curl -H "Authorization: Bearer bgapi_xxxxxxxxxxxx" \
-H "x-bg-organization-id: your-org-id" \
https://api.baseguard.net/openapi/v1/nodeRequired Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <api-key> |
x-bg-organization-id | Yes | Organization Id |
Content-Type | Yes | application/json |
Find your organization ID by running baseguard organizations or viewing organization settings in the console.
Best Practices
- Don't hardcode keys — Use environment variables
- Rotate regularly — Change keys periodically
- Use minimal permissions — Request only needed access
- Monitor usage — Review audit logs for anomalies