# Validate a connection now

> Source: https://truto.one/docs/api-reference/admin/integrated-accounts/validate/

`POST /integrated-account/{id}/validate`

Resource: **Integrated accounts**

## Path parameters

- **`id`** _(string, required)_
  The integrated account to validate.

## Response body

- **`success`** _(boolean)_
  Whether every step passed.
- **`steps`** _(array<object>)_
  One entry per step, in the order they ran.
- **`error`** _(string)_
  Present only when `success` is false. The failure that stopped the run, and the same value written to the account's `last_error`.

## Code examples

### curl

```bash
curl -X POST 'https://api.truto.one/integrated-account/{id}/validate' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/integrated-account/{id}/validate', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/integrated-account/{id}/validate"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.post(url, headers=headers, params=params)
print(response.json())
```
