st.withdrawConnectionRequest
This action allows you to withdraw the connection request sent to a person.
In the SDK this is the withdrawConnectionRequest method. It takes the parameters below except label and then, which exist only in workflow JSON. It returns no data: a failed action comes back in errors, with one of the error types below.
In the CLI this is linkedin connection withdraw – the command is below, under Parameters.
Constraints
⏺️ Root Start: allowed, when
personUrlparameter is provided.
⬆️ Parent Actions: st.openPersonPage.
⬇️ Child Actions: N/A.
Parameters
{
"actionType": "st.withdrawConnectionRequest",
"label": "person1",
"personUrl": "https://www.linkedin.com/in/person1",
"unfollow": true
}In AI assistants, the MCP server runs this action as the withdraw_connection_request tool.
In the CLI this is linkedin connection withdraw:
bash
linkedin connection withdraw <url> [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--unfollow / --no-unfollow | boolean | true | Also unfollow the person |
label(optional) – custom label for tracking this action in workflow completion.personUrl(required for root start, forbidden for parent start) – public or hashed LinkedIn URL of the person you want to withdraw the connection request from.unfollow(optional) – boolean indicating whether you want to unfollow the person when withdrawing the request. The default value isfalse: if you omit it, the request is withdrawn and you keep following the person. The CLI is the exception –linkedin connection withdrawsendstrueunless you pass--no-unfollow.
Result options
- Successful connection request withdrawal:
json
{
"actionType": "st.withdrawConnectionRequest",
"success": true,
"label": "person1"
}label– included only if specified in the action parameters.
- Failed connection request withdrawal:
json
{
"actionType": "st.withdrawConnectionRequest",
"label": "person1",
"success": false,
"error": {
"type": "notPending",
"message": "There is no pending connection request to this person."
}
}label– included only if specified in the action parameters.error.type– enum with the following possible values:personNotFound– provided URL is not an existing LinkedIn person.selfProfileNotAllowed– action cannot be performed on your own profile.notPending– there is no pending connection request to this person.