cURL
curl --request POST \ --url http://localhost:5300/api/v1/platform/bots/{bot_uuid}/logs \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "from_index": -1, "max_count": 10 } '
200
Example
{ "code": 0, "msg": "ok", "data": { "logs": [ {} ], "total_count": 123 } }
Retrieve event logs for a specific bot
API Key authentication using X-API-Key header. Example: X-API-Key: lbk_your_api_key_here
X-API-Key: lbk_your_api_key_here
Starting index for logs (-1 for latest)
Maximum number of logs to retrieve
Successful response
0
"ok"
表示 子属性