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.
Body & query parameters
account_idstringpathrequiredAccount to refresh.
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"}