Tài liệu / API Reference/ API Logs

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ườngKiểuMô tả
idintegerID log
endpointstringAPI endpoint đã gọi
methodstringGET, POST, PUT, PATCH, DELETE
response_msintegerThời gian phản hồi (milliseconds)
status_codeintegerHTTP status code
timestampstringThời gian gọi (ISO 8601)
ipstringIP 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ườngKiểuMô tả
idintegerID log
actionstringLoại hành động: login, register, webhook.create, webhook.delete, bank.toggle
descriptionstringChi tiết
ipstringIP address
timestampstringThời gian (ISO 8601)
ThueAPI.VN
Đăng nhập với Google
hoặc đăng nhập bằng email
Quên mật khẩu?

Chưa có tài khoản?

Đăng ký với Google
hoặc đăng ký bằng email

Bằng cách đăng ký, bạn đồng ý với Điều khoản dịch vụChính sách bảo mật của chúng tôi.

Đã có tài khoản?