WhiteLabel API
Ticketing
Retrieve Ticket Category
this api endpoint ( get get ) retrieves a ticket category object by id if the request succeeds, it will return a ticket category object docid\ iirlfdoodrfywg6u0jwxc path parameters id the id of the ticket category to retrieve require "uri" require "net/http" url = uri("https //api tamio com/v2/whitelabel/ticket categories/retrieve/a34120ad 0340 41a3 a8c9 30e4b4b8d218") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" response = https request(request) puts response read body curl location request get 'https //api tamio com/v2/whitelabel/ticket categories/retrieve/a34120ad 0340 41a3 a8c9 30e4b4b8d218' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api tamio com/v2/whitelabel/ticket categories/retrieve/a34120ad 0340 41a3 a8c9 30e4b4b8d218", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "ticket category" { "id" "a34120ad 0340 41a3 a8c9 30e4b4b8d218", "title" "premium support", "object" "ticket category", "created at" 1671453329, "language" "en", "subcategories" \[ "technical support", "account inquiries" ], "teammate id" null, "billing plans" null, "auto reply" "thank you for contacting our premium support an agent will reply to your ticket within 48 hours " } }