--- id: "en/api-get-nd-api-share-shareurl" title: "Get the sharing url of the file" language: "en" description: "GET /nd/api/share/shareurl: Get the file sharing url interface description, including path, method, parameters and return information." canonical_url: "https://www.babel.cc/public/babelwiki/en/api-get-nd-api-share-shareurl.html" markdown_url: "https://www.babel.cc/public/babelwiki/ai/en/api-get-nd-api-share-shareurl.md" alternates: {"en": "https://www.babel.cc/public/babelwiki/ai/en/api-get-nd-api-share-shareurl.md", "zh": "https://www.babel.cc/public/babelwiki/ai/zh/api-get-nd-api-share-shareurl.md"} reading_note: "文档记录不等于当前部署能力;以实际版本、授权模块与配置为准。保留原文的可选、限制及待确认说明,勿补猜接口。 / Documentation is not a guarantee for every deployment. Preserve optional-module requirements, limitations and unresolved API contracts." --- # Get a File Share URL `GET /nd/api/share/shareurl` Retrieve an existing share URL after enabling the share with appropriate permissions. Authenticate with `Authorization: Bearer `. ## Query Parameters | Parameter | Type | Description | | --- | --- | --- | | `file_id` | string | File or folder ID | | `is_https` | number | 1 requests HTTPS; 0 requests HTTP. The source defaults to 0, so explicitly use 1 in production | ## Response Example ```json { "code": 0, "url": "https://files.example.com/share.do?s=", "success": true } ``` The host and token are placeholders. The original PDF example contains a duplicated URL; use the actual returned `url` instead of reproducing that malformed example. Investigate deployment settings if the service returns an unexpected or insecure address. Retrieving a URL does not change its password, expiration or permissions. Check those settings if the link is expired, disabled or inaccessible. See [Sharing API](https://www.babel.cc/public/babelwiki/en/developer-api-sharing.html).