Linkedin message API

Give your platform native LinkedIn messaging capabilities. Ideal for AI agents and tools managing multi-step outreach.

< 4
s

Avg Response

+ 50

Endpoints

99.9
%

Uptime

import requests

url = "https://api.linkupapi.com/v1/messages/send-message"

payload = {
    "linkedin_url": "<string>",
    "message_text": "<string>",
    "media_link": "<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.json())
1const url = 'https://api.linkupapi.com/v1/messages/send-message';
2const options = {
3  method: 'POST',
4  headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
5  body: '{"linkedin_url":"<string>","message_text":"<string>","country":"<string>","media_link":"<string>","login_token":"<string>"}'
6};
7
8try {
9  const response = await fetch(url, options);
10  const data = await response.json();
11  console.log(data);
12} catch (error) {
13  console.error(error);
14}
1<?php
2
3$curl = curl_init();
4
5curl_setopt_array($curl, [
6  CURLOPT_URL => "https://api.linkupapi.com/v1/messages/send-message",
7  CURLOPT_RETURNTRANSFER => true,
8  CURLOPT_ENCODING => "",
9  CURLOPT_MAXREDIRS => 10,
10  CURLOPT_TIMEOUT => 30,
11  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12  CURLOPT_CUSTOMREQUEST => "POST",
13  CURLOPT_POSTFIELDS => json_encode([
14    'linkedin_url' => '<string>',
15    'message_text' => '<string>',
16    'media_link' => '<string>',
17    'login_token' => '<string>'
18  ]),
19  CURLOPT_HTTPHEADER => [
20    "Content-Type: application/json",
21    "x-api-key: <x-api-key>"
22  ],
23]);
24
25$response = curl_exec($curl);
26$err = curl_error($curl);
27
28curl_close($curl);
29
30if ($err) {
31  echo "cURL Error #:" . $err;
32} else {
33  echo $response;
34}
1package main
2
3import (
4	"fmt"
5	"strings"
6	"net/http"
7	"io"
8)
9
10func main() {
11
12	url := "https://api.linkupapi.com/v1/messages/send-message"
13
14	payload := strings.NewReader("{\n  \"linkedin_url\": \"<string>\",\n  \"message_text\": \"<string>\",\n  \"media_link\": \"<string>\",\n  \"login_token\": \"<string>\"\n}")
15
16	req, _ := http.NewRequest("POST", url, payload)
17
18	req.Header.Add("x-api-key", "<x-api-key>")
19	req.Header.Add("Content-Type", "application/json")
20
21	res, _ := http.DefaultClient.Do(req)
22
23	defer res.Body.Close()
24	body, _ := io.ReadAll(res.Body)
25
26	fmt.Println(res)
27	fmt.Println(string(body))
28
29}
1HttpResponse<String> response = Unirest.post("https://api.linkupapi.com/v1/messages/send-message")
2  .header("x-api-key", "<x-api-key>")
3  .header("Content-Type", "application/json")
4  .body("{\n  \"linkedin_url\": \"<string>\",\n  \"message_text\": \"<string>\",\n  \"country\": \"<string>\",\n  \"media_link\": \"<string>\",\n  \"login_token\": \"<string>\"\n}")
5  .asString();

Send LinkedIn Messages

Send personalized messages to any LinkedIn connection through your platform.

This endpoint handles both new and existing conversations automatically, with support for text and media attachments. Perfect for AI agents and sales platforms managing multi-step outreach sequences, follow-ups, and relationship nurturing at scale.

Automatically detects new or existing conversation threads, eliminating complex conversation management. Send text messages with optional media links to share documents, presentations, or relevant resources.

Ideal for automated prospection campaigns, follow-up sequences, lead nurturing, customer support, and recruitment outreach. Build sophisticated engagement workflows or integrate LinkedIn messaging into your sales automation tools with a single API call.

1{
2  "status": "success",
3  "message": "Message sent successfully"
4}

Sarah Moreau

Head of Sales - Europe | SaaS B2B

  • Message sent successfully
  • Message sent successfully

Privacy and security with no compromise.

Enterprise-grade security measures ensuring your data remains protected at every step of the process.

Real-Time Processing

Process data instantly without storage, ensuring maximum security and optimal performance for all operations.

Zero-Storage Architecture

Our unique architecture processes data on-the-fly without permanent storage, eliminating potential security vulnerabilities.

Enterprise Compliance

Built-in compliance with GDPR, CCPA, and major industry security standards for comprehensive data protection.

Turn your dream workflow into reality

LinkupAPI is integrated with top AI orchestration platforms to power any agentic workflow.

LinkupAPI V2 - See what’s new

Launch LinkedIn campaigns, scrape intent signals, and enrich profiles in seconds. All through one powerful API platform.

50
+

Endpoints

99.9
%

Uptime

< 3
s

Avg Response