跳转到内容

运行日志

方法: POST

端点: /api/v1/run/last/log

使用 Content-Type: application/json 发送请求体。

POST/api/v1/run/last/logGet latest run logs
Required

Stored only in this browser tab. Sent only to https://openapi.coreclaw.com.

BodyRequiredapplication/json
FieldTypeRequiredDescription
run_slugstringyesUnique run identifier returned by CoreClaw.
Request body (JSON)
{
"run_slug": "YOUR_RUN_SLUG"
}
参数示例值类型必填说明
run_slugYOUR_RUN_SLUGString运行唯一标识符
{
"code": 0,
"message": "success",
"data": {
"all_logs_url": "https://smpfile.coreclaw.com/log/all_log_7cb43d81-38d5-47b6-a313-4e1423d4c28a_1773383790454",
"list": [
{
"type": 2,
"group": "28596067108978688",
"content": "SYSTEM: 子任务-[28596067108978688] - 正在准备执行环境。",
"timestamp": 1773383784438
}
],
"result_count": 4
}
}
参数示例类型说明
code0Integer全局状态码
messagesuccessString响应消息
data-Object响应数据
all_logs_url-String完整日志文件 URL
list-Array摘要日志条目
result_count4Integer采集总行数
参数示例类型说明
type1Integer日志级别:1 调试,2 信息,3 警告,4 错误
group-String日志组标识符
content-String日志内容
timestamp-Integer日志时间戳(毫秒)