DescriptionYour unique id for this operation (≤ 191 visible ASCII). A retry with the same key and body returns the first answer with Idempotent-Replayed: true — it never runs twice. Kept 24 h.
X-Request-Idoptional
Typestring
Constraints—
DescriptionOptional: your own request id, echoed back (otherwise we generate req_…). Quote it to support.
multipart/form-data fields
Name
Type
Constraints
Description
numberIdoptional
Typestring
Constraints—
DescriptionNumber to act on (id from GET /v2/numbers). A key restricted to some numbers can use only those.
tooptional
Typestring
Constraints—
DescriptionRecipient: international digits without + or leading zeros (e.g. 201001234567, 966501234567).
typeoptional
Typestring
Constraints—
DescriptionMessage type: text, image, video, audio, voice, document, sticker, location, contact, buttons, list, cta_url. Each type has its own fields — see the table below.
captionoptional
Typestring
Constraints—
DescriptionCaption under an image, video or document (≤ 1024).
fileoptional
Typefile
Constraints—
DescriptionThe file bytes (multipart). The real type is sniffed from the bytes; the file name is never trusted.
415 · MESSAGE_MEDIA_TYPE_NOT_ALLOWED — The bytes do not match the type.
Send the right file or type.
Correct the cause before repeating the request.
HTTP 415 · application/json
{
"error": {
"code": "MESSAGE_MEDIA_TYPE_NOT_ALLOWED",
"message": "The bytes do not match the type.",
"docsUrl": "https://mursilat.com/developers/v2/errors#MESSAGE_MEDIA_TYPE_NOT_ALLOWED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
409 · IDEMPOTENCY_KEY_REUSED — This Idempotency-Key was used with a different request.
Use a new key for a new request.
Correct the cause before repeating the request.
HTTP 409 · application/json
{
"error": {
"code": "IDEMPOTENCY_KEY_REUSED",
"message": "This Idempotency-Key was used with a different request.",
"docsUrl": "https://mursilat.com/developers/v2/errors#IDEMPOTENCY_KEY_REUSED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
409 · IDEMPOTENCY_IN_PROGRESS — The first request with this key is still running.
Retry in a few seconds.
Retry after addressing the cause.
HTTP 409 · application/json
{
"error": {
"code": "IDEMPOTENCY_IN_PROGRESS",
"message": "The first request with this key is still running.",
"docsUrl": "https://mursilat.com/developers/v2/errors#IDEMPOTENCY_IN_PROGRESS",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
403 · SCOPE_REQUIRED — The key lacks the scope of this endpoint.
Add the scope in details.required to the key.
Correct the cause before repeating the request.
HTTP 403 · application/json
{
"error": {
"code": "SCOPE_REQUIRED",
"message": "The key lacks the scope of this endpoint.",
"docsUrl": "https://mursilat.com/developers/v2/errors#SCOPE_REQUIRED",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
Copy the key again from Settings → API keys (it is shown only once; create a new one if lost).
Correct the cause before repeating the request.
HTTP 401 · application/json
{
"error": {
"code": "API_KEY_INVALID",
"message": "The API key is not valid.",
"docsUrl": "https://mursilat.com/developers/v2/errors#API_KEY_INVALID",
"requestId": "req_6604bedc8c489f20e582691a"
}
}
Meta’s rules: outside the 24-hour customer-service window only Meta-approved templates can be sent, and Meta sets each number’s messaging limit and quality rating.
Refused: opted-out recipients (422 SAFETY_SUPPRESSED), blocked content such as URL shorteners (422 SAFETY_CONTENT_BLOCKED), a number paused by Mursilat (423 SAFETY_NUMBER_PAUSED) or banned (403 SAFETY_NUMBER_BANNED). Don’t retry these unchanged.