跳转到主要内容
POST
/
api
/
v1
/
platform
/
bots
/
{bot_uuid}
/
logs
获取机器人事件日志
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
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "logs": [
      {}
    ],
    "total_count": 123
  }
}

授权

X-API-Key
string
header
必填

使用 X-API-Key 请求头进行 API 密钥认证。 示例:X-API-Key: lbk_your_api_key_here

路径参数

bot_uuid
string<uuid>
必填

请求体

application/json
from_index
integer
默认值:-1

日志起始索引(-1 表示最新)

max_count
integer
默认值:10

要获取的最大日志数量

响应

成功响应

code
integer
示例:

0

msg
string
示例:

"ok"

data
object