---
id: "zh/api-post-nd-api-enterprise-enterprise-logs"
title: "获取企业日志"
language: "zh"
description: "POST /nd/api/enterprise/enterprise_logs：获取企业日志 接口说明，包含路径、方法、参数和返回信息。"
canonical_url: "https://www.babel.cc/public/babelwiki/zh/api-post-nd-api-enterprise-enterprise-logs.html"
markdown_url: "https://www.babel.cc/public/babelwiki/ai/zh/api-post-nd-api-enterprise-enterprise-logs.md"
alternates: {"en": "https://www.babel.cc/public/babelwiki/ai/en/api-post-nd-api-enterprise-enterprise-logs.md", "zh": "https://www.babel.cc/public/babelwiki/ai/zh/api-post-nd-api-enterprise-enterprise-logs.md"}
reading_note: "文档记录不等于当前部署能力；以实际版本、授权模块与配置为准。保留原文的可选、限制及待确认说明，勿补猜接口。 / Documentation is not a guarantee for every deployment. Preserve optional-module requirements, limitations and unresolved API contracts."
---

# 获取企业日志

`POST /nd/api/enterprise/enterprise_logs`

## POST 请求体参数

| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `department_id` | `string` | 可选；不填查询所有有权查看部门 |
| `keyword` | `string` | 可选；关键词 |
| `startTime` | `number` | 可选；起始时间，单位需联调确认 |
| `endTime` | `number` | 可选；结束时间，单位需联调确认 |
| `startIndex` | `int` | 可选；起始位置 |
| `pageSize` | `int` | 可选；每页数量 |

## 返回信息

原文列出的字段：`code`, `success`, `logs`, `total`.

源文档对 POST 未标时间单位；GET 同路径明确用秒。两种方法的分页字段大小写不同，不能混用。

## 调用说明

使用 `Authorization: Bearer <access_token>`。GET 参数放在 URL 查询串中，普通业务 POST 使用 JSON 请求体。先校验 HTTP 状态，再检查业务结果。数组标记与含糊的类型应按服务端实际约定联调，不应凭示例补造字段。

[认证说明](https://www.babel.cc/public/babelwiki/zh/developer-api-auth.html) · [API 概览](https://www.babel.cc/public/babelwiki/zh/developer-api-overview.html)
