Skip to content

Get general ticket settings

GET
/tickets/settings/general
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/tickets/settings/general \
--header 'Authorization: Bearer <token>'

Returns whether clients may rate closed tickets, the default action on reply, when pending tickets close on their own, and the reminders sent to clients who have not replied. Requires the tickets.view permission.

The workspace’s general ticket settings.

Media typeapplication/json
object
data
required

A workspace’s general ticket settings.

object
autoClose
required

Close pending tickets after a quiet period.

object
afterHours
required

Hours a pending ticket may go without a message or change before it closes. Null turns auto-close off.

Any of:
integer
>= 1 <= 8760
fromStatusId
required

The open status that counts as pending. Required when afterHours is set.

string | null
toStatusId
required

The closed status pending tickets move to. Required when afterHours is set.

string | null
clientReplyStatusId
required

When a client replies: the status a client’s message moves its ticket to. Null leaves the ticket where it is.

string | null
ratingsEnabled
required

Whether clients may rate a closed ticket from the portal. Off by default.

boolean
replyStatusId
required

Default action on reply: the status the team’s reply to the client moves the ticket to unless the agent picks another. Null does nothing.

string | null
waitingReminders

Remind clients who have not replied, then close the ticket. Absent on a server older than this setting.

object
closeDays
required

Business days before the ticket closes. Greater than the second reminder.

integer
>= 1 <= 60
closeStatusId
required

The closed status the ticket moves to. Required when enabled is true.

string | null
enabled
required

Whether clients are reminded while a ticket waits on them, and the ticket closes when they stay silent. Off by default.

boolean
firstReminderDays
required

Business days a ticket waits on the client before the first reminder.

integer
>= 1 <= 60
message
required

The reminder text as HTML. Null falls back to a built-in default. It may use {{ticket.subject}}, {{ticket.close_date}} and {{workspace.name}}.

string | null
secondReminderDays
required

Business days before the second reminder. Greater than the first.

integer
>= 1 <= 60

Example generated

{
"data": {
"autoClose": {
"afterHours": 1,
"fromStatusId": "example",
"toStatusId": "example"
},
"clientReplyStatusId": "example",
"ratingsEnabled": true,
"replyStatusId": "example",
"waitingReminders": {
"closeDays": 1,
"closeStatusId": "example",
"enabled": true,
"firstReminderDays": 1,
"message": "example",
"secondReminderDays": 1
}
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.