07
07l.cn

API 文档

以下是当前系统的基础接口说明,可使用 API Key 调用。

认证方式

调用接口时可以在请求头中附带 API Key:

X-API-Key: 你的_api_key

说明

部分接口同时支持表单方式或 JSON 方式传参。推荐用 HTTPS 调用。

短链接接口

POST /api/v1/shorten JSON: { "user_id": 1, "url": "https://example.com" }

Paste 接口

POST /api/v1/paste JSON: { "user_id": 1, "title": "测试标题", "content": "测试内容" }

上传接口

POST /api/v1/upload FormData: user_id=1 file=文件