Check an account
Checks the saved credential on demand. A provider outage does not require reconnecting; refused access or missing requested scopes does.
Checks the saved credential on demand. A provider outage does not require reconnecting; refused access or missing requested scopes does.
apiKeyx-api-key<token>accountId*string^intgacct_[0-9a-hjkmnp-tv-z]{16,24}$IntegrationAccountHealth
application/jsonaccountId*IntegrationAccountId^intgacct_[0-9a-hjkmnp-tv-z]{16,24}$status*AccountHealthStatus"pending""healthy""needsReconnect""forbidden""unavailable"checkedAt*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.accounts.check({ "accountId": "example"});{ "accountId": "string", "status": "pending", "checkedAt": "string"}import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.accounts.check({
"accountId": "example"
});{
"accountId": "string",
"status": "pending",
"checkedAt": "string"
}