API Reference
The MLM Platform API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes.Base URL
Authentication
All API requests require authentication using a tenant API key:Request Format
All POST/PUT requests should include:Response Format
All responses are JSON-encoded:Response Headers
| Header | Description |
|---|---|
X-Environment | Current environment (LIVE or SANDBOX) |
X-RateLimit-Limit | Maximum requests per window |
X-RateLimit-Remaining | Requests remaining in window |
X-RateLimit-Reset | Unix timestamp when limit resets |
HTTP Status Codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request - Invalid input |
401 | Unauthorized - Invalid API key |
403 | Forbidden - Action not allowed |
404 | Not Found - Resource doesn’t exist |
409 | Conflict - Resource already exists |
429 | Too Many Requests - Rate limited |
500 | Internal Server Error |
Error Response Format
Pagination
List endpoints support pagination:| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 20 | Items per page (max 100) |
offset | integer | 0 | Number of items to skip |
Rate Limiting
API requests are rate limited per API key:| Tier | Requests/Minute |
|---|---|
| Standard | 100 |
| Enterprise | 1000 |
429 response with Retry-After header.
Idempotency
For POST requests that create resources, use theidempotency_key field to prevent duplicate operations: