Yeah, a bit of reverse engineering needed. Basically it is JSON, but with few mandatory fields, e.g. example from preview generator:
Where
-
reqidis some random unique string for the transaction, e.g.reqId=$(< /dev/urandom tr -dc A-Za-z0-9 | head -c20) -
useris user, or none if script executed globally -
appis an application name that works -
urlbasically is the message body and here you can put whatever output you need -
levelin your case could bedebug -
timeis a timestamp in standard+%Y-%m-%dT%H:%M:%S%:zor customized inconfig.phpformat.
UPDATE:
Sorry, I see that you asked from the PHP api…