Conversations
List conversations
Lists LinkedIn conversations.
GET
https://api.talktohumans.app
/
v1
/
conversations
List conversations
curl --request GET \
--url https://api.talktohumans.app/v1/conversations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talktohumans.app/v1/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.talktohumans.app/v1/conversations"
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"
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": {
"conversations": [
{
"conversation_id": "<string>",
"account": {
"account_id": "<string>",
"display_name": "<string>",
"provider_account_id": "<string>",
"owner_user_id": "<string>"
},
"title": "<string>",
"is_group": true,
"participants": [
{
"contact_id": "<string>",
"provider_participant_id": "<string>",
"name": "<string>",
"account_relationship_id": "<string>",
"public_identifier": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"headline": "<string>",
"primary_role_title": "<string>",
"primary_company_name": "<string>",
"linkedin_url": "<string>",
"avatar_url": "<string>"
}
],
"app_url": "<string>",
"last_message_text": "<string>",
"last_message_at": "2023-11-07T05:31:56Z",
"current_state": "<string>",
"sequence": {
"sequence_id": "<string>",
"status": "<string>",
"stop_if_person_replies": true,
"steps": [
{
"step_id": "<string>",
"step_type": "<string>",
"trigger_type": "<string>",
"position": 123,
"message_mode": "<string>",
"state": "<string>",
"template_run_public_id": "<string>",
"scheduled_for": "2023-11-07T05:31:56Z"
}
],
"reply_guard_after": "2023-11-07T05:31:56Z",
"next_step_id": "<string>",
"next_step_scheduled_for": "2023-11-07T05:31:56Z"
}
}
],
"pagination": {
"limit": 10,
"has_more": true,
"next_cursor": "<string>"
}
}
}Authorizations
Pass API key as Authorization: Bearer <api_key>.
Query Parameters
Filter by a participant tag. The connected account's own profile is ignored.
Filter by TalkToHumans contact ID. Use a positive integer encoded as a string.
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
Conversations matching the filters.
Show child attributes
Show child attributes
⌘I
List conversations
curl --request GET \
--url https://api.talktohumans.app/v1/conversations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talktohumans.app/v1/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.talktohumans.app/v1/conversations"
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"
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": {
"conversations": [
{
"conversation_id": "<string>",
"account": {
"account_id": "<string>",
"display_name": "<string>",
"provider_account_id": "<string>",
"owner_user_id": "<string>"
},
"title": "<string>",
"is_group": true,
"participants": [
{
"contact_id": "<string>",
"provider_participant_id": "<string>",
"name": "<string>",
"account_relationship_id": "<string>",
"public_identifier": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"headline": "<string>",
"primary_role_title": "<string>",
"primary_company_name": "<string>",
"linkedin_url": "<string>",
"avatar_url": "<string>"
}
],
"app_url": "<string>",
"last_message_text": "<string>",
"last_message_at": "2023-11-07T05:31:56Z",
"current_state": "<string>",
"sequence": {
"sequence_id": "<string>",
"status": "<string>",
"stop_if_person_replies": true,
"steps": [
{
"step_id": "<string>",
"step_type": "<string>",
"trigger_type": "<string>",
"position": 123,
"message_mode": "<string>",
"state": "<string>",
"template_run_public_id": "<string>",
"scheduled_for": "2023-11-07T05:31:56Z"
}
],
"reply_guard_after": "2023-11-07T05:31:56Z",
"next_step_id": "<string>",
"next_step_scheduled_for": "2023-11-07T05:31:56Z"
}
}
],
"pagination": {
"limit": 10,
"has_more": true,
"next_cursor": "<string>"
}
}
}