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_company": "<string>",
"contact_email_cell": {
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"row_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"contact_linkedin_url": "<string>",
"contact_replied": true,
"contact_status_live": false,
"contact_status_word": "<string>",
"contact_title": "<string>",
"done_at": "2023-11-07T05:31:56Z",
"enrolment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"feedback_state": "working",
"has_attachments": false,
"has_open_questions": false,
"has_pending_draft": false,
"has_unfinished_feedback": false,
"label_marks": [
{
"applied_at": "2023-11-07T05:31:56Z",
"applied_by": "agent",
"applied_by_user_id": "<string>",
"label_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>"
}
],
"last_from_us": true,
"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",
"machine_mail_after_reply": false,
"match_excerpt": "<string>",
"needs_person": {
"kind": "person_call",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>"
},
"not_now_back_by": "sequence",
"not_now_until": "2023-12-25",
"owner_user_id": "<string>",
"pending_draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"privacy_requests": [
{
"blocked": true,
"due_at": "2023-11-07T05:31:56Z",
"erased_at": "2023-11-07T05:31:56Z",
"handled_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "erasure",
"received_at": "2023-11-07T05:31:56Z",
"status": "open",
"subject_email": "<string>",
"subject_name": "<string>",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"erasure": {
"agent_conversations": 123,
"conversations": 123,
"enrolments": 123,
"messages": 123,
"not_erased": [
{
"records": 123,
"table_name": "<string>",
"tool_name": "<string>"
}
],
"sources": [
{
"how": "lead_search",
"rows": 123,
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_name": "<string>",
"in_trash": false
}
]
},
"handled_by_name": "<string>",
"handled_by_user_id": "<string>",
"overdue": false
}
],
"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",
"answering_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"others_waiting": 0,
"saved_answer_scopes": {},
"saved_answers": {},
"shared_question_ids": [
"<string>"
]
},
"referred_to": "<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
},
"stopped_on_failed_step": false,
"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), save one where that mail came after a reply nobody has answered yet (machine_mail_after_reply); 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, needs_you) 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, done or kept out of Inbox, and a label_id every conversation carrying the label. needs_approval lists a waiting draft whatever label its conversation carries. needs_you lists everything waiting on a person: those, and every conversation whose newest reply nobody answered is a call only a person can make or one the AI could not read (each row’s needs_person). 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_company": "<string>",
"contact_email_cell": {
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"row_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"contact_linkedin_url": "<string>",
"contact_replied": true,
"contact_status_live": false,
"contact_status_word": "<string>",
"contact_title": "<string>",
"done_at": "2023-11-07T05:31:56Z",
"enrolment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"feedback_state": "working",
"has_attachments": false,
"has_open_questions": false,
"has_pending_draft": false,
"has_unfinished_feedback": false,
"label_marks": [
{
"applied_at": "2023-11-07T05:31:56Z",
"applied_by": "agent",
"applied_by_user_id": "<string>",
"label_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>"
}
],
"last_from_us": true,
"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",
"machine_mail_after_reply": false,
"match_excerpt": "<string>",
"needs_person": {
"kind": "person_call",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>"
},
"not_now_back_by": "sequence",
"not_now_until": "2023-12-25",
"owner_user_id": "<string>",
"pending_draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"privacy_requests": [
{
"blocked": true,
"due_at": "2023-11-07T05:31:56Z",
"erased_at": "2023-11-07T05:31:56Z",
"handled_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "erasure",
"received_at": "2023-11-07T05:31:56Z",
"status": "open",
"subject_email": "<string>",
"subject_name": "<string>",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"erasure": {
"agent_conversations": 123,
"conversations": 123,
"enrolments": 123,
"messages": 123,
"not_erased": [
{
"records": 123,
"table_name": "<string>",
"tool_name": "<string>"
}
],
"sources": [
{
"how": "lead_search",
"rows": 123,
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_name": "<string>",
"in_trash": false
}
]
},
"handled_by_name": "<string>",
"handled_by_user_id": "<string>",
"overdue": false
}
],
"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",
"answering_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"others_waiting": 0,
"saved_answer_scopes": {},
"saved_answers": {},
"shared_question_ids": [
"<string>"
]
},
"referred_to": "<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
},
"stopped_on_failed_step": false,
"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>"
}Query Parameters
Response
Successful Response
Was this page helpful?