LinkedIn Accept Invitations

Add incoming pending invitations automatically

Table of Contents

Don't waste your time accepting incoming connection requests!

Instead of spending time each day going through the boring process of accepting requests individually, let our API take care of it for you. By doing so, you will be able to spend your time on more important tasks.

Our solution: Automatically accept requests and receive summary emails

Get your agent accepting as many connections as you want at the speed you want. Every time your agent is launched, receive a summary email including information of each LinkedIn profile that has been added. This way you can:

  • Stay focused.
  • Continue growing your network.
  • Gain better visibility with each new connection you want to interact with.

What will you need? ⚙️

  • Session cookie: Your session cookie from LinkedIn.
  • Number of connections to accept: The number of profiles you want to add per launch of the API.

(You already have all that? Click straight away on "Use this API")

Which steps to follow?

1. Create an account on 💻

If you haven't already, create a FREE account on Phantombuster. Our service will browse the web for you. It’s a website automator which runs in the cloud. Once done we'll follow up.

2. Use this API on your account.👌

Now that you're connected to Phantombuster, Click on the following button (it will open a new tab).

3. Click on Configure me!

You'll now see the 3 configuration dots blinking. Click on them.

4. Linkedin authentication 🔑

(You already know how to get your sessionCookie? skip this part)
Because the script will manipulate LinkedIn for you, it needs to be logged on your LinkedIn account. For that you just need to copy paste your session cookie in the script argument:

  • Using Chrome, go to your LinkedIn homepage and open the inspector
    → Right click anywhere on the page and select “Inspect”
    CMD+OPT+i on macOS
    F12 or CTRL+MAJ+i on Windows

  • Locate the “Application” tab

  • Select “Cookies” > “” on the left menu.

  • Locate the “li_at” cookie.

  • Copy what’s under “Value” (Double click on it then Ctrl+C) and paste it into your script Argument)

// How to access your cookies with Firefox and Safari//

5. How many connections per iteration?

The 2nd parameter you'll need to set is the number of connections to accept which means: how many connections do you want the API to add everytime it runs?

Enter a number between 1 and 50 (by default it's 5).

6. Filter your invitations

The 3rd & 4th parameters (2 checkboxes) will help you to filter out which one you want to accept:

The first checkbox is used to select people who sent you a message
The second one is used to select people who have at least one mutual connection with you

7. Add a private personalized message 🆕 💬

You'll find the message configuration (the last parameter).
This step isn’t mandatory but highly recommended.

In the message textbox you can write a private note (Total: 1000 characters MAX) which will be sent when you accept an invitation.

#firstName# will be replaced in your message by the first name of the person who invited you
#fullName# will be replaced in your message by the first & last name of the person who invited you

Click on 💾 Save

Receive email notifications

To receive summaries of your agent work, go in your API settings and expand "email notifications" field.

Make sure you have checked at least the 2 boxes next to "Finished successfully"

Click on Launch to try it out!

It’s done! All that is left to do is to click on "launch" to try your script!

⚙️️ Repetition setup ⚙️

  • Now that your bot is ready, you just have to customize it to make it work repetitively.
  • Every time the bot is launched, it will accept invitations.
  • To do so, simply hit the “Settings” button to define when your bot is launched.

Then, select a frequency:

Now that this is set, click 💾 Save at the bottom of the page.

Share this API

Your friends & colleagues need to know about this!