Report

In the Ozeki Chat Client, the Report API request is utilized to report user-specific issues or concerns, requiring the user's unique identifier for proper identification. This identifier, represented by the userid parameter, is generated by computing the MD5 checksum of the user's email address, ensuring anonymity while accurately linking the report to the user. For instance, the email "alice@ozeki.hu" would be transformed into the MD5 hash "aa68d2204cb2bb85f2de3b9aad0d86d7," providing a secure and standardized method for user identification within the reporting system.

Report request

Method: POST
URL: ?srv=chatserver&api=chatreports
Request headers: Content-Type: application/json
Ozeki-Signature: signature
Ozeki-Station: stationId
Ozeki-User: userId
POST data:
{
  "action": "viewed",
  "conversationid": "8ca16186c36a4e0a1ef2096e6c60b613",
  "instance": "PqjfKSn7V8",
  "firstmessagedate": "2024-03-08 14:12:48",
  "lastmessagedate": "2024-03-08 14:12:48",
  "messageids": [
    "fc2515cb-e483-4f64-936b-98f680565c96"
  ],
  "clientversioncode": 3,
  "timestamp": "2024-03-08 14:12:48"
}

Report response

Response headers Content-Type: application/json
Response data:
{
  "status": "OK",
  "errormessage": ""
}

Request parameters

userid: This parameter contains the user id of the user. This field can be calculated by taking the md5 checksum of the user's e-mail address. For example: md5("alice@ozeki.hu") = "aa68d2204cb2bb85f2de3b9aad0d86d7";

timestamp: yyyy-MM-dd hh:mm:ss format, in UTC timezone, it's the client's responsibility to convert it into the local timezone.

More information