accounts
Connect Account
Connect a LinkedIn account via the manual-paste fallback flow.
Most customers go through the one-click hosted-auth flow (start-connect above + the Unipile webhook). This endpoint is the escape hatch for:
- Tim manually attaching an account he created in the Unipile dashboard
- Pilot customers debugging issues where the hosted-auth webhook didn't fire
- Internal automated tests
Flow:
- Reject duplicates: if a row with the same external_account_id already exists for this client, return 409 (avoids accidentally creating double-billing rows on retry).
- Probe Unipile with check_account_health. We allow warming / requires_action / unknown statuses through (just create the row in warming state — the P1.3 poller will reconcile). Only an actual network/auth error blocks creation.
- Always release the per-call adapter so we never leak the httpx connection pool — every call to get_linkedin_adapter() returns a fresh instance, so aclose() is mandatory.
post/api/v1/accounts
Request
- Base URL: https://api.nudgelink.co (the document declares no server; this is the origin it was published from)
- URL: https://api.nudgelink.co/api/v1/accounts
- Auth: HTTP bearer
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.