Developer Portal
Every dashboard action maps 1:1 to a Fastify REST endpoint, an Edge Ai tool, or an MCP tool. Authenticate with Firebase OAuth + httpOnly cookies or OAuth 2.0 + PKCE for MCP clients.
https://edge.nexoral.inhttps://apiedge.nexoral.in/apihttps://apiedge.nexoral.in/mcpSign in via Firebase OAuth (Google or GitHub) and exchange the ID token at POST /api/auth/google for a 24h httpOnly SameSite=Strict JWT cookie.
When 2FA is active, login returns twoFactorRequired: true with a 5-min eb_2fa challenge token; complete via TOTP or WebAuthn Passkey.
- • Standard envelope:
{ success, data, message } - • Send
Idempotency-KeyonPOST/PUTmutations - • Rate headers:
X-RateLimit-Limit,Remaining,Reset
Endpoints overview
Default rate limit: 100 req/min per IP (60/min on relaxed auth routes, 5 req/15min on strict auth/mutating checks, 30 req/15min on Edge AI).
Load Balancers & Health Checks
/api/loadbalancers/api/loadbalancers/api/loadbalancers/api/loadbalancers/:id/api/loadbalancers/:id/api/loadbalancers/:id/pause/api/loadbalancers/:id/resume/api/loadbalancers/:id/health-check/restartEdge API Gateways
/api/gateways/api/gateways/api/gateways/api/gateways/:id/api/gateways/:id/api/gateways/:id/pause/api/gateways/:id/resumeEdge AI, Sessions & Public Telemetry
/api/ai · /api/sessions · /api/stats/api/ai/generate/api/ai/runs/api/sessions/api/cloudflare/zones/api/stats/public/healthAuthentication & 2FA
/api/auth/api/auth/google/api/auth/me/api/auth/logout/api/auth/2fa/verify/api/auth/2fa/passkey/auth/options/api/auth/2fa/passkey/auth/verifyNatural-language orchestration over SSE
POST /api/ai/generate streams real-time Server-Sent Events as the agent discovers tools, acquires Redis create locks, deploys Workers, or falls back to read-only Root Cause Analysis on failure.
curl -N -X POST https://apiedge.nexoral.in/api/ai/generate \
-H "Content-Type: application/json" \
-b "token=YOUR_JWT_COOKIE" \
-d '{
"prompt": "Create a round-robin load balancer for api.example.com with https://a.example.com and https://b.example.com"
}'MCP Server (25 Tools)
Connect AI coding assistants to https://apiedge.nexoral.in/mcp. Secured with OAuth 2.0 + PKCE and Dynamic Client Registration.
mcp:read (14 Tools)
Read-only inspectionmcp:write (11 Tools)
Redis-locked mutationsSupported MCP Clients (7)
claude mcp add edgebalancer --transport http https://apiedge.nexoral.in/mcp
codex mcp add edgebalancer --url https://apiedge.nexoral.in/mcp codex mcp login edgebalancer
kiro-cli mcp add --name edgebalancer --url https://apiedge.nexoral.in/mcp
{
"mcpServers": {
"edgebalancer": { "url": "https://apiedge.nexoral.in/mcp" }
}
}{
"mcp": {
"edgebalancer": { "type": "http", "url": "https://apiedge.nexoral.in/mcp" }
}
}{
"mcpServers": {
"edgebalancer": { "serverUrl": "https://apiedge.nexoral.in/mcp" }
}
}{
"mcpServers": {
"edgebalancer": { "type": "streamableHttp", "url": "https://apiedge.nexoral.in/mcp" }
}
}