Get Chat People
curl --request GET \
--url https://api.happenstance.ai/v1/chat/{chat_id}/people \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.happenstance.ai/v1/chat/{chat_id}/people"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.happenstance.ai/v1/chat/{chat_id}/people', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"chat_id": "<string>",
"page": 123,
"page_size": 123,
"total": 123,
"has_more": true,
"people": [
{
"person_id": "<string>",
"name": "<string>",
"happenstance_url": "<string>",
"relationship": {
"you_know_them": true,
"sources": [
"<string>"
],
"affinity": 123,
"affinity_level": "very_strong"
},
"rationale_markdown": "<string>",
"turn_ids": [
"<string>"
],
"headline": "<string>",
"current_title": "<string>",
"current_company": "<string>",
"location": "<string>",
"linkedin_url": "<string>",
"mutuals": [
{
"user_id": "<string>",
"name": "<string>",
"happenstance_url": "<string>",
"via": "friend",
"affinity": 123,
"affinity_level": "very_strong",
"sources": [
"<string>"
]
}
],
"links": [
{
"url": "<string>",
"text": "<string>"
}
],
"columns": [
{
"column": "<string>",
"value": "<string>"
}
],
"section": "<string>",
"search_id": "<string>"
}
],
"turn_id": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}API Reference
Get Chat People
Everyone Chat showed in the chat, one row per person with their cards merged: title, company, location, LinkedIn, how the user is connected (directly, and through which mutuals, with connection strength), and why Chat picked them. In order of first appearance; with turn_id, the people of that turn.
GET
/
v1
/
chat
/
{chat_id}
/
people
Get Chat People
curl --request GET \
--url https://api.happenstance.ai/v1/chat/{chat_id}/people \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.happenstance.ai/v1/chat/{chat_id}/people"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.happenstance.ai/v1/chat/{chat_id}/people', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"chat_id": "<string>",
"page": 123,
"page_size": 123,
"total": 123,
"has_more": true,
"people": [
{
"person_id": "<string>",
"name": "<string>",
"happenstance_url": "<string>",
"relationship": {
"you_know_them": true,
"sources": [
"<string>"
],
"affinity": 123,
"affinity_level": "very_strong"
},
"rationale_markdown": "<string>",
"turn_ids": [
"<string>"
],
"headline": "<string>",
"current_title": "<string>",
"current_company": "<string>",
"location": "<string>",
"linkedin_url": "<string>",
"mutuals": [
{
"user_id": "<string>",
"name": "<string>",
"happenstance_url": "<string>",
"via": "friend",
"affinity": 123,
"affinity_level": "very_strong",
"sources": [
"<string>"
]
}
],
"links": [
{
"url": "<string>",
"text": "<string>"
}
],
"columns": [
{
"column": "<string>",
"value": "<string>"
}
],
"section": "<string>",
"search_id": "<string>"
}
],
"turn_id": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}{
"title": "<string>",
"status": 123,
"type": "https://developer.happenstance.ai/api-reference/introduction#error-response-format",
"detail": "<string>",
"instance": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Only the people this turn showed, in its order; latest for the newest turn
Page, starting at 0 (100 people a page)
Required range:
x >= 0Response
Successful Response
Response from GET /v1/chat/{chat_id}/people.
