{
"subscription": {
"id": 10,
"agents": [
"agent.one",
"agent.two"
],
"services": [
"Campanha de Vendas",
"Campanha de Retenção"
],
"events": [
"on_dialer_state_change",
"on_dialer_contact_status"
],
"channel_id": 5,
"webhook": "https://example.com/webhook",
"expires": 3600
}
}curl --location --request POST '/dialer/monitor/subscribe' \
--header 'Content-Type: application/json' \
--data-raw '{
"subscription": {
"id": 10,
"agents": [
"agent.one",
"agent.two"
],
"services": [
"Campanha de Vendas",
"Campanha de Retenção"
],
"events": [
"on_dialer_state_change",
"on_dialer_contact_status"
],
"channel_id": 5,
"webhook": "https://example.com/webhook",
"expires": 3600
}
}'{
"response": {
"command": "subscribe",
"id": 10,
"status": "ok"
}
}