Archive ticket
curl --request DELETE \
--url https://api.routera.io/tickets/{ticketId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.routera.io/tickets/{ticketId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.routera.io/tickets/{ticketId}', 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.routera.io/tickets/{ticketId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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 := "https://api.routera.io/tickets/{ticketId}"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.routera.io/tickets/{ticketId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.routera.io/tickets/{ticketId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"external_id": "<string>",
"ticket_name": "<string>",
"pipeline": "<string>",
"ticket_owner": "jane@example.com",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived": true,
"archived_by": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}Tickets
Archive ticket
DELETE /tickets/ — archive an object
DELETE
/
tickets
/
{ticketId}
Archive ticket
curl --request DELETE \
--url https://api.routera.io/tickets/{ticketId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.routera.io/tickets/{ticketId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.routera.io/tickets/{ticketId}', 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.routera.io/tickets/{ticketId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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 := "https://api.routera.io/tickets/{ticketId}"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.routera.io/tickets/{ticketId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.routera.io/tickets/{ticketId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"external_id": "<string>",
"ticket_name": "<string>",
"pipeline": "<string>",
"ticket_owner": "jane@example.com",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived": true,
"archived_by": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}Endpoint
DELETE https://api.routera.io/tickets/{id}
/tickets/{ticketId}Authentication: Bearer JWT Path parameter:
ticketId — object ID
DELETE archives the object. The record is kept and archived is set to an ISO timestamp.
Response fields after archive
The 200 response uses default properties plusarchived_by:
| Property | Description |
|---|---|
id | Internal object ID |
ticket_name | Custom or system field (flat on the object) |
pipeline | Custom or system field (flat on the object) |
ticket_owner | Assigned owner email |
external_id | External identifier (nullable) |
archived | false when active; ISO timestamp when archived |
archived_by | User or API client ID who archived the object (only when archived; added automatically) |
| Field | Value when archived |
|---|---|
archived | ISO timestamp (no longer false) |
archived_by | ID of the user or API client who archived the object |
created_at and updated_at are always included in every response.Response example
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"external_id": "ext-001",
"created_at": "2026-05-01T10:00:00.000Z",
"updated_at": "2026-05-28T12:00:00.000Z",
"archived": "2026-05-28T12:00:00.000Z",
"ticket_name": "Support request",
"pipeline": "default",
"ticket_stage": "new",
"ticket_owner": "jane@example.com",
"archived_by": "user-uuid"
}
Errors
| Status | When |
|---|---|
400 | Missing ticketId in path |
401 | Missing account context |
404 | Object not found or already archived |
Authorizations
Bearer JWT with valid account context.
Path Parameters
Object identifier
Response
Archived object
Assigned owner email
Example:
"jane@example.com"
false when active, or ISO timestamp when archived
Was this page helpful?
⌘I
