Skip to main content

Agent Status Changed

Webhook 

Online sends agent_status_changed to your webhook when an agent's availability changed (online, busy or offline).

SubscriptionSent when
agent_status_changedAn 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:

SettingValue
URLYour webhook URL — create the webhook with Add Webhook and choose its events in subscriptions
MethodJSON 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​

ParameterDescription / Example
eventAn agent's availability changed.
occurred_atWhen it happened.
accountThe account.
agentThe agent.
status_changeThe availability before and after the change.
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.