LinkedIn accounts with Unipile
Unipile connects LinkedIn accounts to software. A workspace connects its own Unipile account, then each member connects their own LinkedIn account through it, and Digize can visit profiles, send connection requests, messages and InMail from those accounts, and hear back when someone replies or accepts. Outreach uses it; anything else can too.
Reading the accounts needs outreach:read or crm:read, connecting and changing your own LinkedIn account outreach:write or crm:write (Outreach sends from it, and CRM’s conversations will), changing someone else’s settings:write as well, and connecting Unipile itself settings:write. Every operation but connecting Unipile is held back while Unipile isn’t offered to the workspace.
Connecting Unipile
Section titled “Connecting Unipile”In Unipile’s dashboard, make an access token and copy your DSN, the address of your Unipile server, such as api8.unipile.com:13851. Connect in Settings › Integrations › Unipile with both. Unipile checks the token; Digize keeps it sealed. The DSN must be one of Unipile’s API hosts, so a token can’t be sent anywhere else.
| To | Operations |
|---|---|
| Connect with the access token and DSN | POST /api/v1/unipile/connect |
Connecting registers three Unipile webhooks at /api/hooks/unipile/<workspace>: new messages, new relations (accepted invitations) and account status, each sending a secret of the workspace’s own in its Unipile-Auth header, which Digize checks. Connecting again replaces them. Unipile only sends webhooks to https, so a server without it connects but hears nothing back.
Unipile bills your account for each LinkedIn account connected through it; Digize doesn’t charge for it.
Members’ LinkedIn accounts
Section titled “Members’ LinkedIn accounts”Each member connects their own account, on Unipile’s Accounts tab (or in Outreach’s settings), in one of two ways:
- Unipile’s sign-in.
POST /api/v1/unipile/accounts/linkanswers a link to Unipile’s hosted page, where the member signs in to LinkedIn with their password or a QR code and answers LinkedIn’s checks. They come back toreturnTowithlinkedin=connectedorlinkedin=failedadded, and the account shows once Unipile tells Digize it connected. The link lasts an hour. LinkedIn Recruiter is left off, since it allows one session at a time. - Their cookie.
POST /api/v1/unipile/accounts/cookietakes theli_atcookie from a browser signed in to LinkedIn (in the browser’s developer tools, Application › Cookies › linkedin.com) and that browser’s user agent, which must match or LinkedIn signs the browser out. Sales Navigator’sli_acookie can go too. Digize passes the cookie to Unipile and doesn’t keep it.
Both take accept: true: the member accepts that automating LinkedIn breaks its rules.
LinkedIn may ask for a check while an account connects: a code by text, email or an authenticator app (2FA, OTP), approval in LinkedIn’s app (IN_APP_VALIDATION), or a phone number to send a code to (PHONE_REGISTER). The answer says which, with an intentId; answer it with POST /api/v1/unipile/accounts/checkpoint within 5 minutes: solve with the code, resend it, another_way to get it another way, or check once it’s approved in the app. A CAPTCHA can’t be answered through the API; use Unipile’s sign-in instead.
| To | Operations |
|---|---|
| List the accounts, with what each sent today and this week | GET /api/v1/unipile/accounts |
| Change an account’s caps, hours, time zone and who else may send from it | PATCH /api/v1/unipile/accounts/{id} |
| Disconnect one, deleting it on Unipile | DELETE /api/v1/unipile/accounts/{id} |
An account’s status is ok while it sends. credentials means LinkedIn signed it out (reconnect it), restricted that LinkedIn restricted it, error or stopped that Unipile stopped syncing it, and deleted that it’s gone from the Unipile account. Its owner hears about each in the bell and by email.
Pacing
Section titled “Pacing”Every call LinkedIn counts (a profile visit, a connection request, withdrawing one, a message, an InMail) waits in a queue for its account, which sends one at a time, inside the account’s working hours, under its caps, 3 to 9 minutes apart at random. Days and weeks are the account’s own, in its time zone.
| Cap | Starts at | At most (Unipile’s limits) |
|---|---|---|
| Connection requests a day | 20 | 100 |
| Connection requests over seven days | 100 | 200 |
| Messages a day | 50 | 100 |
| Profile visits a day | 50 | 100 |
| InMails a day | 20 | 50 |
Working hours start at Monday to Friday, 08:00 to 18:00. A message a member types in Conversations goes at once, whatever the hours and gaps, and still counts. When LinkedIn says an account reached its own limit, the account waits until its next working day; when it signs an account out, nothing more is sent from it until it’s reconnected, and what was waiting goes then.
Before sending anything else to someone whose LinkedIn id Digize doesn’t know yet, it reads their profile from its URL, without it showing in their “who viewed your profile”; that read counts as a profile visit.
Calling Unipile directly
Section titled “Calling Unipile directly”integrations.unipile.read, .write and .request call any endpoint of Unipile’s API with the workspace’s token, under your DSN’s /api/v1 (see Calling connected services). Most calls name a LinkedIn account with account_id, Unipile’s id for it, which GET /api/v1/unipile/accounts gives as unipileId. Calls made this way skip the pacing queue and its caps.
Disconnecting
Section titled “Disconnecting”Disconnecting Unipile in Settings › Integrations deletes Digize’s webhooks and every member’s LinkedIn account on Unipile, so the workspace stops paying for them, and cancels what was waiting to send. Deleting the workspace does the same. Contacts and their timelines stay.