curl --request GET \
--url https://api.initdesk.com/organizations/{organization_id}/search/ \
--header 'X-Initdesk-Token: <api-key>'import requests
url = "https://api.initdesk.com/organizations/{organization_id}/search/"
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}/search/', 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}/search/",
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}/search/"
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}/search/")
.header("X-Initdesk-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.initdesk.com/organizations/{organization_id}/search/")
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{
"count": 123,
"results": [
{
"id": 123,
"public_id": "<string>",
"channel": {
"type": "<string>",
"connection_id": 123
},
"customer": {
"id": 123,
"name": "<string>",
"email": "jsmith@example.com"
},
"inbox": {
"id": 123,
"name": "<string>",
"email_prefix": "<string>",
"customer_interaction_style": "helpdesk"
},
"assignee": {
"profile_picture_url": "<string>",
"id": 123,
"name": "<string>",
"email": "jsmith@example.com"
},
"subject": "<string>",
"status": "created",
"waiting_on": "",
"summary": "<string>",
"classification": "",
"priority": "not_set",
"short_description": "<string>",
"sentiment_analysis_class": "positive",
"inferred_category": "inquiry",
"customer_visible_reply_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"language": "<string>",
"origin": "email",
"kind": "<string>",
"is_spam": true,
"tags": [
{
"id": 123,
"name": "<string>",
"color": "<string>"
}
],
"has_attachments": true,
"snoozed_until": "2023-11-07T05:31:56Z",
"last_snooze_ended_at": "2023-11-07T05:31:56Z",
"last_unsnooze_reason": "timer"
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Search tickets
Search ticket subjects, messages, and customer details. Use preset_filter to apply one of the predefined filter sets. Use custom_preset_filter (UUID) to apply a saved filter. Filter by tag with tags (repeat the parameter to match any tag). Filter by assignee with assignee (organization user ID). Filter by classification with classification. Filter by priority with priority. Filter by how the ticket was opened with origin (repeat the parameter or use commas). origin__in is a deprecated alias of origin. support_portal is shown as Help Center. Unknown origin values return 400. When you omit ordering and there is no text query, results sort by priority (most urgent first), then relevance, then most recently updated. When you omit ordering and there is a text query, results sort by relevance, then most recently updated. Pass ordering to replace that sort. Filter by an active snooze with is_snoozed. Filter by the customer’s current company with company (UUID). The filter uses the customer’s company at the time of the query. Search results do not include the customer’s company or spam status. There is no filter for customers who have no company. Use customer_id on the ticket list for those tickets. A company with more than 10000 members returns 400. An unknown company returns 404. A malformed UUID returns 400. New or changed tickets can take a few seconds to appear in search.
curl --request GET \
--url https://api.initdesk.com/organizations/{organization_id}/search/ \
--header 'X-Initdesk-Token: <api-key>'import requests
url = "https://api.initdesk.com/organizations/{organization_id}/search/"
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}/search/', 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}/search/",
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}/search/"
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}/search/")
.header("X-Initdesk-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.initdesk.com/organizations/{organization_id}/search/")
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{
"count": 123,
"results": [
{
"id": 123,
"public_id": "<string>",
"channel": {
"type": "<string>",
"connection_id": 123
},
"customer": {
"id": 123,
"name": "<string>",
"email": "jsmith@example.com"
},
"inbox": {
"id": 123,
"name": "<string>",
"email_prefix": "<string>",
"customer_interaction_style": "helpdesk"
},
"assignee": {
"profile_picture_url": "<string>",
"id": 123,
"name": "<string>",
"email": "jsmith@example.com"
},
"subject": "<string>",
"status": "created",
"waiting_on": "",
"summary": "<string>",
"classification": "",
"priority": "not_set",
"short_description": "<string>",
"sentiment_analysis_class": "positive",
"inferred_category": "inquiry",
"customer_visible_reply_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"language": "<string>",
"origin": "email",
"kind": "<string>",
"is_spam": true,
"tags": [
{
"id": 123,
"name": "<string>",
"color": "<string>"
}
],
"has_attachments": true,
"snoozed_until": "2023-11-07T05:31:56Z",
"last_snooze_ended_at": "2023-11-07T05:31:56Z",
"last_unsnooze_reason": "timer"
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Path Parameters
Query Parameters
Sort field. When you omit ordering and there is no text query, results sort by priority (most urgent first), then relevance, then most recently updated. When you omit ordering and there is a text query, results sort by relevance, then most recently updated. priority is most urgent first (urgent down to not_set). -priority is the reverse. relevance is the best match first. -relevance is the worst match first. _score and -_score are deprecated aliases of relevance and -relevance. They will be removed on 2027-05-10. Other fields use a leading minus for descending order. Allowed fields: id, public_id, subject, description, status, priority, created_at, updated_at, relevance.
id, -id, public_id, -public_id, subject, -subject, description, -description, status, -status, priority, -priority, created_at, -created_at, updated_at, -updated_at, relevance, -relevance How the ticket was opened. Repeat the parameter or send a comma-separated list. Values: email, api, telegram, whatsapp, and support_portal (shown as Help Center). Unknown values return 400. When origin and origin__in are both set, a ticket matches if it has any listed value. This is not the conversation channel. Use channel for the channel. You cannot set origin when you create a ticket.
api, email, support_portal, telegram, whatsapp Was this page helpful?

