---
title: 分享 API
description: 分享 API 的接口路径、方法、参数和返回字段。
slug: developer-api-sharing
lang: zh
category: 分享 API
category_order: 8
order: 4
hide_in_nav: true
keywords:
  - API
  - 分享 API
  - 开发者
---


# 分享 API

支持链接分享和向手机号、邮箱邀请分享。外部成员可以使用分享，不必先加入企业。管理员可限制对外分享。界面中邀请部门覆盖所有子部门成员；本版 PDF 的邀请接口只列出邮箱与手机号参数，不应自行编造部门参数。

## 接口目录

| 方法 | 接口 | 路径 |
| --- | --- | --- |
| `GET` | [获取可以关注文件的用户列表，并且标记已关注文件的用户](api-get-nd-api-file-user-can-focusfile.md) | `/nd/api/file/user_can_focusfile` |
| `GET` | [获取关注文件的用户列表](api-get-nd-api-file-user-focusfile.md) | `/nd/api/file/user_focusfile` |
| `GET` | [获取所有分享参与人](api-get-nd-api-share-share-participants.md) | `/nd/api/share/share_participants` |
| `GET` | [获取用户对于单个文件有权设置的分享角色](api-get-nd-api-share-share-role-forfile.md) | `/nd/api/share/share_role_forfile` |
| `GET` | [获取分享的权限列表](api-get-nd-api-share-share-roles.md) | `/nd/api/share/share_roles` |
| `GET` | [获取文件的分享 url](api-get-nd-api-share-shareurl.md) | `/nd/api/share/shareurl` |
| `POST` | [提醒关注](api-post-nd-api-file-focus-file.md) | `/nd/api/file/focus_file` |
| `POST` | [删除分享参与人](api-post-nd-api-file-remove-share-participant.md) | `/nd/api/file/remove_share_participant` |
| `POST` | [移除某人的关注](api-post-nd-api-file-unfocus-file.md) | `/nd/api/file/unfocus_file` |
| `POST` | [关闭链接分享](api-post-nd-api-share-close-link-share.md) | `/nd/api/share/close_link_share` |
| `POST` | [邀请人员参与分享](api-post-nd-api-share-invite-share.md) | `/nd/api/share/invite_share` |
| `POST` | [创建链接分享](api-post-nd-api-share-open-link-share.md) | `/nd/api/share/open_link_share` |
| `POST` | [设置分享参与人的权限角色](api-post-nd-api-share-set-participant-role.md) | `/nd/api/share/set_participant_role` |
| `POST` | [设置链接分享密码](api-post-nd-api-share-set-share-password.md) | `/nd/api/share/set_share_password` |

## 对接说明

本文依据《Babel 开发 API》整理，单接口页面保留原始路径和字段大小写。源文档未明确或存在类型冲突的字段需在联调中确认，不应假定存在未列出的参数。使用部署方提供的 HTTPS 域名；API 密钥与访问凭证不得写入公开页面。

[开发 API 概览](developer-api-overview.md) · [MCP 快速入门](mcp-integration.md)
