curl --request GET \
--url https://api.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/ \
--header 'X-Initdesk-Token: <api-key>'import requests
url = "https://api.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/"
headers = {"X-Initdesk-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Initdesk-Token': '<api-key>'}};
fetch('https://api.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/', 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.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/",
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-Initdesk-Token: <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.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Initdesk-Token", "<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.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/")
.header("X-Initdesk-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Initdesk-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"criteria": {
"tags_include": [
"<string>"
],
"tags_exclude": [
"<string>"
],
"assignee_ids": [
123
],
"statuses": [
"created"
],
"waiting_on": [
""
],
"inbox_ids": [
123
],
"channels": [
"email"
],
"classifications": [
""
],
"priorities": [
"not_set"
],
"is_snoozed": true
},
"created_by": {
"id": 123,
"email": "jsmith@example.com",
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"position": 1073741823,
"display_count": true,
"group_by_priority": true,
"visibility": "personal"
}Retrieve custom preset filter
Return a saved ticket search filter by ID. Integration tokens may only retrieve organization-shared filters.
curl --request GET \
--url https://api.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/ \
--header 'X-Initdesk-Token: <api-key>'import requests
url = "https://api.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/"
headers = {"X-Initdesk-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Initdesk-Token': '<api-key>'}};
fetch('https://api.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/', 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.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/",
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-Initdesk-Token: <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.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Initdesk-Token", "<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.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/")
.header("X-Initdesk-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.initdesk.com/organizations/{organization_id}/custom-preset-filters/{id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Initdesk-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"criteria": {
"tags_include": [
"<string>"
],
"tags_exclude": [
"<string>"
],
"assignee_ids": [
123
],
"statuses": [
"created"
],
"waiting_on": [
""
],
"inbox_ids": [
123
],
"channels": [
"email"
],
"classifications": [
""
],
"priorities": [
"not_set"
],
"is_snoozed": true
},
"created_by": {
"id": 123,
"email": "jsmith@example.com",
"name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"position": 1073741823,
"display_count": true,
"group_by_priority": true,
"visibility": "personal"
}Authorizations
Response
Serializer for creating and updating custom preset filters.
Seeded defaults may carry an internal key (never exposed here). When
key is set, name in the response is translated via gettext for the
request locale. Providing name on update clears key so the stored
name becomes user-owned data (translate-until-renamed).
255Structured ticket search criteria for custom preset filters.
Show child attributes
Show child attributes
Read-only creator summary for custom preset filter responses.
Show child attributes
Show child attributes
Display order within the visibility band (lower first). Personal and organization-shared filters are ordered in separate bands.
0 <= x <= 2147483647Whether the inbox UI should show a ticket count for this filter.
Whether the inbox UI should group tickets by priority for this filter. Search sort order is independent of this flag.
personal- Personalorganization_shared- Organization shared
personal, organization_shared Was this page helpful?

