API 文档

概述

GetLifeUndo API 允许您将撤销功能集成到您的应用程序中。

基础 URL
https://getlifeundo.com
速率限制
每分钟 100 个请求

认证

使用 API 密钥访问 API。

Authorization: Bearer <api_key>
请求头示例

端点

健康检查

GET /api/healthz -> 200 OK

创建支付

请求体
POST /api/payments/freekassa/create
Content-Type: application/json

{
  "productId": "pro_monthly | vip_lifetime | team_5_monthly | starter_6m"
}
响应
200 OK
{
  "ok": true,
  "pay_url": "https://pay.fk.money/?...",
  "orderId": "17597..."
}

400 Bad Request
{
  "ok": false,
  "error": "invalid_productId"
}

示例

cURL
curl -X POST https://getlifeundo.com/api/payments/freekassa/create \
 -H "Content-Type: application/json" \
 -d '{"productId":"pro_monthly"}'
PowerShell
$body = @{ productId = "pro_monthly" } | ConvertTo-Json
Invoke-RestMethod -Method POST "https://getlifeundo.com/api/payments/freekassa/create" -ContentType "application/json" -Body $body

Webhooks

FreeKassa 向指定 URL 发送支付状态通知。

OpenAPI 规范

openapi.yaml