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.reasonMeansChannelsFix
conversation_not_confirmedThe person has not written in this conversation yetAllSend a plain text, and wait for them to reply
media_fetch_refusedMapier would not fetch the file's linkAllUse a public https link
media_fetch_failedMapier could not fetch the file in timeAllCheck that the link works, then retry
media_too_largeThe file is over the channel's size limitAllSend a smaller file
unsupported_media_typeThe channel does not take this kind of file, or the file is not the type it saysAllSend another type
invalid_targetThe message named is not one this line sent in that conversationAll—
not_yet_addressableThe channel has not confirmed this message yetAllWait for its command event, then try again
window_elapsedThe time to change this message has passedAll—
card_not_updatableThe 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 lineiMessageSend a new card

Example

422 Unprocessable Content
{
  "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
  }
}

Next