Skip to main content
POST
/
v1
/
network
/
connect
Send Connection Request
curl --request POST \
  --url https://api.linkupapi.com/v1/network/connect \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "linkedin_url": "<string>",
  "message": "<string>",
  "country": "<string>",
  "login_token": "<string>"
}
'
import requests

url = "https://api.linkupapi.com/v1/network/connect"

payload = {
"linkedin_url": "<string>",
"message": "<string>",
"country": "<string>",
"login_token": "<string>"
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
linkedin_url: '<string>',
message: '<string>',
country: '<string>',
login_token: '<string>'
})
};

fetch('https://api.linkupapi.com/v1/network/connect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linkupapi.com/v1/network/connect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'linkedin_url' => '<string>',
'message' => '<string>',
'country' => '<string>',
'login_token' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.linkupapi.com/v1/network/connect"

payload := strings.NewReader("{\n \"linkedin_url\": \"<string>\",\n \"message\": \"<string>\",\n \"country\": \"<string>\",\n \"login_token\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.linkupapi.com/v1/network/connect")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_url\": \"<string>\",\n \"message\": \"<string>\",\n \"country\": \"<string>\",\n \"login_token\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.linkupapi.com/v1/network/connect")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_url\": \"<string>\",\n \"message\": \"<string>\",\n \"country\": \"<string>\",\n \"login_token\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "status": "success",
  "message": "Connection request sent successfully"
}
Send a connection request to any LinkedIn profile with an optional custom message.
This endpoint costs 1 credit per request.

Header Parameters

x-api-key
string
required
Your API key

Body Parameters

linkedin_url
string
required
URL of the LinkedIn profile to connect with (e.g., https://www.linkedin.com/in/username)
message
string
Custom message to send with the connection request
country
string
default:"FR"
Country code for proxy selection. Available: (US, UK, FR, DE, NL, IT, IL, CA, BR, ES, IN)
login_token
string
required
LinkedIn authentication cookie obtained from the login/verify process

Response

status
string
Request status (success/error)
message
string
Detailed status message about the connection request
{
  "status": "success",
  "message": "Connection request sent successfully"
}

Notes

  • The profile must be accessible with the provided login token
  • Connection requests are subject to LinkedIn’s daily and weekly limits
  • Messages are optional but can increase acceptance rate
  • The URL must be a valid LinkedIn profile URL in the format https://www.linkedin.com/in/[username]