360 Secure SkillHub
360 安全技能中心

Temp Access Link

该 Skill 描述了一组 HTTP 接口:为已有文件 URL 生成带过期时间的访问 token、上传文件并自动生成访问链接,以及按 token 或文件名取回文件内容与元数据。面向需要限时分享敏感文件的场景,本身不含本地脚本或运行时依赖,需联网调用外部服务。

krishnakumarmahadevan-cmd
krishnakumarmahadevan-cmd
热度 37.22
最近更新 2026-05-11 17:35:23
分类:安全依赖:第三方 API应用场景:API 集成 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add temp-access-link
Metadata
name
Temporary Access Link Generator
description
Generate secure, time-limited access links for file sharing with automatic expiration.

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:

{
  "file_url": "https://storage.example.com/documents/report.pdf",
  "expire_minutes": 30
}

Sample Response:

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "access_url": "https://api.mkkpro.com/tools/temp-access-link/access/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_at": "2024-01-15T14:30:00Z",
  "status": "success"
}

Upload a file and receive an access link:

Request: Multipart form with binary file attachment

Sample Response:

{
  "filename": "sensitive_audit.pdf",
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "access_url": "https://api.mkkpro.com/tools/temp-access-link/access/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "status": "uploaded"
}

Endpoints

POST /generate-link

Generates a temporary access token for an existing file URL with automatic expiration.

Parameters:

Name Type Required Description
file_url string Yes The full URL of the file to create access link for
expire_minutes integer Yes Number of minutes until the link automatically expires

Response: JSON object containing token, access_url, expires_at timestamp, and status

Status Codes:

  • 200 - Link generated successfully
  • 422 - 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
  • 422 - 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
  • 422 - 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
  • 422 - 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