Get unibox chats for a contact
Legacy endpoint. Returns all unibox chats (with their messages) associated with the given contact for the authenticated user.
curl --request GET \
--url https://ext.gojiberry.ai/v1/unibox/contact/{contactId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://ext.gojiberry.ai/v1/unibox/contact/{contactId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ext.gojiberry.ai/v1/unibox/contact/{contactId}', 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://ext.gojiberry.ai/v1/unibox/contact/{contactId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://ext.gojiberry.ai/v1/unibox/contact/{contactId}"
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))
}HttpResponse<String> response = Unirest.get("https://ext.gojiberry.ai/v1/unibox/contact/{contactId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ext.gojiberry.ai/v1/unibox/contact/{contactId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"seen": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"subject": "<string>",
"lastMessage": "<string>",
"lastMessageDate": "2023-11-07T05:31:56Z",
"messages": [
{}
],
"sender": {},
"attendeeId": "<string>",
"accountId": "<string>",
"interested": true,
"tag": "<string>",
"contactId": 123,
"contact": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"fullName": "<string>",
"bounced": false,
"unsubscribed": false,
"redListed": false,
"blocked": false,
"companyBlocked": false,
"emailEnriched": false,
"phoneEnriched": false,
"enrichingEmail": false,
"enrichingPhone": false,
"userId": 123,
"user": {},
"readyForCampaign": false,
"hasStartedCampaign": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"profileBaseline": "<string>",
"location": "<string>",
"companyLocation": "<string>",
"jobTitle": "<string>",
"positionDates": "<string>",
"company": "<string>",
"companySize": "<string>",
"companyUrl": "<string>",
"website": "<string>",
"industry": "<string>",
"email": "<string>",
"email_2": "<string>",
"email_3": "<string>",
"secondEmail": "<string>",
"thirdEmail": "<string>",
"phone": "<string>",
"phone_2": "<string>",
"phone_3": "<string>",
"secondPhone": "<string>",
"thirdPhone": "<string>",
"profileId": "<string>",
"linkedinMemberId": 123,
"profileUrl": "<string>",
"picture": "<string>",
"openToWork": true,
"skills": [
"<string>"
],
"linkedinIdentifier": "<string>",
"note": "<string>",
"user_note": "<string>",
"intent": "<string>",
"intent_scoring": 123,
"total_scoring": 123,
"intent_type": {},
"intent_keyword": "<string>",
"scoring": 123,
"score_reasoning": "<string>",
"fit": "qualified",
"rejectedAt": "2023-11-07T05:31:56Z",
"rejectedByUserId": 123,
"rejectionReason": "<string>",
"rejectionReasonText": "<string>",
"deepResearchStartedAt": "2023-11-07T05:31:56Z",
"deepResearchEndedAt": "2023-11-07T05:31:56Z",
"email_template": {},
"linkedin_template": "<string>",
"personalizedMessages": [
"<string>"
],
"destinationStatus": [
"<string>"
],
"customFields": {},
"campaignStatus": [
"<string>"
],
"signals": [
"<string>"
],
"agentId": 123,
"agent": {
"id": 123,
"name": "<string>",
"targetJobTitles": [
"<string>"
],
"targetIndustries": [
"<string>"
],
"targetCompanySizes": [
"<string>"
],
"targetLocations": [
"<string>"
],
"targetCompanyTypes": [
"<string>"
],
"agentType": "autopilot",
"scriptInstalled": false,
"currentCreditUsage": 0,
"paused": false,
"excludeServiceProviders": false,
"skipIcpFilter": false,
"includeOpenToWorkProfiles": false,
"leadWaterfall": true,
"userId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"additionalCriteria": "<string>",
"variables": [
"<string>"
],
"ignoredCompanies": [
"<string>"
],
"mandatoryKeywords": [
"<string>"
],
"trackingScriptId": "<string>",
"maxCreditUsage": 200,
"lastRun": "2023-11-07T05:31:56Z",
"minLeadScore": 0.75,
"listId": 123
},
"listId": 123,
"list": {
"id": 123,
"name": "<string>",
"userId": 123,
"user": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"campaignId": 123,
"campaign": {
"id": 123,
"name": "<string>",
"userId": 123,
"active": true,
"excludeFirstDegreeFromCampaigns": true,
"splitLinkedinMessagesIntoConversation": false,
"isManual": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"steps": [
{}
],
"skipInvitationAfterDays": 123,
"language": "<string>",
"tone": "professional",
"goal": "conversations",
"linkedinSeatId": 123
},
"customFields": [
"<string>"
]
},
"state": "finished"
},
"seatId": 123,
"seat": {},
"userId": 123,
"user": {}
}
]Authorizations
API key from Settings → API. Send it as Authorization: Bearer .
Headers
ID of an organization member to act on behalf of. The API key user must be the owner of the organization and the target user must belong to the same organization.
Path Parameters
Response
List of unibox chats for the contact, ordered by most recent message first
Unique chat identifier (internal chat ID)
Whether the chat has been seen
Creation timestamp
Last update timestamp
Subject of the chat (sometimes empty)
Content of the latest message in the chat
Date of the latest message in the chat
List of messages in the chat
Sender attendee information for the chat
attendee ID of the conversation partner (internal)
Linkedin account ID associated with this chat (internal)
Whether the contact is interested (sentiment analysis result)
Sentiment / category tag for the chat
Linked Gojiberry contact ID, if matched
Associated Gojiberry contact
Show child attributes
Show child attributes
Gojiberry LinkedIn seat ID owning this chat
Associated LinkedIn seat
User ID who owns this chat
Associated user account
curl --request GET \
--url https://ext.gojiberry.ai/v1/unibox/contact/{contactId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://ext.gojiberry.ai/v1/unibox/contact/{contactId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ext.gojiberry.ai/v1/unibox/contact/{contactId}', 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://ext.gojiberry.ai/v1/unibox/contact/{contactId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://ext.gojiberry.ai/v1/unibox/contact/{contactId}"
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))
}HttpResponse<String> response = Unirest.get("https://ext.gojiberry.ai/v1/unibox/contact/{contactId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ext.gojiberry.ai/v1/unibox/contact/{contactId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"seen": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"subject": "<string>",
"lastMessage": "<string>",
"lastMessageDate": "2023-11-07T05:31:56Z",
"messages": [
{}
],
"sender": {},
"attendeeId": "<string>",
"accountId": "<string>",
"interested": true,
"tag": "<string>",
"contactId": 123,
"contact": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"fullName": "<string>",
"bounced": false,
"unsubscribed": false,
"redListed": false,
"blocked": false,
"companyBlocked": false,
"emailEnriched": false,
"phoneEnriched": false,
"enrichingEmail": false,
"enrichingPhone": false,
"userId": 123,
"user": {},
"readyForCampaign": false,
"hasStartedCampaign": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"profileBaseline": "<string>",
"location": "<string>",
"companyLocation": "<string>",
"jobTitle": "<string>",
"positionDates": "<string>",
"company": "<string>",
"companySize": "<string>",
"companyUrl": "<string>",
"website": "<string>",
"industry": "<string>",
"email": "<string>",
"email_2": "<string>",
"email_3": "<string>",
"secondEmail": "<string>",
"thirdEmail": "<string>",
"phone": "<string>",
"phone_2": "<string>",
"phone_3": "<string>",
"secondPhone": "<string>",
"thirdPhone": "<string>",
"profileId": "<string>",
"linkedinMemberId": 123,
"profileUrl": "<string>",
"picture": "<string>",
"openToWork": true,
"skills": [
"<string>"
],
"linkedinIdentifier": "<string>",
"note": "<string>",
"user_note": "<string>",
"intent": "<string>",
"intent_scoring": 123,
"total_scoring": 123,
"intent_type": {},
"intent_keyword": "<string>",
"scoring": 123,
"score_reasoning": "<string>",
"fit": "qualified",
"rejectedAt": "2023-11-07T05:31:56Z",
"rejectedByUserId": 123,
"rejectionReason": "<string>",
"rejectionReasonText": "<string>",
"deepResearchStartedAt": "2023-11-07T05:31:56Z",
"deepResearchEndedAt": "2023-11-07T05:31:56Z",
"email_template": {},
"linkedin_template": "<string>",
"personalizedMessages": [
"<string>"
],
"destinationStatus": [
"<string>"
],
"customFields": {},
"campaignStatus": [
"<string>"
],
"signals": [
"<string>"
],
"agentId": 123,
"agent": {
"id": 123,
"name": "<string>",
"targetJobTitles": [
"<string>"
],
"targetIndustries": [
"<string>"
],
"targetCompanySizes": [
"<string>"
],
"targetLocations": [
"<string>"
],
"targetCompanyTypes": [
"<string>"
],
"agentType": "autopilot",
"scriptInstalled": false,
"currentCreditUsage": 0,
"paused": false,
"excludeServiceProviders": false,
"skipIcpFilter": false,
"includeOpenToWorkProfiles": false,
"leadWaterfall": true,
"userId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"additionalCriteria": "<string>",
"variables": [
"<string>"
],
"ignoredCompanies": [
"<string>"
],
"mandatoryKeywords": [
"<string>"
],
"trackingScriptId": "<string>",
"maxCreditUsage": 200,
"lastRun": "2023-11-07T05:31:56Z",
"minLeadScore": 0.75,
"listId": 123
},
"listId": 123,
"list": {
"id": 123,
"name": "<string>",
"userId": 123,
"user": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"campaignId": 123,
"campaign": {
"id": 123,
"name": "<string>",
"userId": 123,
"active": true,
"excludeFirstDegreeFromCampaigns": true,
"splitLinkedinMessagesIntoConversation": false,
"isManual": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"steps": [
{}
],
"skipInvitationAfterDays": 123,
"language": "<string>",
"tone": "professional",
"goal": "conversations",
"linkedinSeatId": 123
},
"customFields": [
"<string>"
]
},
"state": "finished"
},
"seatId": 123,
"seat": {},
"userId": 123,
"user": {}
}
].png?fit=max&auto=format&n=fLzJlZyi7L0nfF9B&q=85&s=7dc539f8ea9f771a09a9750c1227ebdb)
.png?fit=max&auto=format&n=fLzJlZyi7L0nfF9B&q=85&s=e742bcbb4bd47cd295da36c48cdd6089)