Accept Inbound Connection Requests
li_accept_invitationsAccept connection requests sent TO this account. Provide profileUrls to accept only specific people; omit to accept all pending up to maxAccept. State-changing — requires confirmAccept=true.
RETURNS A JOB ID AND DOES NOT WAIT. Reading a long invitations backlog takes minutes, and holding the call open used to exceed the client's own idle limit while the run carried on regardless. Read the outcome with li_job_result(jobId) — it carries the per-person outcomes and the pageState. Pass wait=true only for a handful of people.
CONNECTION REQUESTS ONLY. A newsletter-subscription or page-follow invitation is listed against the INVITER's profile, so naming that person used to subscribe the account to their newsletter — which nothing in this system can undo. Those are now refused per person and reported as not_a_connection_invite; acceptNonConnection=true overrides it deliberately.
Every named person comes back in outcomes with a reason: accepted, not_on_page (we read the WHOLE list and their invitation is not on it), page_not_fully_read (we ran out of budget — this says nothing about them), not_a_connection_invite, click_not_trusted or click_failed. pageState says how much was actually read, so a zero-accept run is diagnosable instead of a guess. ok:false means the run went wrong or did not finish reading, NOT that somebody simply had no invitation pending.
AUTO-MARKS THE TRIAGE MEMORY. Every confirmed acceptance is recorded as decision accepted, and click_failed / click_not_trusted / page_not_fully_read as failed with that reason (so they come back under li_received_invitations onlyUnreviewed for a retry). not_on_page writes nothing. triageMemory in the result says how many were written. Do not mark accepted people yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Block until the run finishes. Default false — reading a long invitations list takes minutes. | |
| maxAccept | No | Cap how many to accept this run. Defaults to the number of profileUrls given, or 20 when accepting whatever is pending. | |
| sessionId | No | Account id from li_list_accounts. Needed (or sessionLabel) when you have more than one account; never guessed. | |
| profileUrls | No | Accept only these profile URLs; omit to accept all pending. | |
| sessionLabel | No | Account by label, LinkedIn name, profile slug or member id (li_list_accounts). Needed (or sessionId) when you have more than one account; never guessed. | |
| confirmAccept | Yes | Must be true to accept; false reads the page and previews what would happen | |
| acceptNonConnection | No | Also accept newsletter subscriptions and page follows. Default false. There is no way to undo one from here. |