Overview
The Temporary Access Link Generator is a security-focused API that enables the creation of time-limited, single-use or restricted-access links for secure file distribution. Built with security best practices, this tool allows organizations to share sensitive files without exposing permanent URLs or relying on third-party file-sharing services.
Key capabilities include generating expiring access tokens, uploading files with automatic link generation, and serving files through secured token-based access. This is ideal for security teams needing to distribute sensitive documentation, incident reports, or confidential materials to authorized recipients with guaranteed expiration windows.
The tool is particularly valuable for compliance scenarios, incident response workflows, and any situation where time-bound access to files is required. All access is tracked and automatically revoked after the specified expiration period.
Usage
Generate a temporary access link for an existing file:
CODEBLOCK0
Sample Response:
CODEBLOCK1
Upload a file and receive an access link:
Request: Multipart form with binary file attachment
Sample Response:
CODEBLOCK2
Endpoints
POST /generate-link
Generates a temporary access token for an existing file URL with automatic expiration.
Parameters:
| Name | Type | Required | Description |
|---|
| fileurl | string | Yes | The full URL of the file to create access link for |
| expireminutes |
integer | Yes | Number of minutes until the link automatically expires |
Response: JSON object containing token, accessurl, expiresat timestamp, and status
Status Codes:
- -
200 - Link generated successfully - INLINECODE1 - Validation error (missing or invalid parameters)
POST /upload-file
Uploads a file and automatically generates a temporary access link for it.
Parameters:
| Name | Type | Required | Description |
|---|
| file | binary | Yes | The file to upload (multipart/form-data) |
Response: JSON object containing filename, token, access_url, and upload status
Status Codes:
- -
200 - File uploaded and link generated successfully - INLINECODE3 - Validation error (missing file or invalid format)
GET /access/{token}
Retrieves file metadata and verifies token validity for access authorization.
Parameters:
| Name | Type | Required | Description |
|---|
| token | string | Yes | The access token generated by /generate-link or /upload-file endpoint |
Response: JSON object containing file metadata, expiration status, and download information
Status Codes:
- -
200 - Token valid, access granted - INLINECODE5 - Validation error (invalid token format)
GET /files/{filename}
Serves the file content for a valid token-based access request.
Parameters:
| Name | Type | Required | Description |
|---|
| filename | string | Yes | The name of the file to retrieve (typically obtained from /access/{token} response) |
Response: File binary content with appropriate content-type header
Status Codes:
- -
200 - File served successfully - INLINECODE7 - Validation error (invalid filename)
Pricing
| Plan | Calls/Day | Calls/Month | Price |
|---|
| Free | 5 | 50 | Free |
| Developer |
20 | 500 | $39/mo |
| Professional | 200 | 5,000 | $99/mo |
| Enterprise | 100,000 | 1,000,000 | $299/mo |
About
ToolWeb.in - 200+ security APIs, CISSP & CISM, platforms: Pay-per-run, API Gateway, MCP Server, OpenClaw, RapidAPI, YouTube.
References
- - Kong Route: https://api.mkkpro.com/tools/temp-access-link
- API Docs: https://api.mkkpro.com:8030/docs
技能名称:临时访问链接生成器
概述
临时访问链接生成器是一个注重安全的API,能够创建限时、一次性或受限访问链接,用于安全分发文件。该工具基于安全最佳实践构建,允许组织共享敏感文件,而无需暴露永久URL或依赖第三方文件共享服务。
核心功能包括生成过期访问令牌、上传文件并自动生成链接,以及通过基于令牌的安全访问提供文件服务。该工具非常适合需要向授权接收者分发敏感文档、事件报告或机密材料的安全团队,且能确保在指定过期时间后自动失效。
该工具在合规场景、事件响应工作流程以及任何需要文件限时访问的情况下尤为有价值。所有访问都会被记录,并在指定过期时间后自动撤销。
使用方法
为现有文件生成临时访问链接:
json
{
file_url: https://storage.example.com/documents/report.pdf,
expire_minutes: 30
}
示例响应:
json
{
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...,
access_url: https://api.mkkpro.com/tools/temp-access-link/access/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...,
expires_at: 2024-01-15T14:30:00Z,
status: success
}
上传文件并获取访问链接:
请求: 包含二进制文件附件的多部分表单
示例响应:
json
{
filename: sensitive_audit.pdf,
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...,
access_url: https://api.mkkpro.com/tools/temp-access-link/access/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...,
status: uploaded
}
端点
POST /generate-link
为现有文件URL生成临时访问令牌,并自动设置过期时间。
参数:
| 名称 | 类型 | 必填 | 描述 |
|---|
| fileurl | 字符串 | 是 | 要创建访问链接的文件的完整URL |
| expireminutes |
整数 | 是 | 链接自动过期前的分钟数 |
响应: 包含令牌、访问URL、过期时间戳和状态的JSON对象
状态码:
- - 200 - 链接生成成功
- 422 - 验证错误(参数缺失或无效)
POST /upload-file
上传文件并自动为其生成临时访问链接。
参数:
| 名称 | 类型 | 必填 | 描述 |
|---|
| file | 二进制 | 是 | 要上传的文件(multipart/form-data) |
响应: 包含文件名、令牌、访问URL和上传状态的JSON对象
状态码:
- - 200 - 文件上传并链接生成成功
- 422 - 验证错误(文件缺失或格式无效)
GET /access/{token}
检索文件元数据并验证令牌有效性以进行访问授权。
参数:
| 名称 | 类型 | 必填 | 描述 |
|---|
| token | 字符串 | 是 | 由/generate-link或/upload-file端点生成的访问令牌 |
响应: 包含文件元数据、过期状态和下载信息的JSON对象
状态码:
- - 200 - 令牌有效,访问已授权
- 422 - 验证错误(令牌格式无效)
GET /files/{filename}
为有效的基于令牌的访问请求提供文件内容。
参数:
| 名称 | 类型 | 必填 | 描述 |
|---|
| filename | 字符串 | 是 | 要检索的文件名称(通常从/access/{token}响应中获取) |
响应: 带有适当内容类型头的文件二进制内容
状态码:
- - 200 - 文件提供成功
- 422 - 验证错误(文件名无效)
定价
| 套餐 | 每日调用次数 | 每月调用次数 | 价格 |
|---|
| 免费 | 5 | 50 | 免费 |
| 开发者 |
20 | 500 | $39/月 |
| 专业 | 200 | 5,000 | $99/月 |
| 企业 | 100,000 | 1,000,000 | $299/月 |
关于
ToolWeb.in - 200+安全API,CISSP和CISM认证,平台:按次付费、API网关、MCP服务器、OpenClaw、RapidAPI、YouTube。
参考
- - Kong路由: https://api.mkkpro.com/tools/temp-access-link
- API文档: https://api.mkkpro.com:8030/docs