Understand what data is sent to your backend – sample webhook

Once the user is verified, Mati will send all the information to the webhook of your choice (defined on your Mati dashboard).

Here below find a sample webhook with a passport verification. Of course if you ask for more documents to your users, they will appear inside the webhook

{   
    "event": "summary",
    "liveness": true, //"false" in the suspicion of fraud
    "metadata": {     // metadata you passed to the button
      "user_id": "47435091283",
      "name": "John"
            },
    "dateCreated": "2018-11-09T01:33:14.465Z",
    "dateUpdated": "2018-11-09T01:34:18.153Z",
    "watchlists": ["interpol"], // empty array when no match found
    "documents": 
            [{
            "facematch": true, //"false" in the suspicion of fraud
      "type": "passport",
      "fields": [{
          "id": "dateOfBirth",
          "value": "09/11/1988",
          "error": null
                    }, {
                            "id": "expiry",
                            "value": null,
                            "error": {
                                 "code": "not.visible",
                                 "message": "Field is not visible"
                            }
                    }, {
          "id": "country",
          "value": "UNITED STATES OF AMERICA",
          "error": null
        }, {
          "id": "documentNumber",
          "value": "H22912324",
          "error": null
        }, {
          "id": "emission",
          "value": "16/08/2016",
          "error": null
        }, {
          "id": "fullName",
          "value": "John Smith",
          "error": null
            }],
            "errors": [{ //error when document authenticity failed
                "code": "invalid.document",
                "message": "Invalid document, manual review required"
            }],
      "_links": {
        "identity": {
          "href": "https://some_url_here",
          "resource-type": "identity"
          },
        "pictures": {
          "href": "https://some_url_here",
          "resource-type": "picture"
          },
        "self": {
          "href": "https://some_url_here",
          "resource-type": "document"
                            }
                      }
            },
            {
            //"more documents here depending on your flow"
            }
       ]
    }