Skip to content
WhatsMarketingDeveloper Hub

Limits and best practices

Requests per minute

Limit Value
Per API key 600 requests per minute, across all routes
Per IP address, with API keys 3,000 requests per minute, across all keys calling from that IP
POST /campaigns/{id}/send 10 per minute per key
POST /campaigns/send-to-contact/{contactId} 30 per minute per key
POST /mcp 120 per minute per key
POST /messages 60 per minute per key; also 1,000 sends per day (UTC) per key and 20 to the same number
GET /messages/{id} 120 per minute per key
Response when exceeded 429 API_KEY_RATE_LIMITED

The quota belongs to the key, not the IP: if several integrations call us from the same server, each key counts separately.

Every response to an API key request carries the state of its quota:

Header Meaning
X-RateLimit-Limit Requests per minute for the key (600)
X-RateLimit-Remaining Requests left in the current window
X-RateLimit-Reset Seconds until the window resets

When you exceed the limit we respond 429 API_KEY_RATE_LIMITED with Retry-After (seconds to wait) and X-RateLimit-Remaining: 0. If what you exceeded is an operation's own limit (for example, sending campaigns), X-RateLimit-Limit carries that operation's limit. Honor Retry-After before retrying; if you don't have it at hand, use exponential backoff (1 s, 2 s, 4 s…) plus a little jitter.

Sizes

Operation Maximum
POST /contacts/bulk 500 ids per call, 20 tags
POST /campaigns/{id}/recipients by ids 20,000 ids per call
Tags per contact 50, up to 60 characters each
Contact note 4,000 characters
Page size (pageSize) 100 (default 20)

Idempotency

Creating the same contact twice doesn't duplicate it: the second call responds 409 CONTACT_PHONE_EXISTS with the existing contactId. Sending a campaign twice responds 400 ("already sent"). Adding the same audience twice doesn't duplicate recipients (alreadyIn counts them).

To retry a POST safely (for example, after a timeout), send the Idempotency-Key header with a unique value per operation, such as a UUID:

curl
curl -X POST https://micuenta.whatsmarketing.es/api/v1/contacts \
  -H "Authorization: Bearer $WM_API_KEY" \
  -H "Idempotency-Key: 6f1c2b9e-3d4a-4f7e-9b1a-2c8d5e7f0a13" \
  -H "Content-Type: application/json" \
  -d '{"fullName": "Ana López", "primaryPhone": "+34600000000"}'
  • If you repeat the same key with the same body, on the same method and route and within 24 h, we return the stored response (same HTTP status and same body) without running the operation again, with the Idempotent-Replayed: true header.
  • The same key with a different body responds 422 IDEMPOTENCY_KEY_REUSED: use a new key for each different operation.
  • If the first request with that key is still in progress, it responds 409 IDEMPOTENCY_IN_PROGRESS: retry in a few seconds.
  • Only successful (2xx) responses are stored. If the request fails (validation, permissions, business error), the key is released and you can fix the request and retry with the same key.
  • If the first request was cut off halfway (more than 5 minutes without finishing), it responds 409 IDEMPOTENCY_STALE: it may or may not have been applied, so check the result before repeating it with another key.
  • The key accepts 1 to 255 printable characters, no spaces; otherwise 400 IDEMPOTENCY_KEY_INVALID. It is scoped to your organization: two organizations can use the same value without clashing.
  • We don't store your request body, only a fingerprint (SHA-256) to compare it. The order of JSON properties doesn't matter.
  • It applies to POST requests made with an API key. The MCP server (POST /mcp) doesn't use it.

Timing

Respond to your webhooks in under 10 seconds (an immediate 200 is enough; process afterwards). API requests usually take under 300 ms; set a 30 s timeout in your client.

Dates and time zones

All dates are ISO 8601 with time zone (2026-10-14T10:21:00.000Z). When scheduling a campaign, include the time zone in the date (2026-10-20T09:00:00+02:00).

Stability

  • The API is versioned in the path (/api/v1). We add fields without notice; we never remove or rename fields within the same version.
  • Changes are published in the changelog; deprecations are announced 6 months in advance.
  • Treat enumeration values (status, source, channelType) as open lists: new values may appear.