---
id: "zh/api-get-nd-api-enterprise-enterprise-logs"
title: "获取企业日志"
language: "zh"
description: "GET /nd/api/enterprise/enterprise_logs：获取企业日志 接口说明，包含路径、方法、参数和返回信息。"
canonical_url: "https://www.babel.cc/public/babelwiki/zh/api-get-nd-api-enterprise-enterprise-logs.html"
markdown_url: "https://www.babel.cc/public/babelwiki/ai/zh/api-get-nd-api-enterprise-enterprise-logs.md"
alternates: {"en": "https://www.babel.cc/public/babelwiki/ai/en/api-get-nd-api-enterprise-enterprise-logs.md", "zh": "https://www.babel.cc/public/babelwiki/ai/zh/api-get-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."
---

# 获取企业日志

| 属性 | 值 |
| --- | --- |
| HTTP 方法 | `GET` |
| 接口路径 | `/nd/api/enterprise/enterprise_logs` |
| 所属分类 | 企业 API |

## 接口说明




#### URL 参数

| 参数 | 类型 | 说明（保留原资料的必填、默认值及范围） |
| --- | --- | --- |
| `department_id` | `string` | 部门 id（） |
| `pagesize` | `number` | 页的大小 ，默认值 1000 |
| `start_index` | `number` | 消息起始位置, |
| `keyword` | `string` | 日志关键词 |
| `startTime` | `number` | 起始日期: 秒 |
| `endTime` | `number` | 截止日期 秒 |

#### 返回字段说明

```json
{"logs":[],"total":0,"code":0,"success":true}
```

total 返回所有符合条件的(与分页 pageSize 无关)

## 调用说明

- 调用前需完成 [获取 token](https://www.babel.cc/public/babelwiki/zh/api-post-api-token-do.html) 或相应免登录认证，并在请求 Header 中携带 `Authorization: Bearer <access_token>`。
- 参数和返回字段如因部署版本存在差异，应以实际私有云 API 文档和联调结果为准。
- 所属分类：企业 API。
