Get the ticket settings (auto-close)
const url = 'https://api.motenya.app/v1/products/example/ticket-settings';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.motenya.app/v1/products/example/ticket-settings \ --header 'Authorization: Bearer <token>'Requires tickets:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Success
object
object
Resolve tickets left waiting on the customer. Off by default.
Days after the team’s last reply with no answer from the customer before a PENDING ticket becomes SOLVED. 7 by default.
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.
Null until first saved (the defaults apply).
Example generated
{ "autoClose": { "enabled": true, "days": 1, "email": true }, "updatedAt": "example", "updatedByUserId": "example"}Invalid request
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Missing, invalid, revoked or expired API key
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Missing scope, API turned off, published article without publish scope, or account suspended
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Not found, or outside the knowledge bases this key may use
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Slug or translation already exists
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Rejected by validation (e.g. unknown language or category)
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Rate limited; see Retry-After
object
object
object
Example
{ "error": { "code": "SLUG_TAKEN" }}Internal error