Step 1 of the OAuth flow. Returns a hosted URL to redirect the human to.
profileId if supplied), then exchanges the target platform for a hosted OAuth URL. Redirect the human’s browser to the returned connectUrl. After they authorize, the platform redirects them to /api/late/callback?platform=<platform> (handled by lateOauthCallback), which syncs the new account into social_accounts and bounces back to /profile?tab=socials.
Supported platforms: twitter, linkedin.
connectUrllistSocialAccounts or listLateAccounts to detect the new connectioncreateNew gotcha — pass as a string "true" (query param), not a boolean. Any other value is treated as false.Error surfacing — validation errors (invalid platform, bad profileId) return 400 with a human-readable error field. The Late API itself never returns 400 here — that would be a 500.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Which platform to initiate OAuth for. Required.
twitter, linkedin Optional. Attach the new connection to this existing user_profiles row. Omit or pair with createNew=true to create a fresh Late profile.
^([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)$Pass "true" (string) to force creation of a new Late profile even if profileId is supplied. Any other value is treated as false.
OAuth URL issued. Redirect the user's browser to it.
Hosted OAuth URL to redirect the human to. The flow lands back at /api/late/callback?platform=<platform>, which then redirects to /profile?tab=socials.