Aero-sentry API

Welcome to the Aero-sentry API & documentation.

To use our service, you will need an API key. Create one by logging in or registering an account below.

Access Token Management Panel

API Documentation

Base API URL

https://api.g56b4675v366c3655b6.top/api/v1

Authentication

All requests must include an API key in the query string:

GET /users?api_key=YOUR_API_KEY
(Except for the /status endpoint.)

- You can find your API key in the: Token Management Panel


Available Endpoints

Public Endpoints

  • GET /status - Check API server status. - (No authentication required)
  • Returns: 200 OK if Available - 202 if API key is correctly formated. (Not if its valid)

Authenticated Endpoints

  • GET /iframe - Iframe widget endpoint.
  • Requires API key as ?api_key=YOUR_API_KEY query string parameter.

Endpoints requiring Bearer Token

These endpoints requires a Authorization: Bearer YOUR_API_KEY header to be set in the request. You can do this in JavaScript by using the Fetch API or XMLHttpRequest.

  • GET /users - List of all registered dummy users.
  • GET /usage - Check API usage statistics.

Sample Request

Curl

curl "https://api.g56b4675v366c3655b6.top/api/v1/status?api_key=d920fa98fda3ed3f0d41778cfe6669b6763197cc2bdf2ea82b41c4b1d8ab8c50"

Or via Authorization: header:

curl "https://api.g56b4675v366c3655b6.top/api/v1/status" -H "Authorization: Bearer d920fa98fda3ed3f0d41778cfe6669b6763197cc2bdf2ea82b41c4b1d8ab8c50"

Iframe Widget Integration (HTML Example)


<!DOCTYPE html>
<html lang="en">
<head>
  <link rel="dns-prefetch" href="https://api.g56b4675v366c3655b6.top">
  <link rel="preconnect" href="https://api.g56b4675v366c3655b6.top">
</head>
<body>
  <iframe
      src="https://api.g56b4675v366c3655b6.top/api/v1/iframe?api_key=YOUR_API_KEY"
      sandbox="allow-scripts allow-same-origin allow-forms"
      fetchpriority="high"
      title="Aero-sentry"
  ></iframe>

  <script>
    window.addEventListener('message', (event) => {
      if (event.origin !== 'https://api.g56b4675v366c3655b6.top') return;

      // Check if Ready
      if (event.data && typeof event.data === 'object') {
        if (typeof event.data.dosProtectionReady !== 'undefined') {
          if (event.data.dosProtectionReady === true) {   // Widget Ready
            console.log("Widget is ready!");
          } else if (event.data.error) {  // Widget setup error
            console.error("Widget setup error:", event.data.error);
          }
        }

        // Check for Result
        if (typeof event.data.dosProtectionResult !== 'undefined') {
          if (event.data.dosProtectionResult === true) {  // Widget Success
            console.log("%cWidget processing success", "color: green");
          } else if (event.data.error) {  // Widget Error
            console.error("Widget processing error:", event.data.error);
          }
        }
      }
    });
  </script>
</body>
</html>
Copy the code above, Or..

Download Code

Download Code SHA256: 404775e4a59230ec16579c7fd4f08cbc307c9d4334a7b7e100e921982859e564
Name: widget.html
Size: 1.68 KB
Type: HTML