Validate a connection now
/integrated-account/{id}/validate
Runs the integration's validation action immediately and answers with what each step found.
Validation otherwise runs once, when the account is connected, which makes status and last_error a record of how the connection looked that day. A credential revoked afterwards leaves an account reading active until something happens to call the provider. This endpoint is what makes that pair worth polling.
It writes the same status and fires the same webhook as the connect-time run, so a reader cannot tell the two apart. A failing run sets validation_error and emits integrated_account:validation_error; a passing run clears validation_error back to active and emits integrated_account:active.
Only validation_error is cleared. needs_reauth belongs to the credential-refresh path and post_install_error to the connect run — clearing either here would report a connection healthy on the strength of checks that never looked at what broke it.
Returns 404 when the integration declares no validation action.
Path Parameters
The integrated account to validate.
Response Body
Present only when success is false. The failure that stopped the run, and the same value written to the account's last_error.
One entry per step, in the order they ran.
Whether every step passed.
trueErrors
| Status | Description |
|---|---|
404 | No such integrated account, or the integration declares no validation action. |
curl -X POST 'https://api.truto.one/integrated-account/{id}/validate' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'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);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())