mmmn API Interface
Access real-time data streams, perform async operations, and trigger events through our RESTful endpoints.
Authentication
All endpoints require an Authorization Bearer token with scope api.
Authorization: Bearer <your_api_key>
Accept: application/json
Endpoints
Real-time Data Stream
Open a persistent connection for continuous data updates.
GET /data-stream/channel
Query Params: refreshRate, format
Action Endpoint
Trigger operations across the network with a single request.
POST /action-trigger
{
type: "restart",
target: "node_12",
params: {}
}
Try the API
Preview of response will appear here...
JavaScript Example
fetch('https://api.mmmn.dev/data-stream', { method: 'GET', headers: { 'Authorization': 'Bearer your_api_key', 'Accept': 'application/json' } }) .then(response => response.json()) .then(data => console.log(data));
Replace your_api_key with your API token.
API Best Practices
-
1. Rate Limiting
Implement exponential backoff when approaching 100 RPS limit.
-
2. Webhook Security
Verify HMAC signatures on incoming webhooks.
-
3. Streaming
Use keep-alive connections for stream endpoints.
-
4. Caching
CACHE-Control headers indicate max-age for resources.