# What happens when connection validation runs

> Source: https://truto.one/docs/guides/integrated-accounts/connection-validation/connecting-to-integrated-account-with-connection-validation/

When an integration has [connection validation](/docs/guides/integrated-accounts/connection-validation/setting-up-connection-validation) set up, Truto runs its test API call right after your customer connects or reconnects an account, and the result decides the account's status.

:::skip-reading{cli="truto accounts validate <integrated_account_id>" skill="truto"}
:::

Connect the account as usual, by following [Connect an account from the dashboard](/docs/guides/integrated-accounts/connecting-an-account#connect-an-account-from-the-dashboard).

**Connection Validation Outcomes**:
   - **If Successful**: The test API call succeeds, the connection is validated, and the account shows as active.
   ![Connection Validation Successful](/images/integrated-accounts/guestpoint_connection_validation_successful.png)
   - **If Unsuccessful**: 
     - The test API call returned an error, for example because the credentials are wrong or lack a permission. The integrated account is left in a validation error state.
     ![Connection Validation Unsuccessful](/images/integrated-accounts/guestpoint_connection_validation_unsuccessful.png)
     - A **Validation error** status is shown on the integrated accounts list, helping users understand the issue and fix it. This status is not displayed for successful connections.
     ![Show Label When Connection Validation Failed](/images/integrated-accounts/connection_validation_label.png)

**If using Truto Link SDK**:
   
If you are using the [Link SDK](/docs/sdks/link-sdk) to handle your integration flows, `authenticate` rejects with a [`validation_error`](/docs/sdks/link-sdk#error-handling) when a validation request fails after the integrated account is created. This error informs you (and possibly your front-end application) that the credentials you provided could not be validated.

To rerun validation once the cause is fixed, call `POST /integrated-account/{id}/validate`:

:::code-tabs

```bash label="cURL"
curl -X POST https://api.truto.one/integrated-account/<integrated_account_id>/validate \
  -H "Authorization: Bearer $TRUTO_API_TOKEN"
```

```bash label="CLI"
truto accounts validate <integrated_account_id>
```

:::

## Next

[Connection flow](/docs/guides/integrated-accounts/connection-flow#account-statuses) lists every account status, the webhook Truto sends for it, and what to do next.
