Generate a hosted re-auth URL for a disconnected or upgraded LinkedIn account.
connectUnipileAccount, but keyed to an existing row in unipile_accounts. Use this when:
disconnected or credentials_requiredaccount_id — so historical prospects, conversations, and sent messages stay linked across the re-auth. The returned url expires 1 hour after issuance.
url must be opened in a human-operated browser. Surface it to the user and poll GET /api/unipile/accounts until the row’s status flips back to connected.When to prefer this over connectUnipileAccount:disconnected) — reconnect keeps the account_id, history, and any attached sender-account links on draft campaigns.connect creates a brand-new row and would leave the old one orphaned.refreshUnipileAccount first — it’s cheaper and doesn’t need the browser. Only fall back to reconnect if the flags still look wrong after a refresh.Chains with: searchUnipile (now eligible for the sales_navigator API), any LinkedIn campaign launch.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Supabase UUID of the unipile_accounts row (NOT the Unipile provider account_id). 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)$Hosted reconnect URL created.
Hosted Unipile reconnect URL. Redirect the user's browser here to complete re-auth. Expires 1 hour after creation.