Attempts an OAuth token refresh for every Instagram, TikTok, Facebook, and YouTube connection in the profile. For YouTube it also re-reads the channel's title, avatar, and counts. Takes no body. Each account appears in the response only after its new token and expiry have been written, so a success here means the credential is durable, not merely fetched.
An Instagram account connected with Unified Login (authMethod: "unified_login")
holds a token that does not expire and has nothing to refresh. For it, refresh
checks that the token still works and returns expiresAt: null. A token your
customer revoked comes back as a connection_expired error instead.
expiresAt can be null
expiresAt is null for an Instagram account connected with Unified Login,
whose token does not expire. Earlier, every refreshed account returned a date.
Treat null as "no expiry to schedule against", not as a failure; the account
keeps working until its owner revokes access.
This response is not a list of accounts
It uses the aggregate envelope with the accounts key, but the elements are
a different shape — refresh results, not account records. Code that reuses an
account parser here will not find displayName or connectionStatus.
Path parameters
profileIduuidRequired- A profile in your organization. Any other value returns 404 profile_not_found.
Per-account error codes: provider_not_configured, connection_expired,
account_not_found, provider_error.
Errors — 401 unauthorized, 400 invalid_request, 404 profile_not_found,
502 database_error.