validation_failed
A field is missing or wrong
422 · Retry: no. details names each field at fault, at its path. Fix each one, then send again.
Reasons
This table lists every reason, the channels it applies to, and the fix.
details.reason | Means | Channels | Fix |
|---|---|---|---|
conversation_not_confirmed | The person has not written in this conversation yet | All | Send a plain text, and wait for them to reply |
media_fetch_refused | Mapier would not fetch the file's link | All | Use a public https link |
media_fetch_failed | Mapier could not fetch the file in time | All | Check that the link works, then retry |
media_too_large | The file is over the channel's size limit | All | Send a smaller file |
unsupported_media_type | The channel does not take this kind of file, or the file is not the type it says | All | Send another type |
invalid_target | The message named is not one this line sent in that conversation | All | — |
not_yet_addressable | The channel has not confirmed this message yet | All | Wait for its command event, then try again |
window_elapsed | The time to change this message has passed | All | — |
card_not_updatable | The app card cannot be updated: it failed or was never confirmed, Messages gave it no id, the person started it, its app was disabled, or the conversation moved to another line | iMessage | Send a new card |
Example
{
"error": {
"code": "validation_failed",
"message": "The person has not written in this conversation yet.",
"details": [
{
"path": "target.conversationId",
"message": "The person has not written in this conversation yet.",
"reason": "conversation_not_confirmed"
}
],
"requestId": "0192c4e1-…",
"docUrl": "https://docs.mapier.ai/convo/api/errors#validation_failed.conversation_not_confirmed",
"retryable": false
}
}