Get conversation messages
curl --request GET \
--url https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages', 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.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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"
"net/http"
"io"
)
func main() {
url := "https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"conversationId": "2-OVp-y-UNyFXBYvx0FqmQ",
"messages": [
{
"id": "msg_123456789",
"content": "Hi John, I wanted to follow up on our conversation...",
"sender": {
"id": "ACoAAA123456",
"name": "John Doe",
"profileUrl": "https://www.linkedin.com/in/johndoe/"
},
"recipient": {
"id": "ACoAAA123456",
"name": "John Doe",
"profileUrl": "https://www.linkedin.com/in/johndoe/"
},
"direction": "sent",
"sentAt": "2026-04-23T10:30:00.000Z",
"readStatus": "read",
"contentType": "TEXT",
"attachments": [
{
"type": "IMAGE",
"url": "https://media.licdn.com/...",
"name": "document.pdf",
"size": 1024
}
]
}
],
"pagination": {
"continuationToken": "<string>",
"limit": 50,
"hasMore": true
}
}Inbox and Senders
Get Conversation Messages
Read messages for a conversation and its required sender account.
GET
/
v1
/
inbox
/
conversations
/
{conversationId}
/
messages
Get conversation messages
curl --request GET \
--url https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages', 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.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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"
"net/http"
"io"
)
func main() {
url := "https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sendpilot.ai/v1/inbox/conversations/{conversationId}/messages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"conversationId": "2-OVp-y-UNyFXBYvx0FqmQ",
"messages": [
{
"id": "msg_123456789",
"content": "Hi John, I wanted to follow up on our conversation...",
"sender": {
"id": "ACoAAA123456",
"name": "John Doe",
"profileUrl": "https://www.linkedin.com/in/johndoe/"
},
"recipient": {
"id": "ACoAAA123456",
"name": "John Doe",
"profileUrl": "https://www.linkedin.com/in/johndoe/"
},
"direction": "sent",
"sentAt": "2026-04-23T10:30:00.000Z",
"readStatus": "read",
"contentType": "TEXT",
"attachments": [
{
"type": "IMAGE",
"url": "https://media.licdn.com/...",
"name": "document.pdf",
"size": 1024
}
]
}
],
"pagination": {
"continuationToken": "<string>",
"limit": 50,
"hasMore": true
}
}Requires
inbox:read. accountId is required, in addition to the conversation ID in the path. Use the SendPilot sender account from the conversation list.
limit defaults to 50 with a maximum of 100. Pass continuationToken unchanged to page through results.
Inspect the conversation before retrying a send that returned DELIVERY_UNCONFIRMED or UPSTREAM_TIMEOUT. The original message may have been delivered.Authorizations
API key for authentication (prefix: sp_live_ or sp_test_)
Path Parameters
Conversation/chat ID
Example:
"2-OVp-y-UNyFXBYvx0FqmQ"
Query Parameters
LinkedIn sender ID (required to identify which account owns this conversation)
Example:
"sender_123"
Maximum number of items to return
Required range:
1 <= x <= 100Token used for pagination when fetching more messages