Withdraw Pending Sent Invitations
li_withdraw_invitesWithdraw connection invites this account has sent that are still pending. Give profileUrls for specific people, and/or olderThanDays to retire everything past that age. Reads LinkedIn's OWN pending list, so it also covers invites sent outside this system (manual/Airtable-era outreach) — not just ones in the database. Stale ignored invites drag the acceptance rate LinkedIn judges the account on. NOTE: LinkedIn blocks re-inviting the same person for ~3 weeks after a withdrawal. State-changing — requires confirmWithdraw=true. Draws from the account's ONE shared daily withdrawal allowance (autoWithdrawPerDay), the same one the automatic sweep spends, so asking for more than is left today is not an error: it withdraws what remains and the reply's note says how many days the rest will take. Report that ETA to the user rather than implying everything was withdrawn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Block until the run finishes. Default false — a backlog drain takes minutes; read li_withdraw_status instead. | |
| sessionId | No | Account id from li_list_accounts. Needed (or sessionLabel) when you have more than one account; never guessed. | |
| maxWithdraw | No | Ceiling for one run (default 25). The shared daily allowance still applies and may be lower. | |
| profileUrls | No | Withdraw these specific profile URLs. | |
| 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. | |
| olderThanDays | No | Withdraw every pending invite at least this many days old (e.g. 30). | |
| confirmWithdraw | Yes | Must be true to withdraw; false returns a dry-run preview |