# Government Data Verification

The Government Data Verification module validates identity data extracted from a user's ID against an authoritative government registry. The process runs in the background and isn't visible to the user.

For an overview of this module and how it works, see [Government Data Verification](https://developer.incode.com/docs/government-data-verification).

## Supported with:

:x: Workflows | :white_check_mark: Flows

## Add Government Data Verification to Flows

1. In the left menu, click **Flow Builder** > **Flows**.
2. Click **New** or select an existing Flow.
3. On the **Select Modules** tab, find the **Government Data Verification** module and click **Add**.
4. You can click **Details & Configurations** to open the [Configuration Options](#configuration-options) panel and adjust settings as needed.

## Configuration Options

The options you see in your configuration may differ from those documented below. Contact your Incode representative for more information.

![Image of the Government Data Verification module's configuration panel. Has 11 configuration options.](https://files.readme.io/9287b0863e2cea212b2927f8606b89301ec551867e86bb3f7021c8c7843c7cf1-image.png)

| Setting                                      | Description                                                                                                                                                                                                                                                                                   |
| -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **_INE Facial validation_**                  | Performs facial validation against Mexico's INE (Instituto Nacional Electoral) government registry. Requires facial validation to be available for the selected country under the client's contract.                                                                                          |
| **_Fallback enabled_**                       | Switches to an alternative provider or method if the primary government data source is unavailable.                                                                                                                                                                                           |
| **_Scraping method_**                        | Skips the direct connection check and runs validation using scraping v1 instead. Scraping retrieves verification results by querying a government system using an automated scraper rather than a direct integration. Used as a workaround when a direct provider integration is unavailable. |
| **_Scraping v2_**                            | Runs an upgraded scraping-based validation asynchronously against the Incode scraper service. Used when direct connection is unavailable or fails.                                                                                                                                            |
| **_Scraping v3_**                            | Runs scraping-based validation synchronously, returning an immediate response. Use this when a synchronous result is required. Scraping v1 and v2 run asynchronously.                                                                                                                         |
| **_Fail unsupported Id_**                    | Returns a failure result for document types that are not supported by the configured government provider. When disabled, unsupported documents are passed without a government check.                                                                                                         |
| **_Test INE OK Response_**                   | Simulates a successful response from the INE provider. Use for testing purposes only.                                                                                                                                                                                                         |
| **_Test INE Connection Error_**              | Simulates a connection error from the INE provider. Use for testing purposes only.                                                                                                                                                                                                            |
| **_Test INE User Not Found_**                | Simulates a not-found response from the INE provider. Use for testing purposes only.                                                                                                                                                                                                          |
| **_Data validation_**                        | Compares biographic fields—such as document number, personal number, date of birth, and name—against the government registry.                                                                                                                                                                 |
| **_Skip Government Verification animation_** | Hides the verification animation from the user during processing. Use this to run the module silently without surfacing verification activity in the UI.                                                                                                                                      |

<br />
