OCR failed

Implement the forms.ocr_failed webhook to know when OCR fails for uploaded documents.

The forms.ocr_failed webhook notifies your system when data retrieval through third party OCR has failed for uploaded documents.

📘

This webhook triggers when third party OCR has failed for all documents manually uploaded by the user using document upload. The metadata field of each failed document returns an ocr_data.error object with the specific type of error.

Event

forms.ocr_completed

Payload

AttributeTypeDescription
accountstring uuidID of the account for which OCR was attempted on a form.
userstring uuidID of the user the account belongs to.
formstring uuidID of the form for which OCR has failed.

Examples

curl -X POST https://api.argyle.com/v1/webhooks \
  -u api_key_id:api_key_secret \
  -H "Content-Type: application/json" \
  -d '{"events": ["forms.ocr_failed"],
       "secret": "<secret for signature verification>",
         "name": "OCR has failed",
          "url": "https://webhook.site/url"}'
{
    "event": "forms.ocr_failed",
    "name": "OCR has failed",
    "data": {
        "account": "ada143be-3c90-4534-b7ea-9899674dc6e0",
        "user": "3823026e-a964-45f6-b201-6b8c096b30d3",
        "document": "4334r6e-a964-45eef6-b201-64464"
    }
}