Skip to main content

Base URL

The Minimo API is served from two base URLs, depending on the endpoint: Example Endpoints:
All requests must use HTTPS. HTTP requests will be rejected.
New endpoints are being progressively migrated to api.minimo.it. Each endpoint’s documentation page specifies the correct base URL.

Request Format

Content Type

All POST, PUT, and PATCH requests must include the Content-Type header:

Request Body

Request bodies should be valid JSON:

Response Format

Success Response

Successful requests return appropriate HTTP status codes and JSON responses: Example (200 OK):

Error Response

Errors return a consistent structure:
Error Object Fields:
  • code: Machine-readable error identifier
  • message: Human-readable error description
  • details: Additional context (optional)

HTTP Status Codes

The Minimo API uses standard HTTP status codes:

Common Error Codes

Pagination

List endpoints support pagination using query parameters:

Parameters

  • page: Page number (default: 1)
  • limit: Items per page (default: 25, max: 100)

Example Request

Response Structure

Pagination Fields:
  • page: Current page number
  • limit: Items per page
  • total: Total number of items
  • totalPages: Total number of pages
  • hasNext: Whether there’s a next page
  • hasPrevious: Whether there’s a previous page

Filtering & Sorting

Filtering (Coming Soon)

Some endpoints support filtering using query parameters:

Sorting (Coming Soon)

Use the sort parameter to order results:

Timestamps

All timestamps are returned in ISO 8601 format (UTC):

Idempotency

Some endpoints support idempotency keys to prevent duplicate operations:
Use idempotency keys when retrying failed requests to avoid creating duplicates.

Rate Limiting

Headers

All responses include rate limit information:
  • X-RateLimit-Limit: Maximum requests per window
  • X-RateLimit-Remaining: Requests remaining in current window
  • X-RateLimit-Reset: Unix timestamp when limit resets

Handling Rate Limits

When you exceed the rate limit, you’ll receive a 429 Too Many Requests response:
Best Practices:
  1. Monitor X-RateLimit-Remaining header
  2. Implement exponential backoff
  3. Respect the Retry-After header value
  4. Cache responses when possible

Versioning

The current API version is v1.
  • New API (api.minimo.it): The version prefix /v1/ is required in all paths.
  • Legacy API (app.minimo.it): Paths use the /api/ prefix without version number.

CORS (Cross-Origin Requests)

The Minimo API supports CORS for client-side requests. However, we recommend making API calls from your server to keep API keys secure. Allowed origins are configurable per API key in your dashboard settings.

Webhooks (Coming Soon)

Minimo will support webhooks for real-time event notifications:
  • Message delivered
  • Message failed
  • Contact created/updated
  • Template approved/rejected
Documentation will be added when webhooks are available.

Testing

Test Mode (Coming Soon)

Use test mode to experiment without affecting production data:
Test API keys start with mn-test- prefix.

Need Help?

If you encounter unexpected behavior or have questions about API conventions: