Working with connection requests
This page describes how to create workflows for sending, withdrawing, and retrieving pending connection requests on LinkedIn.
Sending connection request
To send a connection request from your account to another person, you need to include st.sendConnectionRequest
action in your workflow. Here's an example:
Workflow:
{
"actionType": "st.sendConnectionRequest",
"personUrl": "https://www.linkedin.com/in/person1",
"note": "Hi, I’d like to connect with you to discuss potential collaboration.",
"email": "example1@gmail.com"
}
Completion:
{
"actionType": "st.sendConnectionRequest",
"success": true
}
Withdrawing connection request
To withdraw the connection request sent from your account, you need to include st.withdrawConnectionRequest
action in your workflow. Here's an example:
Workflow:
{
"actionType": "st.withdrawConnectionRequest",
"personUrl": "https://www.linkedin.com/in/person1",
"unfollow": true
}
Completion:
{
"actionType": "st.withdrawConnectionRequest",
"success": true
}
Retrieving pending connection requests
To retrieve a list of pending connection requests sent from your account, you need to include st.retrievePendingRequests
action in your workflow. Here's an example:
Workflow:
{
"actionType": "st.retrievePendingRequests"
}
Completion:
{
"actionType": "st.retrievePendingRequests",
"success": true,
"data": [
{
"name": "John Doe",
"publicUrl": "https://www.linkedin.com/in/johndoe",
"headline": "Founder & CEO at Example Company"
},
{
"name": "Jane Smith",
"publicUrl": "https://www.linkedin.com/in/janesmith",
"headline": "CTO at Tech Solutions"
},
{
"name": "Carlos Santos",
"publicUrl": "https://www.linkedin.com/in/carlossantos",
"headline": "Product Manager at Startup Hub"
}
]
}
This page provides examples of workflows and their completions. For detailed documentation on constraints, parameters, and possible results of specific actions, always refer to the corresponding action documentation pages.