Force an OAuth token refresh. If the refresh fails, the account likely needs to be reconnected.
POST
/v1/accounts/{account_id}/refreshAPI key (dra_…) or dashboard JWT
Force an OAuth token refresh for an account.
AuthorizationstringheaderrequiredBearer token. Use a Dravo API key (`dra_…`) or a dashboard JWT.
account_idstringpathrequiredAccount to refresh.
idstringThe account id.
healthstringUpdated health: active, expiring, expired or requires_reconnect.
token_expires_atstring (ISO 8601)optionalNew access-token expiry.
Error codes
409Refresh failed; account may need to reconnect.
const response = await fetch("https://api.dravo.dev/v1/accounts/{account_id}/refresh", { method: "POST", headers: { "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);{ "id": "acc_8f2c1d", "health": "active", "token_expires_at": "2026-09-01T00:00:00Z"}