---
agentTools:
  projectIndex: https://docs.metamap.com/llms.txt
---

# Retrieve Webhook Resource Data

Use this API to retrieve Webhook Resource Data

Use this webhook to retrieve user information **after** they have submitted their documents or completed the verification using our Web SDK.

> 📘 Important
>
> Make sure you have your webhook URL ready before starting.\
> Go to our [Webhook Guide](https://docs.metamap.com/docs/webhooks) for more information on webhooks.

Use the JWT `access_token` obtained during authorization.

# Steps

The response contains nested verification "steps".

| Steps Type    | Description                                                                                           |
| ------------- | ----------------------------------------------------------------------------------------------------- |
| liveness      | Contains the proof of life response, making sure your user is a real person (and not a printed paper) |
| ip-validation | Information about user's location and validation if proxy is used                                     |

# Document Checks

The response contains nested document verification, including validation checks for country-specific documents.

| Document Verification           | Description                                                                                                   |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| document-reading                | Will return fields read from the document: full name, date of birth, document number, etc...                  |
| facematch                       | Face match performed between document face & user's face                                                      |
| watchlists                      | Checks if there is any match found between the name extracted from the document and international watch-lists |
| alteration-detection            | Checks that the document was not altered                                                                      |
| template-matching               | Checks that the presented document revision is valid                                                          |
| mexican-curp-validation         | For certain countries only (only Mexico supported for now)                                                    |
| mexican-ine-validation          | For certain countries only (only Mexico supported for now)                                                    |
| mexican-rfc-validation          | For certain countries only (only Mexico supported for now)                                                    |
| argentinian-govcheck-validation | For certain countries only (only Argentina supported for now)                                                 |

# Computed

Computed section provides additional verification data based on received data

| Computation       | Description                                                                                                                                                | Type            |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
| age               | Information about user's age. It based on the first document with date of birth field                                                                      | Number          |
| isDocumentExpired | User's documents expiration information. Documents marked `true` are expired. If there is no expiration date found in document null will be set up instead | Boolean \| null |

# Bank Account Data

This API can retrieve a user's bank account nested data

| Bank Account Data                    | Description                                                                    |
| :----------------------------------- | :----------------------------------------------------------------------------- |
| accounts                             | Institution name, type, number, currency                                       |
| transactions                         | date, amount, description (such as deposit, withdrawal, or purchase)           |
| current\_balance, available\_balance | Current or available account balance (depending on the account type)           |
| identity                             | Name, email, phone number, or other personal data associated with the account. |

## Downloading Verification Media

To download the verification media, you need to send a GET request to any of the media server links provided in the API response. This request should use the same authentication as previously described.

Example:

```Text sql
GET https://media-server.example.com/media/verification-123
Authorization: Bearer <ACCESS_TOKEN>

```

For a list of supported institutions, go [here](https://docs.metamap.com/docs/bank-account-data#available-data-types)

> 📘
>
> Fields that are not present in this sample response are likely deprecated. Do not use them to verify users.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Create Identity",
    "version": "1.4"
  },
  "servers": [
    {
      "url": "https://api.prod.metamap.com/v2/verifications"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/{id}": {
      "get": {
        "summary": "Retrieve Webhook Resource Data",
        "description": "Use this API to retrieve Webhook Resource Data",
        "operationId": "retrieve-webhook-resource-data-1",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The `id` is in the successful response to a [Verification Creation](ref:verification-creation) request",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Successful Webhook response": {
                    "value": "{\n  \"expired\": false,\n  \"deviceFingerprint\": {\n    \"ua\": \"Mozilla/5.0 (Linux; Android 10; SM-M305M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36\",\n    \"browser\": {\n      \"name\": \"Chrome\",\n      \"version\": \"79.0.3945.116\",\n      \"major\": \"79\"\n    },\n    \"engine\": {\n      \"name\": \"WebKit\",\n      \"version\": \"537.36\"\n    },\n    \"os\": {\n      \"name\": \"Android\",\n      \"version\": \"10\"\n    },\n    \"device\": {\n      \"vendor\": \"Samsung\",\n      \"model\": \"SM-M305M\",\n      \"type\": \"mobile\"\n    }\n  },\n  \"identity\": {\n    \"status\": \"reviewNeeded\"\n  },\n  \"steps\": [\n    {\n      \"status\": 200,\n      \"id\": \"selfie\",\n      \"data\": {\n        \"selfiePhotoUrl\": \"https://media.getmati.com/media/eyJhbGciOiJIUzI1NiIsInR5cC...\"\n      },\n      \"error\": null\n    }, {\n        \"status\": 200,\n        \"id\": \"ip-validation\",\n        \"data\": {\n            \"country\": \"Mexico\",\n            \"countryCode\": \"MX\",\n            \"region\": \"Chihuahua\",\n            \"regionCode\": \"CHH\",\n            \"city\": \"Ciudad Juárez\",\n            \"zip\": 32472,\n            \"latitude\": 1.713,\n            \"longitude\": 106.39,\n            \"safe\": false\n        }\n    }\n  ],\n  \"documents\": [\n    {\n      \"country\": \"MX\",\n      \"type\": \"national-id\",\n      \"steps\": [\n        {\n          \"status\": 200,\n          \"id\": \"mexican-curp-validation\",\n          \"error\": {\n            \"type\": \"StepError\",\n            \"code\": \"curp.invalid\",\n            \"message\": \"CURP number is invalid\"\n          }\n        },\n        {\n          \"status\": 200,\n          \"id\": \"mexican-ine-validation\",\n          \"error\": {\n            \"type\": \"StepError\",\n            \"code\": \"ine.notEnoughParams\",\n            \"message\": \"Not enough params to get ine data\"\n          }\n        },\n        {\n          \"status\": 200,\n          \"id\": \"template-matching\",\n          \"error\": {\n            \"type\": \"StepError\",\n            \"code\": \"templateMatching.noMatchFound\",\n            \"message\": \"Document did not match any valid template\"\n          }\n        },\n        {\n          \"status\": 200,\n          \"id\": \"facematch\",\n          \"error\": {\n            \"type\": \"LegacyError\",\n            \"code\": \"legacy.error\",\n            \"message\": \"The face did not match the document\"\n          }\n        },\n        {\n          \"status\": 200,\n          \"id\": \"document-reading\",\n          \"error\": null,\n          \"data\": {\n            \"fullName\": {\n              \"value\": null,\n              \"label\": \"Name\"\n            },\n            \"address\": {\n              \"value\": null,\n              \"label\": \"Address\"\n            },\n            \"documentNumber\": {\n              \"value\": null,\n              \"label\": \"Document Number\"\n            },\n            \"dateOfBirth\": {\n              \"value\": null,\n              \"label\": \"Day of Birth\",\n              \"format\": \"date\"\n            },\n            \"expirationDate\": {\n              \"value\": null,\n              \"label\": \"Date of Expiration\",\n              \"format\": \"date\"\n            },\n            \"cde\": {\n              \"value\": null,\n              \"label\": \"Elector Key\"\n            },\n            \"curp\": {\n              \"value\": null,\n              \"label\": \"CURP\"\n            },\n            \"ne\": {\n              \"value\": null,\n              \"label\": \"Emission Number\"\n            },\n            \"ocrNumber\": {\n              \"value\": null,\n              \"label\": \"OCR Number\"\n            }\n          }\n        },\n        {\n          \"status\": 200,\n          \"id\": \"alteration-detection\",\n          \"error\": {\n            \"type\": \"LegacyError\",\n            \"code\": \"legacy.error\",\n            \"message\": \"Document is considered tempered\"\n          }\n        },\n        {\n          \"status\": 200,\n          \"id\": \"watchlists\",\n          \"error\": {\n            \"type\": \"LegacyError\",\n            \"code\": \"legacy.error\",\n            \"message\": \"No data to extract information\"\n          }\n        }\n      ],\n      \"fields\": {\n        \"fullName\": {\n          \"value\": null,\n          \"label\": \"Name\"\n        },\n        \"address\": {\n          \"value\": null,\n          \"label\": \"Address\"\n        },\n        \"documentNumber\": {\n          \"value\": null,\n          \"label\": \"Document Number\"\n        },\n        \"dateOfBirth\": {\n          \"value\": null,\n          \"label\": \"Day of Birth\",\n          \"format\": \"date\"\n        },\n        \"expirationDate\": {\n          \"value\": null,\n          \"label\": \"Date of Expiration\",\n          \"format\": \"date\"\n        },\n        \"cde\": {\n          \"value\": null,\n          \"label\": \"Elector Key\"\n        },\n        \"curp\": {\n          \"value\": null,\n          \"label\": \"CURP\"\n        },\n        \"ne\": {\n          \"value\": null,\n          \"label\": \"Emission Number\"\n        },\n        \"ocrNumber\": {\n          \"value\": null,\n          \"label\": \"OCR Number\"\n        }\n      },\n      \"photos\": [\n        \"https://media.getmati.com/media/eyJhbGciOiJIUzI1NiIs...\",\n        \"https://media.getmati.com/media/eyJhbGciOiJIUzI1NiIs...\"\n      ]\n    }\n  ],\n  \"hasProblem\": true,\n  \"computed\": {\n    \"age\" : {\n      \"data\" : 33\n    },\n    \"isDocumentExpired\" : {\n      \"data\" : {\n        \"national-id\" : false,\n        \"passport\": true,\n        \"proof-of-residency\": null\n       }\n    }\n  },\n  \"id\": \"{{_id}}\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "expired": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "deviceFingerprint": {
                      "type": "object",
                      "properties": {
                        "ua": {
                          "type": "string",
                          "example": "Mozilla/5.0 (Linux; Android 10; SM-M305M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36"
                        },
                        "browser": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "example": "Chrome"
                            },
                            "version": {
                              "type": "string",
                              "example": "79.0.3945.116"
                            },
                            "major": {
                              "type": "string",
                              "example": "79"
                            }
                          }
                        },
                        "engine": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "example": "WebKit"
                            },
                            "version": {
                              "type": "string",
                              "example": "537.36"
                            }
                          }
                        },
                        "os": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "example": "Android"
                            },
                            "version": {
                              "type": "string",
                              "example": "10"
                            }
                          }
                        },
                        "device": {
                          "type": "object",
                          "properties": {
                            "vendor": {
                              "type": "string",
                              "example": "Samsung"
                            },
                            "model": {
                              "type": "string",
                              "example": "SM-M305M"
                            },
                            "type": {
                              "type": "string",
                              "example": "mobile"
                            }
                          }
                        }
                      }
                    },
                    "identity": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "reviewNeeded"
                        }
                      }
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 200,
                            "default": 0
                          },
                          "id": {
                            "type": "string",
                            "example": "selfie"
                          },
                          "data": {
                            "type": "object",
                            "properties": {
                              "selfiePhotoUrl": {
                                "type": "string",
                                "example": "https://media.getmati.com/media/eyJhbGciOiJIUzI1NiIsInR5cC..."
                              }
                            }
                          },
                          "error": {}
                        }
                      }
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "country": {
                            "type": "string",
                            "example": "MX"
                          },
                          "type": {
                            "type": "string",
                            "example": "national-id"
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "integer",
                                  "example": 200,
                                  "default": 0
                                },
                                "id": {
                                  "type": "string",
                                  "example": "mexican-curp-validation"
                                },
                                "error": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "example": "StepError"
                                    },
                                    "code": {
                                      "type": "string",
                                      "example": "curp.invalid"
                                    },
                                    "message": {
                                      "type": "string",
                                      "example": "CURP number is invalid"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "fields": {
                            "type": "object",
                            "properties": {
                              "fullName": {
                                "type": "object",
                                "properties": {
                                  "value": {},
                                  "label": {
                                    "type": "string",
                                    "example": "Name"
                                  }
                                }
                              },
                              "address": {
                                "type": "object",
                                "properties": {
                                  "value": {},
                                  "label": {
                                    "type": "string",
                                    "example": "Address"
                                  }
                                }
                              },
                              "documentNumber": {
                                "type": "object",
                                "properties": {
                                  "value": {},
                                  "label": {
                                    "type": "string",
                                    "example": "Document Number"
                                  }
                                }
                              },
                              "dateOfBirth": {
                                "type": "object",
                                "properties": {
                                  "value": {},
                                  "label": {
                                    "type": "string",
                                    "example": "Day of Birth"
                                  },
                                  "format": {
                                    "type": "string",
                                    "example": "date"
                                  }
                                }
                              },
                              "expirationDate": {
                                "type": "object",
                                "properties": {
                                  "value": {},
                                  "label": {
                                    "type": "string",
                                    "example": "Date of Expiration"
                                  },
                                  "format": {
                                    "type": "string",
                                    "example": "date"
                                  }
                                }
                              },
                              "cde": {
                                "type": "object",
                                "properties": {
                                  "value": {},
                                  "label": {
                                    "type": "string",
                                    "example": "Elector Key"
                                  }
                                }
                              },
                              "curp": {
                                "type": "object",
                                "properties": {
                                  "value": {},
                                  "label": {
                                    "type": "string",
                                    "example": "CURP"
                                  }
                                }
                              },
                              "ne": {
                                "type": "object",
                                "properties": {
                                  "value": {},
                                  "label": {
                                    "type": "string",
                                    "example": "Emission Number"
                                  }
                                }
                              },
                              "ocrNumber": {
                                "type": "object",
                                "properties": {
                                  "value": {},
                                  "label": {
                                    "type": "string",
                                    "example": "OCR Number"
                                  }
                                }
                              }
                            }
                          },
                          "photos": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "https://media.getmati.com/media/eyJhbGciOiJIUzI1NiIs..."
                            }
                          }
                        }
                      }
                    },
                    "hasProblem": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "computed": {
                      "type": "object",
                      "properties": {
                        "age": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "integer",
                              "example": 33,
                              "default": 0
                            }
                          }
                        },
                        "isDocumentExpired": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "national-id": {
                                  "type": "boolean",
                                  "example": false,
                                  "default": true
                                },
                                "passport": {
                                  "type": "boolean",
                                  "example": true,
                                  "default": true
                                },
                                "proof-of-residency": {}
                              }
                            }
                          }
                        }
                      }
                    },
                    "id": {
                      "type": "string",
                      "example": "{{_id}}"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --location --request GET 'https://api.getmati.com/v2/verifications/<id>' \\\n--header 'Authorization: Bearer <access_token>'"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "652e955c23085a002d2bf039:652e955c23085a002d2bf04e"
}
```