API Overview & Standards

AVAILABLE

The Naagmani API suite is split into two primary surfaces:

  1. Gateway Data Plane API (:8080): Ultra-high-throughput, OpenAI-compatible AI inference proxy handling chat completions, embeddings, streaming SSE, and tool calling.
  2. Control Plane Management API (:8081): RESTful JSON API for managing Organizations, Projects, Service Tokens, Members, Budgets, and Telemetry.

Base URLs #

SurfaceLocal EnvironmentProduction Hosted
Gateway Data Planehttp://localhost:8080https://gateway.naagmani.app
Control Plane APIhttp://localhost:8081https://api.naagmani.app

Standard Headers #

Every API request requires standard headers:

http
Authorization: Bearer <YOUR_API_KEY_OR_SERVICE_TOKEN>
Content-Type: application/json
X-Request-ID: req_01J8F0A2B3C4D5E6F7G8H9J0K1 (Optional client tracing ID)

Next Steps #