App Logo
linkedin.com

Withdraw LinkedIn connection invitation

Withdraw a pending sent connection invitation by profile URL. Finds the "Pending" control (primary top-card action or three-dot menu item) and confirms the "Withdraw invitation?" dialog. Safe to repeat: it returns not_pending if there's no outstanding invite. After withdrawing, LinkedIn blocks resending to that person for about three weeks; it also does not unfollow them, since connecting auto-follows. Statuses: withdrawn/not_pending.

Input

profileUrl required

LinkedIn profile URL, e.g. https://www.linkedin.com/in/emmanuelmacron/ (the /in/<publicId> form; query/locale prefixes are tolerated).

Output

status required

withdrawn = the pending invitation was just withdrawn, confirmed by the pending control disappearing; not_pending = no outstanding invitation to this person.

publicId required

vanity id parsed from the URL (decoded)

profileUrl required
name optional
memberId optional

LinkedIn member id read from the pending control's own componentkey. Null on not_pending.

Start building not clicking