Web-hooks

Данный функционал предоставляет возможность отправлять json-данные на внешний URL-адрес, методом POST, Content type: 'json'=>'application/json'.






  • Заявка создана

  • Заявка переадресована

  • Заявка заблокирована

  • Заявка разблокирована

  • Заявка выполнена

  • Заявка не выполнена

  • Заявка ожидает проверки

  • Заявка проверена

  • Заявка удалена

  • Заявка восстановлена

  • Заявка прокомментирована

  • Заявка отредактирована


Пример JSON:


{
  "ticket": {
    "code": "E3XK",
    "prio": "normal",
    "status": "lock",
    "text": "Body text with attachments.\r\nРусский текст.",
    "subject": "Message with attachments",
    "tags": "from_mail",
    "urlhash": "GK2xhvYaAv",
    "created_at": "2019-06-07 10:01:46",
    "inspect_after_ok": "false",
    "individual_ok": "false",
    "deadline_time": null,
    "sla": [],
    "client": [
      {
        "email": "test111@zenlix.com",
        "profile": {
          "full_name": "System Account",
          "lang": "ru"
        },
        "contacts": {
          "email": "test111@zenlix.com"
        }
      }
    ],
    "fields": [],
    "watched": [
      {
        "email": "test111@zenlix.com",
        "profile": {
          "full_name": "System Account",
          "lang": "ru"
        },
        "contacts": {
          "email": "test111@zenlix.com"
        }
      },
      {
        "email": "info@zenlix.com",
        "profile": {
          "full_name": "r",
          "lang": "ru"
        },
        "contacts": {
          "email": "info@example.com"
        }
      }
    ],
    "comments": [
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "тест"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "тест"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "test"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "rrerer"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "rrrere"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "test"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "test"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "<p style=\"text-align: justify;\">test message</p>"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "test"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "test"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "rrerere"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "ok!"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "ok2!"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "hello2"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "hello4"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "hello5"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "hello6"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "hello7"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "hello8"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "hello"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "text": "ok!"
      },
      {
        "author": {
          "email": "info@zenlix.com",
          "profile": {
            "full_name": "r",
            "lang": "ru"
          },
          "contacts": {
            "email": "info@example.com"
          }
        },
        "text": "Ok!"
      }
    ],
    "author": {
      "email": "test111@zenlix.com",
      "profile": {
        "full_name": "System Account",
        "lang": "ru"
      },
      "contacts": {
        "email": "test111@zenlix.com"
      }
    },
    "target_group": "Default group",
    "target_user": [
      {
        "email": "test111@zenlix.com",
        "profile": {
          "full_name": "System Account",
          "lang": "ru"
        },
        "contacts": {
          "email": "test111@zenlix.com"
        }
      }
    ],
    "logs": [
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "create",
        "dt": "2019-06-07 10:01:46"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 21:06:01"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 21:06:45"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "lock",
        "dt": "2019-06-09 21:28:20"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 21:29:56"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 21:31:29"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 21:34:30"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 21:38:04"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 21:40:13"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 21:41:10"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:03:03"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:09:21"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:10:05"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:10:52"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:11:34"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:12:57"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:14:43"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:18:14"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:19:15"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:20:10"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:26:04"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:29:02"
      },
      {
        "author": {
          "email": "test111@zenlix.com",
          "profile": {
            "full_name": "System Account",
            "lang": "ru"
          },
          "contacts": {
            "email": "test111@zenlix.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:31:26"
      },
      {
        "author": {
          "email": "info@zenlix.com",
          "profile": {
            "full_name": "r",
            "lang": "ru"
          },
          "contacts": {
            "email": "info@example.com"
          }
        },
        "action": "comment",
        "dt": "2019-06-09 22:57:33"
      }
    ]
  },
  "initial_user": {
    "email": "test111@zenlix.com",
    "profile": {
      "full_name": "System Account",
      "lang": "ru"
    },
    "contacts": {
      "email": "test111@zenlix.com"
    }
  },
  "action": "action",
  "description": "message",
  "dt": "2019-06-11 11:24:18"
}