Skip to main content

Ticket Resolved

Webhook 

Online sends ticket_resolved to your webhook when a ticket was closed (the conversation was resolved).

SubscriptionSent when
ticket_resolvedA ticket was closed (the conversation was resolved).

The payload is the closed ticket, with its conversation, messages, contact and assignee. The event is sent only if its inbox is in the webhook's inbox_ids, or inbox_ids is empty.

Settings:

SettingValue
URLYour webhook URL — create the webhook with Add Webhook and choose its events in subscriptions
MethodJSON via POST

Example (conversation, messages, contact and assignee are shortened):

{
"event": "ticket_resolved",
"ticket": {
"id": 902,
"status": "closed",
"conversation_id": 1501,
"inbox_id": 31,
"opened_at": 1794470400,
"resolved_at": 1794474000,
"channel": "Channel::Api",
"priority": null,
"labels": [
"vip"
],
"custom_attributes": {},
"additional_attributes": {},
"ticket_custom_attributes": {
"case_type": "delivery"
},
"metrics": {
"duration_seconds": 3600
}
},
"conversation": {
"id": 1501
},
"messages": [
{
"id": 40113,
"content": "Hi, where is my order?"
}
],
"contact": {
"id": 801,
"name": "Dana Cohen"
},
"assignee": {
"id": 51,
"name": "Jane Agent"
},
"allow_unverified_ssl": false
}

Payload explained​

ParameterDescription / Example
eventA ticket was closed (the conversation was resolved).
ticketThe ticket. See List Tickets.
conversationThe conversation.
messagesThe messages.
contactThe contact.
assigneeThe assigned agent, or null.
allow_unverified_sslAdded by Online to every payload.

Webhook payload

​

Your response​

Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again.