Ticket Resolved
Webhook
Online sends ticket_resolved to your webhook when a ticket was closed (the conversation was resolved).
| Subscription | Sent when |
|---|---|
ticket_resolved | A 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:
| Setting | Value |
|---|---|
| URL | Your webhook URL — create the webhook with Add Webhook and choose its events in subscriptions |
| Method | JSON 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
| Parameter | Description / Example |
|---|---|
event | A ticket was closed (the conversation was resolved). |
ticket | The ticket. See List Tickets. |
conversation | The conversation. |
messages | The messages. |
contact | The contact. |
assignee | The assigned agent, or null. |
allow_unverified_ssl | Added by Online to every payload. |
Webhook payload
Your response
- 200
Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again.