Re-read LinkedIn account details from Unipile and sync premium / Sales Navigator flags plus weekly limits.
unipile_accounts:
name, profile_urlis_premium, has_sales_navigatorweekly_connection_limit (100 premium / 80 free)weekly_message_limit (150 premium / 100 free)changed object in the response is a per-field diff versus the prior row — useful for deciding whether to notify the user.
reconnectUnipileAccount) when:reconnectUnipileAccount instead when:disconnected or credentials_required — refresh cannot restore broken cookies.changed.has_sales_navigator comes back false but the user insists the upgrade happened — Unipile may need a fresh cookie capture.searchUnipile (Sales Navigator flag determines which search API is used), any LinkedIn campaign launch.Idempotent. Safe to call repeatedly — both Unipile-side reads and DB writes are trivial. Still, don’t poll this endpoint; Unipile account state changes are infrequent.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Supabase UUID of the unipile_accounts row. Must be owned by the authenticated user.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Account refreshed. Response reflects the post-refresh state of the row.
true True if the LinkedIn account has any premium feature or a premiumId.
True if the account has the sales_navigator premium feature.
Weekly connection-request cap after refresh. Premium accounts get 100, free get 80.
0 < x <= 9007199254740991Weekly message cap after refresh. Premium accounts get 150, free get 100.
0 < x <= 9007199254740991Per-field diff versus the previously stored row. Both false means nothing changed.