Change a ticket's status
const url = 'https://api.motenya.app/v1/products/example/tickets/example/status';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"status":"OPEN","snoozedUntil":"2026-11-21T09:30:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.motenya.app/v1/products/example/tickets/example/status \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "status": "OPEN", "snoozedUntil": "2026-11-21T09:30:00Z" }'SNOOZED needs snoozedUntil; snoozing a snoozed ticket again only moves the time.
Requires tickets:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
SOLVED shows as “Resolved”. SNOOZED waits out of the inbox until snoozedUntil or the customer writes; SPAM stays spam when its sender writes again; IGNORED is a silent close left out of reports. Customers see SNOOZED as OPEN, SPAM and IGNORED as CLOSED.
Required with SNOOZED: between a minute and a year from now.
Example
2026-11-21T09:30:00ZResponses
Section titled “Responses”Success
object
object
Null for someone the site signed in to the widget by user id alone: replies reach them in the widget, not by email.
The tenant’s own user id, from the widget’s JWT sign-in.
The CRM contact; null for a lead.
Where an imported ticket came from: intercom:<integration id, lowercase> or api:<source, lowercase>.
Example
{ "status": "OPEN", "priority": "LOW", "source": "EMAIL"}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