curl --request POST \
--url https://api.initdesk.com/organizations/{organization_id}/tickets/{ticket_id}/unassign/ \
--header 'X-Initdesk-Token: <api-key>'import requests
url = "https://api.initdesk.com/organizations/{organization_id}/tickets/{ticket_id}/unassign/"
headers = {"X-Initdesk-Token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Initdesk-Token': '<api-key>'}};
fetch('https://api.initdesk.com/organizations/{organization_id}/tickets/{ticket_id}/unassign/', 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}/tickets/{ticket_id}/unassign/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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}/tickets/{ticket_id}/unassign/"
req, _ := http.NewRequest("POST", 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.post("https://api.initdesk.com/organizations/{organization_id}/tickets/{ticket_id}/unassign/")
.header("X-Initdesk-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.initdesk.com/organizations/{organization_id}/tickets/{ticket_id}/unassign/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Initdesk-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 123,
"inbox": {
"id": 123,
"name": "<string>",
"email_prefix": "<string>",
"customer_interaction_style": "helpdesk"
},
"channel": {
"type": "<string>",
"connection_id": 123
},
"customer": {
"id": 123,
"name": "<string>",
"company": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"email": "jsmith@example.com",
"is_spam": true,
"is_company_manager": true
},
"assignee": {
"id": 123,
"email": "jsmith@example.com",
"profile_picture_url": "<string>",
"name": "<string>"
},
"public_id": "<string>",
"subject": "<string>",
"kind": "text",
"summary": "<string>",
"customer_visible_reply_count": 123,
"status": "created",
"classification": "",
"priority": "not_set",
"waiting_on": "",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"csat_response": {
"rating": 123,
"comment": "<string>"
},
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"size": 123,
"content_type": "<string>",
"download_url": "<string>"
}
],
"origin": "email",
"has_attachments": true,
"created_by": {
"role": "<string>",
"user": {
"id": 123,
"email": "jsmith@example.com",
"profile_picture_url": "<string>",
"name": "<string>"
}
},
"external_recipient_emails": "<unknown>",
"bcc_recipient_emails": "<unknown>",
"from_email": "jsmith@example.com",
"from_name": "<string>",
"snoozed_until": "2023-11-07T05:31:56Z",
"snoozed_by": {
"id": 123,
"email": "jsmith@example.com",
"profile_picture_url": "<string>",
"name": "<string>"
},
"last_snooze_ended_at": "2023-11-07T05:31:56Z",
"last_unsnooze_reason": "timer",
"merged_into": {
"id": 123,
"public_id": "<string>",
"subject": "<string>"
},
"merged_at": "2023-11-07T05:31:56Z",
"merged_by": {
"id": 123,
"email": "jsmith@example.com",
"profile_picture_url": "<string>",
"name": "<string>"
},
"delivery_status": "pending",
"sent_at": "2023-11-07T05:31:56Z",
"read_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"delivery_failure_reason": "<string>",
"description": "<string>",
"description_html": "<string>",
"sentiment_analysis_class": "positive",
"tags": [
{
"id": 123,
"name": "<string>",
"color": "<string>"
}
],
"language": "<string>",
"is_spam": true
}Unassign ticket
Removes the current assignee from the ticket (sets assignee to null) and returns updated ticket details.
curl --request POST \
--url https://api.initdesk.com/organizations/{organization_id}/tickets/{ticket_id}/unassign/ \
--header 'X-Initdesk-Token: <api-key>'import requests
url = "https://api.initdesk.com/organizations/{organization_id}/tickets/{ticket_id}/unassign/"
headers = {"X-Initdesk-Token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Initdesk-Token': '<api-key>'}};
fetch('https://api.initdesk.com/organizations/{organization_id}/tickets/{ticket_id}/unassign/', 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}/tickets/{ticket_id}/unassign/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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}/tickets/{ticket_id}/unassign/"
req, _ := http.NewRequest("POST", 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.post("https://api.initdesk.com/organizations/{organization_id}/tickets/{ticket_id}/unassign/")
.header("X-Initdesk-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.initdesk.com/organizations/{organization_id}/tickets/{ticket_id}/unassign/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Initdesk-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 123,
"inbox": {
"id": 123,
"name": "<string>",
"email_prefix": "<string>",
"customer_interaction_style": "helpdesk"
},
"channel": {
"type": "<string>",
"connection_id": 123
},
"customer": {
"id": 123,
"name": "<string>",
"company": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"email": "jsmith@example.com",
"is_spam": true,
"is_company_manager": true
},
"assignee": {
"id": 123,
"email": "jsmith@example.com",
"profile_picture_url": "<string>",
"name": "<string>"
},
"public_id": "<string>",
"subject": "<string>",
"kind": "text",
"summary": "<string>",
"customer_visible_reply_count": 123,
"status": "created",
"classification": "",
"priority": "not_set",
"waiting_on": "",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"csat_response": {
"rating": 123,
"comment": "<string>"
},
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"size": 123,
"content_type": "<string>",
"download_url": "<string>"
}
],
"origin": "email",
"has_attachments": true,
"created_by": {
"role": "<string>",
"user": {
"id": 123,
"email": "jsmith@example.com",
"profile_picture_url": "<string>",
"name": "<string>"
}
},
"external_recipient_emails": "<unknown>",
"bcc_recipient_emails": "<unknown>",
"from_email": "jsmith@example.com",
"from_name": "<string>",
"snoozed_until": "2023-11-07T05:31:56Z",
"snoozed_by": {
"id": 123,
"email": "jsmith@example.com",
"profile_picture_url": "<string>",
"name": "<string>"
},
"last_snooze_ended_at": "2023-11-07T05:31:56Z",
"last_unsnooze_reason": "timer",
"merged_into": {
"id": 123,
"public_id": "<string>",
"subject": "<string>"
},
"merged_at": "2023-11-07T05:31:56Z",
"merged_by": {
"id": 123,
"email": "jsmith@example.com",
"profile_picture_url": "<string>",
"name": "<string>"
},
"delivery_status": "pending",
"sent_at": "2023-11-07T05:31:56Z",
"read_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"delivery_failure_reason": "<string>",
"description": "<string>",
"description_html": "<string>",
"sentiment_analysis_class": "positive",
"tags": [
{
"id": 123,
"name": "<string>",
"color": "<string>"
}
],
"language": "<string>",
"is_spam": true
}Authorizations
Path Parameters
A unique integer value identifying this ticket.
^[-a-zA-Z0-9_]+$Response
Show child attributes
Show child attributes
Default list, detail, and search channel payload.
- Option 1
- Option 2
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
255Opening body kind. text or audio. audio: transcript lives in description; empty description means pending STT; description_html stays empty.
text- Textaudio- Audio
text, audio AI generated summary of the ticket
created- Createdactive- Activeclosed- Closed
created, active, closed - `` - (pending)
no_response- No Responsecustomer_inactivity- Customer Inactivityresolved- Resolvedinvalid- Invalidother- Other
, no_response, customer_inactivity, resolved, invalid, other not_set- No prioritylow- Lowmedium- Mediumhigh- Highurgent- Urgent
not_set, low, medium, high, urgent - `` - (none)
customer- Customerassociate- Associate
, customer, associate Show child attributes
Show child attributes
Show child attributes
Show child attributes
How the ticket entered the system (email, api, telegram). Not the conversation medium; use channel.type for that.
email- Emailapi- apitelegram- Telegramwhatsapp- WhatsApp
email, api, telegram, whatsapp Show child attributes
Show child attributes
Creation-time external CC addresses (CC routing). Used for ticket-created outbound email and as the fallback when a message has no prior customer-visible snapshot; associate replies use the message snapshot for outbound CC.
Creation-time BCC addresses (CC routing). Used only for ticket-created outbound email; not applied to later associate replies unless set again on a message.
Create-time requester email snapshot. Deprecated for live identity — use customer.email.
Create-time requester name snapshot. Deprecated for live identity — use customer.name.
When set, the ticket is snoozed until this time.
Show child attributes
Show child attributes
When the ticket last left snooze and returned to open queues (timer, manual, or customer reply).
Why the ticket last left snooze for open queues. Null while snoozed or after close/spam clear.
timer- Timermanual- Manualcustomer_reply- Customer reply
timer, manual, customer_reply, null Minimal reference to the surviving ticket of a merge.
Show child attributes
Show child attributes
When this ticket was merged away into merged_into. Null for tickets that were not merged away.
Show child attributes
Show child attributes
Delivery state of the email sent when an associate creates a ticket. Null when not applicable (inbound, self-service, or no create-email). Later replies do not change this field.
pending- Pendingsent- Sentread- Readfailed- Failed
pending, sent, read, failed, null When the associate create-email was first handed to the delivery platform. Null until that email is sent or read.
When a read receipt was observed for the associate create-email. Null until read; may be best-effort depending on channel.
When the associate create-email permanently failed. Null until failed.
Short diagnostic for a failed associate create-email. Content is unstable and must not be branched on in client code.
Sentiment class of the ticket (positive, negative, neutral)
positive- Positivenegative- Negativeneutral- Neutralpending- Pending
positive, negative, neutral, pending Show child attributes
Show child attributes
Detected language code of the message content
2Was this page helpful?

