メインコンテンツへスキップ
POST
/
api
/
v1
/
platform
/
bots
/
{bot_uuid}
/
logs
Get bot event 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
必須

API Key authentication using X-API-Key header. Example: X-API-Key: lbk_your_api_key_here

パスパラメータ

bot_uuid
string<uuid>
必須

ボディ

application/json
from_index
integer
デフォルト:-1

Starting index for logs (-1 for latest)

max_count
integer
デフォルト:10

Maximum number of logs to retrieve

レスポンス

Successful response

code
integer
:

0

msg
string
:

"ok"

data
object