Agent Status Changed
Webhook
Online sends agent_status_changed to your webhook when an agent's availability changed (online, busy or offline).
| Subscription | Sent when |
|---|---|
agent_status_changed | An agent's availability changed (online, busy or offline). |
This event is account-wide: it is sent for every inbox, whatever the
webhook's inbox_ids.
Settings:
| Setting | Value |
|---|---|
| URL | Your webhook URL — create the webhook with Add Webhook and choose its events in subscriptions |
| Method | JSON via POST |
Example (agent is shortened):
{
"event": "agent_status_changed",
"occurred_at": 1794471000,
"account": {
"id": 12,
"name": "Example Account"
},
"agent": {
"id": 53,
"name": "Omer Katz"
},
"status_change": {
"previous_status": "online",
"new_status": "busy"
},
"allow_unverified_ssl": false
}
Payload explained
| Parameter | Description / Example |
|---|---|
event | An agent's availability changed. |
occurred_at | When it happened. |
account | The account. |
agent | The agent. |
status_change | The availability before and after the change. |
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.