获取单条请求日志
OpenAPI 契约
- 方法
- GET
- 路径
/api/v1/request-logs/{id}- 认证
- jwtBearer (bearer) OR automationKey (bearer)
- 响应状态
- 200 400 401 403 404 429 500
请求与响应 Schema
JSON
{
"requestBody": {},
"responses": {
"200": {
"description": "Request log entry",
"content": {
"application/json": {
"$ref": "#/components/schemas/RequestLogEntry"
}
}
},
"400": {
"description": "Invalid request",
"content": {
"application/json": {
"$ref": "#/components/schemas/RequestError"
}
}
},
"401": {
"description": "Authentication required or invalid",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"403": {
"description": "Authenticated but not permitted",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"404": {
"description": "Request log entry was not found",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
},
"429": {
"description": "Rate limit exceeded",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"500": {
"description": "Unexpected server error",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
}
}
}GET /api/v1/request-logs/{id} 接受 JWT 或带 analytics:read 的 nfy_ 密钥,按 id 返回一条已记录的 API 调用,字段与列表端点相同。该记录必须属于当前认证账户;不存在或属于其他账户的 id 会返回 404。
http
GET /api/v1/request-logs/3fa85f64-5717-4562-b3fc-2c963f66afa6
Authorization: Bearer <access token>