Rate limiting
Rate Limiting Management
To preserve platform availability and responsiveness against high traffic volumes, the API regulates incoming requests via strict quotas. This control mechanism relies on two criteria:
- Time-based Quotas: Request volume is measured per time window, expressed in RPM (Requests Per Minute).
- Endpoint-specific Limits: Quotas vary depending on the nature of the operation (transactional vs. administrative).
Rate Limit Tiers
Default caps are calibrated to cover standard usage scenarios:
| Endpoint Type | Default Limit | Usage Example |
|---|---|---|
| Transactional | 9,000 RPM | High-volume message sending (Email, SMS). |
| Message Retrieval | 900 RPM | Message information retrieval independant of the campaign's type. |
| Read | 200 RPM | Get informations about campaigns, contents, settings... |
| Management | 20 RPM | Campaign creation, content upload, configuration. |
Need more? These limits can be adjusted upon request to meet specific volume requirements. Contact your Account Manager or Support to review your case.
Error Handling (Code 429)
If your application exceeds the authorized quota, the API rejects excess requests with an immediate response:
- HTTP Code:
429 Too Many Requests - Meaning: The quota for this endpoint is exhausted for the current time window.
Resolution Strategy: Do not retry the request immediately. Implement an Exponential Backoff algorithm: wait for a progressive delay (e.g., 1s, 2s, 4s...) before retrying the request.
Overview
The NMP API is a strict RESTful interface designed to provide complete, standardized programmatic control over your marketing operations. It relies on a resource-oriented architecture, where each entity (Campaigns, Contacts, Content) is accessible via predictable and hierarchical URLs.
Error handling
The NMP API uses standard HTTP response codes to indicate the success or failure of a request. In the event of failure, the response body is always formatted in JSON and provides structured details to facilitate debugging.