API Logs
API Reference
Cập nhật: 23/03/2026
Logs API
Xem lịch sử API requests và hoạt động tài khoản.
API Request Logs
GET /api/v1/logs/api
Authorization: Bearer YOUR_API_KEY
Sample Request
curl -s "https://thueapi.vn/api/v1/logs/api" -H "Authorization: Bearer YOUR_API_KEY"
Sample Response
{
"status": true,
"data": [
{
"id": 1001,
"endpoint": "/api/v1/transactions",
"method": "GET",
"response_ms": 17,
"status_code": 200,
"timestamp": "2026-03-23T08:49:42+07:00",
"ip": "113.161.55.236"
}
]
}
Mô tả trường
| Trường | Kiểu | Mô tả |
|---|---|---|
id | integer | ID log |
endpoint | string | API endpoint đã gọi |
method | string | GET, POST, PUT, PATCH, DELETE |
response_ms | integer | Thời gian phản hồi (milliseconds) |
status_code | integer | HTTP status code |
timestamp | string | Thời gian gọi (ISO 8601) |
ip | string | IP address |
Activity Logs
GET /api/v1/logs/activity
Authorization: Bearer YOUR_API_KEY
Sample Request
curl -s "https://thueapi.vn/api/v1/logs/activity" -H "Authorization: Bearer YOUR_API_KEY"
Sample Response
{
"status": true,
"data": [
{
"id": 1,
"action": "login",
"description": "Đăng nhập thành công",
"ip": "113.161.55.236",
"timestamp": "2026-03-23T08:50:00+07:00"
}
]
}
Mô tả trường
| Trường | Kiểu | Mô tả |
|---|---|---|
id | integer | ID log |
action | string | Loại hành động: login, register, webhook.create, webhook.delete, bank.toggle |
description | string | Chi tiết |
ip | string | IP address |
timestamp | string | Thời gian (ISO 8601) |