Callbacks API#
Báo kết quả xử lý về hệ thống.
Base URL: https://apitest.likepion.com/api/v1
Auth: X-API-Key
POST /worker/callback/link/complete — Hoàn thành link #
Endpoint quan trọng nhất. Tự động set status=completed, completed_at=now, tăng created_links.
Request:
{
"link_id": "task-uuid",
"link_profile": "https://example.com/profile/user123",
"link_post": "https://example.com/post/456"
}| Field | Loại | Bắt buộc | Mô tả |
|---|---|---|---|
link_id | uuid | Có | ID task |
link_profile | string | Không | URL profile |
link_post | string | Không | URL bài đăng |
Response (200):
{"success": true, "data": {"completed": true}}POST /worker/callback/link/update — Cập nhật link #
Request:
{
"link_id": "task-uuid",
"status": "running",
"link_profile": "https://example.com/profile/user123",
"link_post": "",
"error_message": ""
}Response (200):
{"success": true, "data": {"updated": true}}POST /worker/callback/request/status — Cập nhật request #
Request:
{
"request_id": "request-uuid",
"status": "completed"
}Nếu status = completed → tự set completed_at = now.
POST /worker/callback/account/status — Cập nhật account #
Request:
{
"account_id": "account-uuid",
"status": "banned"
}