Conversations
List conversation messages
Lists messages from a LinkedIn conversation.
GET
https://api.talktohumans.app
/
v1
/
conversations
/
{conversationId}
/
messages
List conversation messages
curl --request GET \
--url https://api.talktohumans.app/v1/conversations/{conversationId}/messages \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talktohumans.app/v1/conversations/{conversationId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.talktohumans.app/v1/conversations/{conversationId}/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.talktohumans.app/v1/conversations/{conversationId}/messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"messages": [
{
"message_id": "<string>",
"provider_message_id": "<string>",
"conversation_id": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"is_edited": true,
"is_deleted": true,
"attachments": [
{
"attachment_id": "<string>",
"kind": "<string>",
"sort_order": 123,
"provider_attachment_id": "<string>",
"title": "<string>",
"subtitle": "<string>",
"description": "<string>",
"url": "<string>",
"thumbnail_url": "<string>",
"mime_type": "<string>",
"file_name": "<string>",
"size_bytes": 123,
"width": 123,
"height": 123,
"duration_ms": 123
}
],
"text": "<string>",
"sender_participant_id": "<string>"
}
],
"pagination": {
"limit": 10,
"has_more": true,
"next_cursor": "<string>"
}
}
}Authorizations
Pass API key as Authorization: Bearer <api_key>.
Path Parameters
Conversation ID returned by GET /v1/conversations.
Query Parameters
LinkedIn account ID returned by GET /v1/accounts.
Pattern:
^[1-9][0-9]*$Page size. Defaults to 10. Values above 25 are clamped to 25.
Required range:
1 <= x <= 25Opaque cursor from the previous response's pagination.next_cursor.
Response
Messages in the conversation.
Show child attributes
Show child attributes
⌘I
List conversation messages
curl --request GET \
--url https://api.talktohumans.app/v1/conversations/{conversationId}/messages \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talktohumans.app/v1/conversations/{conversationId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.talktohumans.app/v1/conversations/{conversationId}/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.talktohumans.app/v1/conversations/{conversationId}/messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"messages": [
{
"message_id": "<string>",
"provider_message_id": "<string>",
"conversation_id": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"is_edited": true,
"is_deleted": true,
"attachments": [
{
"attachment_id": "<string>",
"kind": "<string>",
"sort_order": 123,
"provider_attachment_id": "<string>",
"title": "<string>",
"subtitle": "<string>",
"description": "<string>",
"url": "<string>",
"thumbnail_url": "<string>",
"mime_type": "<string>",
"file_name": "<string>",
"size_bytes": 123,
"width": 123,
"height": 123,
"duration_ms": 123
}
],
"text": "<string>",
"sender_participant_id": "<string>"
}
],
"pagination": {
"limit": 10,
"has_more": true,
"next_cursor": "<string>"
}
}
}