Skip to content

Get the ticket settings (auto-close)

GET
/products/{productId}/ticket-settings
curl --request GET \
--url https://api.motenya.app/v1/products/example/ticket-settings \
--header 'Authorization: Bearer <token>'

Requires tickets:read.

productId
required
string
>= 1 characters <= 64 characters

Success

Media typeapplication/json
object
autoClose
required
object
enabled
required

Resolve tickets left waiting on the customer. Off by default.

boolean
days
required

Days after the team’s last reply with no answer from the customer before a PENDING ticket becomes SOLVED. 7 by default.

integer
>= 1 <= 365
email
required

Leave a reply telling the customer, emailed where they may be emailed (tickets from the web widget or a mobile app follow that channel’s email setting). Off by default: the ticket is resolved quietly. A customer answer reopens the ticket either way.

boolean
updatedAt
required

Null until first saved (the defaults apply).

string | null
updatedByUserId
required
string | null

Example generated

{
"autoClose": {
"enabled": true,
"days": 1,
"email": true
},
"updatedAt": "example",
"updatedByUserId": "example"
}

Invalid request

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Missing, invalid, revoked or expired API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Missing scope, API turned off, published article without publish scope, or account suspended

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Not found, or outside the knowledge bases this key may use

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Slug or translation already exists

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Rejected by validation (e.g. unknown language or category)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Rate limited; see Retry-After

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string

Example

{
"error": {
"code": "SLUG_TAKEN"
}
}

Internal error