Send a LinkedIn connection request to a contact
curl --request POST \
--url https://api.reply.io/v3/contacts/{id}/send-direct-linkedin-connect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"linkedInAccountId": 123,
"message": "<string>"
}
'import requests
url = "https://api.reply.io/v3/contacts/{id}/send-direct-linkedin-connect"
payload = {
"linkedInAccountId": 123,
"message": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({linkedInAccountId: 123, message: '<string>'})
};
fetch('https://api.reply.io/v3/contacts/{id}/send-direct-linkedin-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.reply.io/v3/contacts/{id}/send-direct-linkedin-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([
'linkedInAccountId' => 123,
'message' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.reply.io/v3/contacts/{id}/send-direct-linkedin-connect"
payload := strings.NewReader("{\n \"linkedInAccountId\": 123,\n \"message\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.reply.io/v3/contacts/{id}/send-direct-linkedin-connect")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"linkedInAccountId\": 123,\n \"message\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/contacts/{id}/send-direct-linkedin-connect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedInAccountId\": 123,\n \"message\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"actionType": "connect",
"linkedInActivityId": 1042,
"sentAtUtc": "2026-05-15T10:30:00Z"
}Direct Outreach
Send a LinkedIn connection request to a contact
Requires the
contacts:operate scope (or a broader one that includes it).
Invite a contact to connect on LinkedIn outside any sequence. Pass the connected account to send from, plus an optional note.
POST
/
v3
/
contacts
/
{id}
/
send-direct-linkedin-connect
Send a LinkedIn connection request to a contact
curl --request POST \
--url https://api.reply.io/v3/contacts/{id}/send-direct-linkedin-connect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"linkedInAccountId": 123,
"message": "<string>"
}
'import requests
url = "https://api.reply.io/v3/contacts/{id}/send-direct-linkedin-connect"
payload = {
"linkedInAccountId": 123,
"message": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({linkedInAccountId: 123, message: '<string>'})
};
fetch('https://api.reply.io/v3/contacts/{id}/send-direct-linkedin-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.reply.io/v3/contacts/{id}/send-direct-linkedin-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([
'linkedInAccountId' => 123,
'message' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.reply.io/v3/contacts/{id}/send-direct-linkedin-connect"
payload := strings.NewReader("{\n \"linkedInAccountId\": 123,\n \"message\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.reply.io/v3/contacts/{id}/send-direct-linkedin-connect")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"linkedInAccountId\": 123,\n \"message\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/contacts/{id}/send-direct-linkedin-connect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedInAccountId\": 123,\n \"message\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"actionType": "connect",
"linkedInActivityId": 1042,
"sentAtUtc": "2026-05-15T10:30:00Z"
}Authorizations
Authenticate every request with a Bearer token. Pass your Reply API key in the
Authorization header:
Authorization: Bearer <your-api-key>
Get your API key from the Reply dashboard: Settings → API Key.
Path Parameters
Contact ID
Required range:
x >= 1Body
application/json
Response
Connection request sent successfully.
Response returned after a direct LinkedIn action is dispatched.
The type of LinkedIn action performed.
Available options:
connect, inMail, message, voice, aiVoice ID of the LinkedIn activity record created for this action.
UTC timestamp when the action was dispatched.