Integration with third-party services

iBatyr Monitor provides an interface for loading data from third-party applications into the system.

You can add events from third-party applications to the system using the API. To do this, enable the API access allowed option.

To transmit events We recommend using HTTPS.

List of parameters (POST or GET, we recommend POST):

Parameter

Description

secret

API key from the server parameters.

local_time

Event time (UTC).

event_type_id

Event type. They are listed in agent/fixtures/event_type.json.

computer_name

Computer name (optional).

user_name

User name (optional). Specified in the format user@domain.

exe_path

Path to the application (optional). Specified in the format C:\some\app.exe.

window_title

Chat title or name (optional).

text_data

Message text. Safe HTML tags are supported.

sender

Sender. Format: contact@domain.

recipients

Recipients (comma-separated).

file1.txt
file2.txt

Attached files.
The request type must be POST multipart/form-data

Return values:

  • Event ID (code 200);

  • invalid key or API disabled (code 403);

  • error trace (code 500)

Usage example

curl

-F “secret=YOUR_API_KEY
-F “local_time=2023-11-14 14:00:00.00Z”
-F “event_type_id=8”
-F “computer_name=user1-pc”
-F “user_name=user 1”
-F “exe_path=c:test/app.exe”
-F “window_title=Chat title or title”
-F “text_data=Text <b>subset of HTML</b>”
-F “sender=test”
-F “recipients=test2,test3”
-F “file1.sh=@api/test_api.sh”
-F “file2.sh=@api/test_api.sh”
http://localhost/api/event/