Escalate a ticket to a different agent
curl --request POST \
--url https://api.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"escalate_to": 123
}
'import requests
url = "https://api.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/"
payload = { "escalate_to": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({escalate_to: 123})
};
fetch('https://api.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/', 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.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'escalate_to' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/"
payload := strings.NewReader("{\n \"escalate_to\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"escalate_to\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"escalate_to\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"title": "<string>",
"pipeline": 123,
"pipeline_name": "<string>",
"stage": 123,
"stage_name": "<string>",
"stage_color": "<string>",
"receiver": 123,
"receiver_name": "<string>",
"receiver_phone": "<string>",
"affected_contacts": "<string>",
"assigned_to_name": "<string>",
"watchers": [
{
"id": 123,
"username": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"deleted_at": "2023-11-07T05:31:56Z",
"uid": "<string>",
"is_verified": true,
"profile_picture": "<string>",
"locale": "<string>",
"phone_number": "<string>",
"name": "<string>",
"source": "unknown",
"last_login_source": "unknown",
"country": "<string>",
"currency": "<string>",
"referral_code": "<string>",
"wallet_balance": "<string>",
"email_notify_alerts": true,
"email_notify_updates": true,
"referred_by": 123
}
],
"sub_tickets": [
{
"id": 123,
"title": "<string>",
"stage_name": "<string>"
}
],
"duplicate_of": 123,
"duplicates": [
{
"id": 123,
"title": "<string>",
"stage_name": "<string>"
}
],
"reopened_count": 123,
"last_customer_at": "2023-11-07T05:31:56Z",
"escalated_at": "2023-11-07T05:31:56Z",
"escalated_to": 123,
"escalated_to_name": "<string>",
"created_by": 123,
"comment_count": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"type": "complaint",
"severity": "sev1",
"priority": "low",
"source": "whatsapp",
"assigned_to": 123,
"assigned_inbox": 123,
"parent_ticket": 123,
"due_at": "2023-11-07T05:31:56Z",
"outcome": "resolved",
"sla_policy": 123,
"first_response_at": "2023-11-07T05:31:56Z",
"first_response_sla": "2023-11-07T05:31:56Z",
"resolution_sla": "2023-11-07T05:31:56Z",
"sla_paused_at": "2023-11-07T05:31:56Z",
"sla_paused_duration": "<string>",
"sla_breached": true,
"tags": "<unknown>",
"custom_fields": "<unknown>"
}{}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Tickets
Escalate a ticket to a different agent
POST
/
api
/
v1
/
tickets
/
{ticket_id}
/
escalate
/
Escalate a ticket to a different agent
curl --request POST \
--url https://api.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"escalate_to": 123
}
'import requests
url = "https://api.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/"
payload = { "escalate_to": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({escalate_to: 123})
};
fetch('https://api.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/', 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.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'escalate_to' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/"
payload := strings.NewReader("{\n \"escalate_to\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"escalate_to\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.algosmiths.com/api/v1/tickets/{ticket_id}/escalate/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"escalate_to\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"title": "<string>",
"pipeline": 123,
"pipeline_name": "<string>",
"stage": 123,
"stage_name": "<string>",
"stage_color": "<string>",
"receiver": 123,
"receiver_name": "<string>",
"receiver_phone": "<string>",
"affected_contacts": "<string>",
"assigned_to_name": "<string>",
"watchers": [
{
"id": 123,
"username": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"deleted_at": "2023-11-07T05:31:56Z",
"uid": "<string>",
"is_verified": true,
"profile_picture": "<string>",
"locale": "<string>",
"phone_number": "<string>",
"name": "<string>",
"source": "unknown",
"last_login_source": "unknown",
"country": "<string>",
"currency": "<string>",
"referral_code": "<string>",
"wallet_balance": "<string>",
"email_notify_alerts": true,
"email_notify_updates": true,
"referred_by": 123
}
],
"sub_tickets": [
{
"id": 123,
"title": "<string>",
"stage_name": "<string>"
}
],
"duplicate_of": 123,
"duplicates": [
{
"id": 123,
"title": "<string>",
"stage_name": "<string>"
}
],
"reopened_count": 123,
"last_customer_at": "2023-11-07T05:31:56Z",
"escalated_at": "2023-11-07T05:31:56Z",
"escalated_to": 123,
"escalated_to_name": "<string>",
"created_by": 123,
"comment_count": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"type": "complaint",
"severity": "sev1",
"priority": "low",
"source": "whatsapp",
"assigned_to": 123,
"assigned_inbox": 123,
"parent_ticket": 123,
"due_at": "2023-11-07T05:31:56Z",
"outcome": "resolved",
"sla_policy": 123,
"first_response_at": "2023-11-07T05:31:56Z",
"first_response_sla": "2023-11-07T05:31:56Z",
"resolution_sla": "2023-11-07T05:31:56Z",
"sla_paused_at": "2023-11-07T05:31:56Z",
"sla_paused_duration": "<string>",
"sla_breached": true,
"tags": "<unknown>",
"custom_fields": "<unknown>"
}{}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthtokenAuthCookieAuth
Workspace API key, e.g. Authorization: Bearer cb_live_.... Create one in Settings → API Keys. See public_api.md § 3 for scopes.
Path Parameters
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
Maximum string length:
255Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
complaint- Complaintrefund- Refunddispute- Disputebug- Bugfeature- Feature Requestreview- Reviewapproval- Approvalops- Opssales- Salesother- Other
Available options:
complaint, refund, dispute, bug, feature, review, approval, ops, sales, other sev1- Sev1 — Criticalsev2- Sev2 — Highsev3- Sev3 — Mediumsev4- Sev4 — Low
Available options:
sev1, sev2, sev3, sev4 low- Lownormal- Normalhigh- Highurgent- Urgent
Available options:
low, normal, high, urgent whatsapp- WhatsAppmanual- Manualapi- API
Available options:
whatsapp, manual, api resolved- Resolvedrefunded- Refundedrejected- Rejectedescalated_external- Escalated externally
Available options:
resolved, refunded, rejected, escalated_external 
