curl --request GET \
--url https://api.getoneprofile.ai/inbox/threads/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/inbox/threads/"
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.getoneprofile.ai/inbox/threads/', 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.getoneprofile.ai/inbox/threads/",
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.getoneprofile.ai/inbox/threads/"
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.getoneprofile.ai/inbox/threads/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/inbox/threads/")
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{
"data": [
{
"came_back": true,
"channel": "email",
"contact_email": "<string>",
"contact_key": "<string>",
"contact_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"follow_up_expected": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_bounce": true,
"is_done": true,
"is_out_of_office": true,
"is_unread": true,
"label_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"last_message_at": "2023-11-07T05:31:56Z",
"last_snippet": "<string>",
"listed_at": "2023-11-07T05:31:56Z",
"mailbox_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_count": 123,
"sequence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"blocked_reply": {
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "credits"
},
"can_reply_on_linkedin": false,
"contact_linkedin_url": "<string>",
"contact_replied": true,
"contact_status_live": false,
"contact_status_word": "<string>",
"done_at": "2023-11-07T05:31:56Z",
"enrolment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"feedback_state": "working",
"has_open_questions": false,
"has_pending_draft": false,
"has_unfinished_feedback": false,
"linkedin_account_status": "pending",
"linkedin_checkpoint_status": "ok",
"linkedin_last_seen_at": "2023-11-07T05:31:56Z",
"linkedin_presence": "active",
"linkedin_queue_expiry_days": 123,
"linkedin_sender_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"match_excerpt": "<string>",
"pending_draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"question_card": {
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"questions": [
{
"id": "<string>",
"text": "<string>"
}
],
"readiness": "ready",
"reason": "<string>",
"waiting_since": "2023-11-07T05:31:56Z",
"others_waiting": 0,
"saved_answer_scopes": {},
"saved_answers": {},
"shared_question_ids": [
"<string>"
]
},
"returns_at": "2023-11-07T05:31:56Z",
"rewriting_draft": {
"draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"learning_subject_key": "<string>"
},
"snoozed_until": "2023-11-07T05:31:56Z",
"stop_reason": "reply",
"stop_request": {
"blocked": true,
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequences_stopped": 123
},
"unread_reply_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"waiting_since": "2023-11-07T05:31:56Z"
}
],
"next_page_cursor": "<string>",
"previous_page_cursor": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}List inbox threads
Newest-first by default, unless search is set. Then it is ranked by relevance, most useful match first, and sort is ignored. sort=longest_waiting reads the same list from the other end, oldest activity first, which is how a reply that has been sitting unanswered for three days gets to the top. order_direction=asc reads whichever order is chosen the other way round. Bounces live in their own view, and away notices and auto-replies under the built-in labels Out of office and Auto-reply, which keep their conversations out of the working views like any label set to (filtered_out); unlabelled is the work queue: real threads nobody and no classifier has described yet. search runs full-text over every message plus the contact’s name and address. channel and the last_message_at__after / last_message_at__before bounds narrow the list; both bounds are inclusive. The working views (all, unlabelled, needs_approval) list only conversations the contact wrote into: a send nobody answered is not in the inbox. all and unlabelled list only those still waiting on us: a reply with no answer yet, an unread conversation, a reminder that went off, or an answer of ours that went three business days unanswered (came_back, returns_at) when the verdict on their latest reply does not say the conversation is over. Once we answer, a conversation moves out and stays in sent; one marked done (is_done) stays out until a new message reaches us. A search reads every conversation the contact wrote into, waiting or not, and a label_id every conversation carrying the label. needs_approval lists a waiting draft whatever label its conversation carries. Each row’s listed_at is the moment it sorts by. bounces and reminders list what a machine wrote or the person snoozed. sent lists every conversation something of ours went out in, a sequence step or a reply, on email or LinkedIn, answered or not and whatever became of it since; a LinkedIn reply still queued for the browser, or one that failed, has not gone out. A send nobody answered never lights the unread badge. Each row’s contact_replied says whether the contact has written back. reply_state=replied keeps the conversations we answered after the contact’s latest reply, by a person or the agent; reply_state=not_replied keeps the ones whose latest reply is still the last word. all_mail lists every conversation, whatever became of it: the place a conversation marked done is found.
curl --request GET \
--url https://api.getoneprofile.ai/inbox/threads/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/inbox/threads/"
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.getoneprofile.ai/inbox/threads/', 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.getoneprofile.ai/inbox/threads/",
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.getoneprofile.ai/inbox/threads/"
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.getoneprofile.ai/inbox/threads/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/inbox/threads/")
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{
"data": [
{
"came_back": true,
"channel": "email",
"contact_email": "<string>",
"contact_key": "<string>",
"contact_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"follow_up_expected": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_bounce": true,
"is_done": true,
"is_out_of_office": true,
"is_unread": true,
"label_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"last_message_at": "2023-11-07T05:31:56Z",
"last_snippet": "<string>",
"listed_at": "2023-11-07T05:31:56Z",
"mailbox_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_count": 123,
"sequence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"blocked_reply": {
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "credits"
},
"can_reply_on_linkedin": false,
"contact_linkedin_url": "<string>",
"contact_replied": true,
"contact_status_live": false,
"contact_status_word": "<string>",
"done_at": "2023-11-07T05:31:56Z",
"enrolment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"feedback_state": "working",
"has_open_questions": false,
"has_pending_draft": false,
"has_unfinished_feedback": false,
"linkedin_account_status": "pending",
"linkedin_checkpoint_status": "ok",
"linkedin_last_seen_at": "2023-11-07T05:31:56Z",
"linkedin_presence": "active",
"linkedin_queue_expiry_days": 123,
"linkedin_sender_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"match_excerpt": "<string>",
"pending_draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"question_card": {
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"questions": [
{
"id": "<string>",
"text": "<string>"
}
],
"readiness": "ready",
"reason": "<string>",
"waiting_since": "2023-11-07T05:31:56Z",
"others_waiting": 0,
"saved_answer_scopes": {},
"saved_answers": {},
"shared_question_ids": [
"<string>"
]
},
"returns_at": "2023-11-07T05:31:56Z",
"rewriting_draft": {
"draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"learning_subject_key": "<string>"
},
"snoozed_until": "2023-11-07T05:31:56Z",
"stop_reason": "reply",
"stop_request": {
"blocked": true,
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequences_stopped": 123
},
"unread_reply_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"waiting_since": "2023-11-07T05:31:56Z"
}
],
"next_page_cursor": "<string>",
"previous_page_cursor": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Query Parameters
Only email, or only LinkedIn
email, linkedin Only conversations carrying this label
Only conversations whose last message is at or after this time
Only conversations whose last message is at or before this time
Only this mailbox's conversations
Leave out these mailboxes' conversations
100Only answered, or only unanswered
replied, not_replied Full-text search over every message and the contact's name and address
255Only this sender's conversations
Leave out these senders' conversations
100Only this sequence's conversations
Leave out these sequences' conversations
100Newest first, longest waiting first, positive labels first, or grouped by sequence
newest, longest_waiting, positives_first, sequence Only conversations nobody has read
Which reading of the inbox to list
^(all|unlabelled|needs_approval|bounces|reminders|sent|all_mail)$The number of items to return.
1 <= x <= 100listed_at asc, desc Set the cursor to the next or previous page. You can get the cursor from the previous page's response.
Response
Successful Response
Was this page helpful?