API 文档
这是可用 API 端点的文档,这些端点基于 REST 架构构建。所有 API 端点都将返回带有标准 HTTP 响应代码的 JSON 响应,并且需要通过 API 密钥进行 Bearer 认证。
认证
所有 API 端点都需要通过 Bearer 认证方法发送 API 密钥。
Authorization: Bearer {api_key}
curl --request GET \
--url 'https://tit.lc/api/{endpoint}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tit.lc/api/{endpoint}' \
--header 'Authorization: Bearer {api_key}' \
Errors
Our API uses conventional HTTP status codes to indicate the success or failure of a request.
{
"errors": [
{
"title": "\u60a8\u65e0\u6743\u8bbf\u95ee API\u3002",
"status": 401
}
]
}
200 Request completed successfully
400 Bad request - Required parameters are missing or invalid
401 Unauthorized - API key is missing or invalid
404 The requested resource was not found
429 Too many requests - Rate limit exceeded
500 Internal server error - this means there is a problem on our end
除非另有说明,所有 API 端点结果均使用 UTC 时区。
用户
链接
链接统计
跟踪像素
引导页
二维码
数据
通知处理器
自定义域名
账户日志