Skip to content
POST /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

idstring · uuid
required·

The integrated account to validate.

Response Body

errorstring

Present only when success is false. The failure that stopped the run, and the same value written to the account's last_error.

stepsobject[]

One entry per step, in the order they ran.

successboolean

Whether every step passed.

Example: true

Errors

StatusDescription
404No 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())