{
"subscription": {
"items": [
{
"target": "services_list",
"types": [
"inbound"
],
"states": [
"on_operation"
],
"media_types": [
"voice",
"chat"
],
"operation_date": 1669584000,
"notification_mode": "changes"
}
],
"channel_id": 25,
"webhook": "http://exemplo.com/webhook",
"expires": 36000
}
}
curl --location --request POST '/config/monitor/subscribe' \
--header 'Content-Type: application/json' \
--data-raw '{
"subscription": {
"items": [
{
"target": "services_list",
"types": [
"inbound"
],
"states": [
"on_operation"
],
"media_types": [
"voice",
"chat"
],
"operation_date": 1669584000,
"notification_mode": "changes"
}
],
"channel_id": 25,
"webhook": "http://exemplo.com/webhook",
"expires": 36000
}
}'
{
"response": {
"resource": "config/monitor",
"command": "subscribe",
"id": 0,
"status": "ok"
}
}