List Pending Sent Invitations
li_pending_invitesRead the connection invites this account has sent that are still pending, newest-age-last, each with how many days ago it was sent. Opens a browser session on the account. Read-only — pair it with li_withdraw_invites to clean up; the invites this system itself tracks are li_connections (DB, instant).
READ reach BEFORE CONCLUDING ANYTHING: 'complete' = every pending invitation was read; 'partial' = the walk stopped early (limitedBy says why), so somebody absent may simply be further down; 'failed' = the list could not be read, which is NOT an empty backlog. An account with nothing pending comes back 'complete' with pendingOnLinkedIn 0 (LinkedIn's own "No sent invitations" page).
pendingOnLinkedIn is LinkedIn's OWN published total and is null when unreadable, never 0 — do not substitute a count of the rows below. trackedPendingInDb shows how many this system itself is tracking, which is lower for any account with manual outreach.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | No | Account id from li_list_accounts. Omit (with sessionLabel) to use your default account. | |
| maxInvites | No | Stop after this many, newest first — e.g. 100 for a quick look. Omit to read the WHOLE backlog, which is what you want before bulk-enriching or deciding in one pass, but costs minutes of browser time (~10 invitations per second of scrolling) and holds the browser session for that account throughout, so nothing else on it runs until it finishes. | |
| sessionLabel | No | Account by label, LinkedIn name, profile slug or member id (li_list_accounts). Omit (with sessionId) to use your default account. |