Event Reporting API Specification 3.0
Quick Audience event reporting API 3.0, released in April 2024, extends API 2.0 with multi-entity event support and flexible app-level permission grants.
This API is based on the Quick Audience Open Platform API. Before using this API, complete the debugging steps described in Quick Audience Open Platform API.
Only the Java SDK is available.
Event data reporting interface
|
Usage notes |
Real-time event synchronization |
|||
|
URL |
/openapi/cloud/event/detail/receive |
|||
|
Request method |
post |
|||
|
Parameter |
Data Type Edition |
Data type |
Required |
Description |
|
1.accessId |
string |
body form-data |
Yes |
Organization ID or Tenant ID. Example: 8f3554ba-a242-4436-8354-90672bfc76ea. |
|
2.eventMessageModelListJson |
string |
Yes |
Defined by the ClientEventMessageModel below. |
|
|
Status code |
Description |
|||
|
200 |
The API request is successful. |
|||
|
Others |
Failed request |
|||
|
Return Property Name |
Item |
Migration description |
||
|
1.traceId |
string |
Unique request ID for tracing and troubleshooting. |
||
|
2.success |
boolean |
Indicates whether the request succeeded. |
||
|
3.errorCode |
string |
Error code. |
||
|
4.errorDesc |
string |
Error message. |
||
|
5.data |
string |
true/false |
||
|
Example |
||||
|
Request parameters |
|
|||
|
Return values |
{ "data": true, "errorCode": null, "errorDesc": null, "success": true, "traceId": "ff0f996e-6c63-412d-a4cd-acf5d00775cd" } |
|||
Event Model ClientEventMessageModel
@Data
public class ClientEventMessageModel {
/**
* Organization ID, required.
*/
String organizationId;
/**
* The ID of the space. This parameter is optional.
*/
String workspaceId;
/**
* The user ID of the user in your own system. This parameter is required.
*/
String customerId;
/**
* If the entity ID is a human entity, this parameter is optional.
Required if it is another entity (such as a car entity)
*/
String entityId;
/**
* The event code. This field is required.
*/
String eventCode;
/**
* The time when the event occurred. This field is required.
*/
Long eventTime;
/**
* The event property. Whether this parameter is required depends on the setting of the property in the event definition.
*/
Map<String, String> extendAttributes = new HashMap<>();
/**
* The user ID supported by Quick Audience. If the same customerId has been reported before, this parameter is optional.
*/
List<CustomerIdModel> customerIdList = new ArrayList<>();
/**
* Whether it is transaction data, 0 (not) / 1 (yes)
*/
String isOrder;
}
@Data
public class CustomerIdModel {
String customerId;
String idMapping;
public CustomerIdModel() {
}
public CustomerIdModel(String customerId, String idMapping) {
this.customerId = customerId;
this.idMapping = idMapping;
}
}
To obtain the entityId, go to Configuration Management > Entity Management API, open the console, and check the query?_=xxxx API response for the entityCode value.

CustomerIdModel:
public class CustomerIdModel {
@ ApiModelProperty(required = true, value = "Actual user ID, such as 139****0000")
String customerId;
@ ApiModelProperty(required = true, value = "User ID type, such as mobile phone number, see the following description of user ID type")
String idMapping;
}
User ID type description:
Quick Audience supports all user ID types enabled on the ID Type Management page. Use the ID type code as the value for idMapping in your code.
-
Preset system ID type codes: Preset System ID List.
-
Custom ID type codes: click Edit in the Actions column of the target custom ID to view its code.