Skip to main content
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,
  "data": {
    "logs": [
      {}
    ],
    "total_count": 123
  }
}

Authorizations

X-API-Key
string
header
required

Path Parameters

bot_uuid
string<uuid>
required

Body

application/json
from_index
integer
default:-1

起始索引(-1 表示从最新开始)

max_count
integer
default:10

最大返回数量

Response

200 - application/json

成功

code
integer
Example:

0

data
object