--- id: "en/developer-api-sharing" title: "Share API" language: "en" description: "Share the API's interface paths, methods, parameters, and return fields." canonical_url: "https://www.babel.cc/public/babelwiki/en/developer-api-sharing.html" markdown_url: "https://www.babel.cc/public/babelwiki/ai/en/developer-api-sharing.md" alternates: {"en": "https://www.babel.cc/public/babelwiki/ai/en/developer-api-sharing.md", "zh": "https://www.babel.cc/public/babelwiki/ai/zh/developer-api-sharing.md"} reading_note: "文档记录不等于当前部署能力;以实际版本、授权模块与配置为准。保留原文的可选、限制及待确认说明,勿补猜接口。 / Documentation is not a guarantee for every deployment. Preserve optional-module requirements, limitations and unresolved API contracts." --- # Sharing APIs Supports public links and invitations by email or phone, including external recipients. Administrators can restrict external sharing. UI department invitations include descendants; this PDF only documents email/phone parameters for the invitation API, so do not invent a department parameter. ## Endpoints | Method | Endpoint | Path | | --- | --- | --- | | `GET` | [Get the list of users who can follow the file and mark the users who have followed the file](https://www.babel.cc/public/babelwiki/en/api-get-nd-api-file-user-can-focusfile.html) | `/nd/api/file/user_can_focusfile` | | `GET` | [Get the list of users following a file](https://www.babel.cc/public/babelwiki/en/api-get-nd-api-file-user-focusfile.html) | `/nd/api/file/user_focusfile` | | `GET` | [Get all sharing participants](https://www.babel.cc/public/babelwiki/en/api-get-nd-api-share-share-participants.html) | `/nd/api/share/share_participants` | | `GET` | [Get the sharing roles that the user has permission to set for a single file](https://www.babel.cc/public/babelwiki/en/api-get-nd-api-share-share-role-forfile.html) | `/nd/api/share/share_role_forfile` | | `GET` | [Get a list of shared permissions](https://www.babel.cc/public/babelwiki/en/api-get-nd-api-share-share-roles.html) | `/nd/api/share/share_roles` | | `GET` | [Get the sharing url of the file](https://www.babel.cc/public/babelwiki/en/api-get-nd-api-share-shareurl.html) | `/nd/api/share/shareurl` | | `POST` | [remind attention](https://www.babel.cc/public/babelwiki/en/api-post-nd-api-file-focus-file.html) | `/nd/api/file/focus_file` | | `POST` | [Delete sharing participants](https://www.babel.cc/public/babelwiki/en/api-post-nd-api-file-remove-share-participant.html) | `/nd/api/file/remove_share_participant` | | `POST` | [Remove someone from following](https://www.babel.cc/public/babelwiki/en/api-post-nd-api-file-unfocus-file.html) | `/nd/api/file/unfocus_file` | | `POST` | [Turn off link sharing](https://www.babel.cc/public/babelwiki/en/api-post-nd-api-share-close-link-share.html) | `/nd/api/share/close_link_share` | | `POST` | [Invite people to share](https://www.babel.cc/public/babelwiki/en/api-post-nd-api-share-invite-share.html) | `/nd/api/share/invite_share` | | `POST` | [Create link to share](https://www.babel.cc/public/babelwiki/en/api-post-nd-api-share-open-link-share.html) | `/nd/api/share/open_link_share` | | `POST` | [Set permission roles for sharing participants](https://www.babel.cc/public/babelwiki/en/api-post-nd-api-share-set-participant-role.html) | `/nd/api/file/set_participant_role` | | `POST` | [Set link sharing password](https://www.babel.cc/public/babelwiki/en/api-post-nd-api-share-set-share-password.html) | `/nd/api/share/set_share_password` | ## Integration Notes Based on the supplied Babel API reference. Preserve exact endpoint paths and field casing. Confirm unspecified or inconsistent field types during integration rather than assuming undocumented parameters. Use the deployment's HTTPS domain and keep credentials out of public pages. [API overview](https://www.babel.cc/public/babelwiki/en/developer-api-overview.html) · [MCP quick start](https://www.babel.cc/public/babelwiki/en/mcp-integration.html)