Laporan Sistem API

API kami menyediakan akses langsung untuk melihat log API dan memantau error webhook secara efisien. Dengan ini, Anda bisa mendiagnosis masalah dengan cepat dan memastikan integrasi sistem berjalan lancar.

reportApi

post

Memfilter laporan API pada aplikasi WHAPI

Body
apiKeystringOptionalExample: api_key
endstringOptionalExample: end
limitstringOptionalExample: limit
skipstringOptionalExample: skip
sortstringOptionalExample: sort
startstringOptionalExample: start
statusstringOptionalExample: status
typestringOptionalExample: type
Responses
200
Response 200
application/json
post
POST /api/reportApi HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 124

"apiKey='api_key'&end='end'&limit='limit'&skip='skip'&sort='sort'&start='start'&status='status'&type='type'"
200

Response 200

{
  "code": 200,
  "results": [
    {
      "body": {
        "apiKey": "xxxxx",
        "message": "Test message",
        "phone": "xxxxx",
        "rawdata": "Test message",
        "type_chat": "private"
      },
      "history": [
        {
          "status": 2,
          "time": 1719628366625,
          "type": "message_ack"
        },
        {
          "status": 3,
          "time": 1719628367668,
          "type": "message_ack"
        }
      ],
      "id": "XXXXX",
      "method": "sendMessage",
      "phone": "xxxxx",
      "status": 3,
      "time": "2024-06-29T02:32:45.771Z",
      "type": "private"
    }
  ]
}

logErrorWebhook

post

Memfilter log error webhook

Body
apiKeystringOptionalExample: api_key
endstringOptionalExample: end
limitstringOptionalExample: limit
skipstringOptionalExample: skip
sortstringOptionalExample: sort
startstringOptionalExample: start
Responses
200Success
post
POST /api/logErrorWebhook HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 92

"apiKey='api_key'&end='end'&limit='limit'&skip='skip'&sort='sort'&start='start'"
200Success

No content