curl --request GET \
--url http://localhost:8080/inbox-views \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8080/inbox-views"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8080/inbox-views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/inbox-views",
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 := "http://localhost:8080/inbox-views"
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("http://localhost:8080/inbox-views")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/inbox-views")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"filters": {
"date": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"preset": "today"
},
"channels": [
"web"
],
"status": [
1073741823
],
"sub_status_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"ai_closure": [
"assumed_resolved"
],
"sentiment": [
"angry"
],
"assignees": [
1073741823
],
"team_ids": [
"<string>"
],
"support_team_ids": [
"<string>"
],
"contact_ids": [
"<string>"
],
"ticket_number": 1073741823,
"language": [
"<string>"
],
"tags": [
"<string>"
],
"waiting_on": "customers",
"custom_data": [
{}
]
},
"advanced": true,
"sort_by": "last_message_at",
"sort_order": "asc",
"group_by": "tags",
"group_by_attribute": "<string>",
"shared_with_user_ids": [
0
],
"shared_with_team_ids": [
"<string>"
],
"visibility": "organization",
"created_by_user_id": 0,
"can_edit": true,
"can_delete": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}List saved inbox views
List the saved inbox views the caller can see — their own, the ones shared with them or their teams, and the organization-wide ones.
curl --request GET \
--url http://localhost:8080/inbox-views \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8080/inbox-views"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8080/inbox-views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/inbox-views",
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 := "http://localhost:8080/inbox-views"
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("http://localhost:8080/inbox-views")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/inbox-views")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"filters": {
"date": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"preset": "today"
},
"channels": [
"web"
],
"status": [
1073741823
],
"sub_status_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"ai_closure": [
"assumed_resolved"
],
"sentiment": [
"angry"
],
"assignees": [
1073741823
],
"team_ids": [
"<string>"
],
"support_team_ids": [
"<string>"
],
"contact_ids": [
"<string>"
],
"ticket_number": 1073741823,
"language": [
"<string>"
],
"tags": [
"<string>"
],
"waiting_on": "customers",
"custom_data": [
{}
]
},
"advanced": true,
"sort_by": "last_message_at",
"sort_order": "asc",
"group_by": "tags",
"group_by_attribute": "<string>",
"shared_with_user_ids": [
0
],
"shared_with_team_ids": [
"<string>"
],
"visibility": "organization",
"created_by_user_id": 0,
"can_edit": true,
"can_delete": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Default Response
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Name shown in the inbox view picker
The saved filter set. null when advanced is true — the view uses filters this API cannot express.
Show child attributes
Show child attributes
True when the view was built in the dashboard with OR/exclude groups or filters outside this API's vocabulary. Its filters read back as null, and updating filters on it REPLACES the whole saved query with the simple set you send.
Sort field the view opens with
last_message_at, created_at, sla_urgency, snoozed_until Sort direction the view opens with
asc, desc Field sessions are grouped by in the list, when the view groups them
tags, contact_attribute, session_attribute, channel, assignee_id, status, ai_closure_type, language, inbox_id Exact attribute key for contact or session attribute grouping, or null when no key is set.
User ids the view is shared with. Empty (with no teams) means the whole org.
-9007199254740991 <= x <= 9007199254740991Team ids the view is shared with. Empty (with no users) means the whole org.
organization, personal, restricted -9007199254740991 <= x <= 9007199254740991Whether the calling user may update this view
Whether the calling user may delete this view
Was this page helpful?