Account health
Returns the current operational health for one connected account. Use it to decide whether reconnect attention is needed before your app tries to publish.
Authorization
AuthorizationBearer <token>In header
Workspace API key.
Path Params
account_idstring
Connected social account ID such as sa_twitter_1.
Response Body
200
social_account_idstring
UniPost account ID the health snapshot belongs to.
platformstring
Normalized platform name.
statusstring
Derived health state such as "ok", "degraded", or "disconnected".
last_successful_post_atstring | null
Most recent successfully published post timestamp, if one exists.
last_errorobject | null
Most recent publish failure, when health is degraded.
last_error.codestring
Coarse failure category such as token expiry or rate limiting.
last_error.messagestring
Raw downstream error message when available.
last_error.occurred_atstring
When the most recent failure occurred.
token_expires_atstring | null
Stored token expiration time when the platform provides one.
401
error.codestring
Usually "UNAUTHORIZED", "NOT_FOUND", or "INTERNAL_ERROR".
error.normalized_codestring
Lowercase alias such as "unauthorized", "not_found", or "internal_error".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.
404
error.codestring
Usually "UNAUTHORIZED", "NOT_FOUND", or "INTERNAL_ERROR".
error.normalized_codestring
Lowercase alias such as "unauthorized", "not_found", or "internal_error".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.
500
error.codestring
Usually "UNAUTHORIZED", "NOT_FOUND", or "INTERNAL_ERROR".
error.normalized_codestring
Lowercase alias such as "unauthorized", "not_found", or "internal_error".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.