API Reference
Complete REST API documentation for integrating Nebula DNS into your applications, automation workflows, and custom security tools.
Base URL
All API requests should be made to this base URL. All requests must use HTTPS.
Response Format
All responses return JSON with consistent structure, HTTP status codes, and detailed error messages.
Authentication
The Nebula DNS API uses Bearer token authentication. Include your API token in the Authorization header of every request.
Authorization: Bearer YOUR_API_TOKENGenerate API tokens from your dashboard under Settings › API Keys.
ENDPOINTS
API Endpoints
Organized by resource type for easy navigation.
Authentication
User authentication, token management, and session handling.
Tenants
Manage tenant organizations and settings.
Users
User management and team member administration.
Policies
DNS filtering policies and rule management.
Locations
Network locations and DNS resolver configuration.
Lists
Custom block lists and allow lists.
Reports
Analytics, reporting, and query logs.
Agents
Client agent management and deployment.
EXAMPLES
Example Request
A quick end-to-end example to get you started.
Retrieve all DNS filtering policies for your tenant.
curl -X GET \
https://api.nebuladns.io/api/v1/policies \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"Policy array with metadata returned as JSON.
{
"success": true,
"data": [
{
"id": "pol_abc123",
"name": "Default Policy",
"enabled": true,
"categories_blocked": [
"malware",
"phishing"
],
"created_at": "2026-01-15T10:30:00Z"
}
]
}Rate Limits
API rate limits are applied per API token based on your subscription plan:
Rate limit headers (X-RateLimit-Remaining, X-RateLimit-Reset) are included in all responses. Contact sales for custom limits.
START BUILDING
Ready to Start Building?
Generate your first API token and start integrating Nebula DNS into your applications and automation workflows today.