Get a request
GET/v1/tickets/{number}Scope read
One request by its number, with transitions: the statuses it can move to next and what each move requires.
Path parameters
Section titled “Path parameters”| Name | Type | Description |
|---|---|---|
number required |
string |
Request number, such as GM-000123. |
Response
Section titled “Response”200 OK · data
| Field | Type | Description |
|---|---|---|
channel |
string |
Where the request came from: api, portal, email… |
closedAt |
date-time |
When the request was closed. |
closureCode |
string |
Closure code, recorded when it was closed. |
contact |
object |
Who the request is for. |
contact.departmentId |
integer |
Department, from List departments. |
contact.email |
string |
Email address. Duty notifies this contact about the request. |
contact.locationId |
integer |
Location, from List locations. |
contact.name |
string |
Full name. |
contact.phone |
string |
Phone number. |
createdAt |
date-time |
When it was created. |
description |
string |
Description. |
firstResponseAt |
date-time |
When an agent first responded. |
impact |
integer |
How many people or how much business it affects, from 1 (low) to 3 (high). |
impactTags |
string[] |
Business impact markers: executive, regulatory, financial, security, continuity. |
number |
string |
Request number, such as GM-000123. Unique within the organization. |
pendingPriority |
object |
Priority raise waiting for a supervisor’s approval. |
pendingPriority.code |
string |
Requested priority code. |
pendingPriority.name |
string |
Requested priority name. |
priority |
object |
Current priority. |
priority.code |
string |
Priority code: low, medium, high, critical or planned. |
priority.name |
string |
Priority name. |
resolution |
string |
The solution applied, recorded when it was resolved. |
resolutionDueAt |
date-time |
Deadline for the resolution, from the service level agreement. |
resolvedAt |
date-time |
When the request was resolved. |
responseDueAt |
date-time |
Deadline for the first response, from the service level agreement. |
service |
object |
Service of the catalog the request belongs to. |
service.id |
integer |
Service ID. |
service.name |
string |
Service name. |
status |
object |
Current status. |
status.code |
string |
Status code, such as in_progress. |
status.name |
string |
Status name. |
subject |
string |
Short summary of the request. |
transitions |
object[] |
Statuses the request can move to next. |
transitions[].requiresClosureCode |
boolean |
Send closureCode with this move. |
transitions[].requiresReason |
boolean |
Send note (at least 3 characters) with this move. |
transitions[].requiresResolution |
boolean |
Send resolution (at least 3 characters) with this move. |
transitions[].to |
object |
Target status. |
transitions[].to.code |
string |
Target status code. Send it as status to Update a request. |
transitions[].to.name |
string |
Target status name. |
updatedAt |
date-time |
When it last changed. |
urgency |
integer |
How soon it needs attention, from 1 (low) to 3 (high). |
{ "data": { "number": "GM-000123", "subject": "VPN disconnects every few minutes", "description": "Since this morning the VPN drops every 5 to 10 minutes for the whole sales team.", "status": { "code": "in_progress", "name": "In progress" }, "priority": { "code": "high", "name": "High" }, "impact": 3, "urgency": 2, "impactTags": [ "continuity" ], "channel": "api", "service": { "id": 12, "name": "VPN and remote access" }, "contact": { "name": "Ana Pérez", "email": "ana.perez@example.com", "phone": "+1 809 555 0142", "departmentId": 4, "locationId": 2 }, "responseDueAt": "2026-12-06T15:05:00Z", "resolutionDueAt": "2026-12-06T22:05:00Z", "firstResponseAt": "2026-12-06T14:21:00Z", "createdAt": "2026-12-06T14:05:00Z", "updatedAt": "2026-12-06T14:21:00Z", "transitions": [ { "to": { "code": "waiting_customer", "name": "Waiting for customer" }, "requiresReason": true, "requiresResolution": false, "requiresClosureCode": false }, { "to": { "code": "resolved", "name": "Resolved" }, "requiresReason": false, "requiresResolution": true, "requiresClosureCode": false } ] }}Errors
Section titled “Errors”Errors share one shape; see Errors for every key.
Code examples
Section titled “Code examples”curl 'https://api.client.service-desk.goldmaster.io/v1/tickets/GM-000123' \ -H "Authorization: Bearer $DUTY_API_KEY"const response = await fetch('https://api.client.service-desk.goldmaster.io/v1/tickets/GM-000123', { method: 'GET', headers: { Authorization: `Bearer ${process.env.DUTY_API_KEY}`, },});const body = await response.json();if (!response.ok) throw new Error(`${body.error}: ${body.message}`);console.log(body.data);import os
import requests
response = requests.request( "GET", "https://api.client.service-desk.goldmaster.io/v1/tickets/GM-000123", headers={"Authorization": f"Bearer {os.environ['DUTY_API_KEY']}"}, timeout=30,)response.raise_for_status()print(response.json()["data"])package main
import ( "fmt" "io" "net/http" "os")
func main() { req, _ := http.NewRequest("GET", "https://api.client.service-desk.goldmaster.io/v1/tickets/GM-000123", nil) req.Header.Set("Authorization", "Bearer "+os.Getenv("DUTY_API_KEY")) res, err := http.DefaultClient.Do(req) if err != nil { panic(err) } defer res.Body.Close() data, _ := io.ReadAll(res.Body) fmt.Println(res.Status, string(data))}<?php$ch = curl_init('https://api.client.service-desk.goldmaster.io/v1/tickets/GM-000123');curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer ' . getenv('DUTY_API_KEY'), ],]);$response = curl_exec($ch);$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);echo $status, PHP_EOL, $response;using System.Net.Http.Headers;
using var client = new HttpClient();using var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.client.service-desk.goldmaster.io/v1/tickets/GM-000123");request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("DUTY_API_KEY"));using var response = await client.SendAsync(request);Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");import java.net.URI;import java.net.http.*;
HttpClient client = HttpClient.newHttpClient();HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.client.service-desk.goldmaster.io/v1/tickets/GM-000123")) .header("Authorization", "Bearer " + System.getenv("DUTY_API_KEY")) .method("GET", HttpRequest.BodyPublishers.noBody()) .build();var response = client.send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.statusCode() + " " + response.body());