Skip to content

Open a request

View as Markdown

POST/v1/ticketsScope write

Opens a request on a service of the catalog for a contact. Duty calculates its priority from impact and urgency, sets the service level targets and runs the workspace’s routing, approvals and notifications, exactly as for a request opened in the portal.

Field Type Description
contact required object Who the request is for. Duty notifies this person about its progress.
contact.departmentId integer Department, from List departments.
contact.email required string Email address. Duty notifies this contact about the request. Up to 320 characters. An email address.
contact.locationId integer Location, from List locations.
contact.name required string Full name. 2 to 200 characters.
contact.phone string Phone number. Up to 40 characters.
description required string Everything the agent needs to start: what happens, since when, what was tried. 3 to 20000 characters.
serviceId required integer Service to open the request on, from List services.
subject required string Short summary that agents see in their queue. 3 to 220 characters.
impact integer How many people or how much business it affects, from 1 (low) to 3 (high). From 1 to 3. Default: 2.
impactTags string[] Business impact markers that can raise the priority. Up to 5 items. One of executive, regulatory, financial, security, continuity.
urgency integer How soon it needs attention, from 1 (low) to 3 (high). From 1 to 3. Default: 2.
Example
{
"serviceId": 12,
"subject": "VPN disconnects every few minutes",
"description": "Since this morning the VPN drops every 5 to 10 minutes for the whole sales team.",
"impact": 3,
"urgency": 2,
"contact": {
"name": "Ana Pérez",
"email": "ana.perez@example.com",
"phone": "+1 809 555 0142"
}
}

201 Created · 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).
Example
{
"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 share one shape; see Errors for every key.

Terminal window
curl -X POST 'https://api.client.service-desk.goldmaster.io/v1/tickets' \
-H "Authorization: Bearer $DUTY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"serviceId": 12,
"subject": "VPN disconnects every few minutes",
"description": "Since this morning the VPN drops every 5 to 10 minutes for the whole sales team.",
"impact": 3,
"urgency": 2,
"contact": {
"name": "Ana Pérez",
"email": "ana.perez@example.com",
"phone": "+1 809 555 0142"
}
}'