D黑奴背锅 文档中心
ERP APIERP 数据
POST/erp/event/save_event

接收单条或批量埋点事件,并写入事件日志。

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/erp/event/save_event" \  -H "Content-Type: application/json" \  -d '{    "app_key": "string",    "event_type": "string",    "data": {}  }'
{  "code": 0,  "message": "埋点数据上报成功",  "data": 1,  "time": 1779502528}