Integration docs

Documentation

Everything you need to connect a site or service to this dashboard: pick your stack and copy the code, read the full API contract, or install the no-code WordPress plugin. Every integration speaks the same language — JSON over HTTP with your site API key.

first-connection.sh

                        
{
  "message": "Connected.",
  "connected": true
}
Site status: waiting for first request POST /api/v1/plugin/findings
On this page

Quick start

From a new account to your first security report. Tick each step off as you go — every one of them is a single click or a single request.

  1. 1

    Create your account

    Register free and verify your email — the dashboard unlocks as soon as the address is verified.

  2. 2

    Register your site

    Dashboard → Sites → Add site. Every site gets its own API key, which identifies it to the API.

  3. 3

    Choose how to connect

    Any platform — WordPress, PHP, Node, Python or static HTML — can use the REST API with the site API key. WordPress sites can skip the code entirely with the plugin — syncing it needs the Starter plan or above.

  4. 4

    Make the first connection

    Send a ping request with curl (example below), or upload the plugin zip in wp-admin and paste your dashboard URL and API key under Settings → Sterlink Guard. Without a plan that includes the connector the API answers 403 wordpress_connector_not_in_plan and the plugin keeps protecting locally.

  5. 5

    See the first report

    Click Test connection or send the ping — on Starter and above, security score, findings and email alerts start showing up right away.

Without a plan that includes the connector, the API answers 403 wordpress_connector_not_in_plan — and the plugin keeps protecting your site locally either way.

Add the API — pick your stack

Developers build on all kinds of stacks, so here is the same integration written per stack — copy the code for yours. Every example talks to one endpoint, POST /api/v1/plugin/findings, with your site API key in the X-Api-Key header (full contract in the API reference below). Each example starts with a ping — the quickest first request: it proves the connection and marks the site connected without recording a scan. Pings and reports need a plan that includes the WordPress connector (Starter and above); on the Free plan the endpoint answers 403 wordpress_connector_not_in_plan.

Every example below starts with a ping — the quickest first request. It proves the connection and marks the site connected without recording a scan. Pings and reports need a plan that includes the WordPress connector (Starter and above).

cURL

Any stack — HTTP contract (cURL)

Every integration speaks this exact contract: POST JSON, key in the header, read the JSON back. If your stack is not listed below (Go, Ruby, Java, Rust, Postman...), copy this request — it works everywhere unchanged.

Code to add

cURL
curl -X POST https://sterlinkdigital.com/api/v1/plugin/findings \
  -H 'Content-Type: application/json' \
  -H 'X-Api-Key: YOUR_SITE_API_KEY' \
  -d '{"events":[{"type":"ping"}]}'

Example response

JSON
{
  "message": "Connected.",
  "connected": true
}

Setup notes

  • The dashboard lives at https://sterlinkdigital.com — that exact URL goes in the plugin (no substitution needed); YOUR_SITE_API_KEY with the key from Dashboard → Sites → your site → API key.
  • Expected answer: {"message":"Connected.","connected":true} — the site then shows status connected. Pings never create a scan.
  • Swap the ping for a findings or events array to report real data — full payload schema is in the API reference below.
  • Keep the API key on your server — never in browser JavaScript or a public repository.

REST API reference

One small versioned JSON API powers every integration — from any language or platform: PHP, Node, Python, mobile apps or plain curl. The WordPress plugin further down is only a ready-made client of these same endpoints; if your site does not run WordPress, call the API directly with the examples below. Two of the endpoints power the live firewall on a non-WordPress site: GET /plugin/protection hands it the ban list plus the detection signatures to run in-process, and POST /plugin/traffic sends back what that firewall stops so the whole network learns from it.

What happens to a report

Your site Sends JSON with the X-Api-Key header
Sterlink API https://sterlinkdigital.com/api/v1/plugin/findings
Stored as its own scan
Security score recalculated
Email alerts triggered

Base URL

Base URL
https://sterlinkdigital.com/api/v1

Authentication & rate limits

  • Every request must carry the site API key in the X-Api-Key header (Authorization: Bearer also works).
  • Copy the key from Dashboard → Sites → your site → API key — or regenerate it on the same card.
  • A missing or unknown key returns 401 with {"message": "Invalid or missing API key.", "code": "invalid_api_key"}.
  • A key this dashboard has replaced stays recognisable for 30 days: it returns 401 with {"code": "key_replaced"} and the date it was replaced, so a stale config is told exactly why it stopped working and where to copy the current key from.
  • Every accepted request stamps the site’s "Last seen" heartbeat; a site with no contact for 48 hours is marked Disconnected automatically — even when it carries no plugin.
  • Rate limits per key: findings 60/min, update check 30/min, package download 10/min.

Rate limits per key, requests per minute

Findings
60/min
Update check
30/min
Package download
10/min
Missing or unknown key: 401
{
  "message": "Invalid or missing API key.",
  "code": "invalid_api_key"
}

Endpoints

POST /plugin/findings

Report findings & events

The connector sends file-integrity and malware findings plus login events here. Each report is stored as its own scan, recalculates the security score and triggers email alerts. Rate limit: 60 requests/minute.

Example request
curl -X POST https://sterlinkdigital.com/api/v1/plugin/findings \
  -H 'X-Api-Key: YOUR_SITE_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "findings": [
      {
        "code": "malware-uploaded-shell",
        "title": "PHP shell found in uploads",
        "severity": "critical",
        "description": "wp-content/uploads/2026/shell.php executes arbitrary commands.",
        "threat": "unrestricted-file-upload",
        "evidence": { "path": "wp-content/uploads/2026/shell.php", "sha1": "abc123" }
      }
    ],
    "events": [
      { "type": "login_failed", "username": "admin", "ip": "203.0.113.10" }
    ]
  }'
Example response
HTTP/1.1 201 Created
{
  "message": "Findings stored.",
  "scan_id": 42,
  "score": 70,
  "findings": 1,
  "events": 1
}
GET /plugin/update

Latest plugin version

Version manifest for the plugin: the latest version, where to download it, the per-file source hashes and the WordPress and PHP minimums. Sterlink Guard is not published on WordPress.org — releases ship from this dashboard, so this manifest is what names the current release and lets an installed copy be verified against the original. Rate limit: 30 requests/minute.

Example request
curl -H 'X-Api-Key: YOUR_SITE_API_KEY' \
  https://sterlinkdigital.com/api/v1/plugin/update
Example response
HTTP/1.1 200 OK
{
  "slug": "sterlink-security-guard",
  "version": "1.0.0",
  "package": "https://sterlinkdigital.com/api/v1/plugin/package",
  "url": "https://sterlinkdigital.com/download-plugin",
  "requires": "6.0",
  "requires_php": "8.0"
}
GET /plugin/package

Download plugin zip (latest)

Streams the installable zip of the newest plugin version, built on the fly from the dashboard source. Installs and updates come from this dashboard — this endpoint serves the same zip the plugin’s updater downloads. Rate limit: 10 requests/minute.

Example request
curl -H 'X-Api-Key: YOUR_SITE_API_KEY' \
  -o sterlink-security-guard.zip \
  https://sterlinkdigital.com/api/v1/plugin/package
Example response
HTTP/1.1 200 OK
Content-Type: application/zip
Content-Disposition: attachment; filename=sterlink-security-guard-1.0.0.zip

<binary zip body>
GET /plugin/protection

Pull the protection bundle (bans + signatures)

The single fetch every non-WordPress enforcement snippet (Laravel, Node, Django, Flask, FastAPI, plain PHP) polls. It returns the same bans as the blocklist endpoint below plus the detection signatures the snippet runs in-process, so a new signature reaches every connected site on its next cache refresh (~60s) with no redeploys. Rate limit: 60 requests/minute.

Example request
curl -H 'X-Api-Key: YOUR_SITE_API_KEY' \
  https://sterlinkdigital.com/api/v1/plugin/protection
Example response
HTTP/1.1 200 OK
{
  "message": "Blocklist delivered.",
  "network": true,
  "challenge": false,
  "tarpit": false,
  "count": 1,
  "entries": [
    { "ip": "203.0.113.50", "action": "ban", "level": "temporary", "until": "2026-10-28T12:00:00+00:00", "reason": "Shared threat intelligence" }
  ],
  "site_entries": [],
  "signatures": [
    { "rule": "sqli", "targets": ["query", "body"], "patterns": ["union.+select", "sleep.", "benchmark."] },
    { "rule": "traversal", "targets": ["query", "path"], "patterns": ["../", "..%2f"] },
    { "rule": "xss", "targets": ["query", "body", "header"], "patterns": ["<script", "javascript:"] }
  ]
}
POST /plugin/traffic

Report blocked attacks (sensor)

Where the enforcement snippets send back what they stop. Each blocked request is scored as evidence in the attacker registry and can earn the source a network-wide ban. Send up to 500 entries per post; event is required (request, blocked, login, login_failed, flood_404 or suspicious_ua) and rule should name the signature that matched. Rate limit: 60 requests/minute.

Example request
curl -X POST https://sterlinkdigital.com/api/v1/plugin/traffic \
  -H 'X-Api-Key: YOUR_SITE_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "entries": [
      {
        "ip": "203.0.113.50",
        "method": "GET",
        "path": "/?id=1 UNION SELECT password FROM users",
        "status_code": 403,
        "user_agent": "sqlmap/1.7",
        "event": "blocked",
        "rule": "sqli",
        "blocked": true,
        "reason": "Request matched a sqli signature",
        "happened_at": "2026-10-28T11:59:00+00:00"
      }
    ]
  }'
Example response
HTTP/1.1 201 Created
{
  "message": "Traffic stored.",
  "stored": 1
}
GET /plugin/blocklist

Pull the ban list only

The same bans as the protection bundle minus the detection signatures — this is the path the WordPress firewall polls. Each entry expires by its own until, so a lifted ban disappears on the next poll without being pushed to the site. Rate limit: 60 requests/minute.

Example request
curl -H 'X-Api-Key: YOUR_SITE_API_KEY' \
  https://sterlinkdigital.com/api/v1/plugin/blocklist
Example response
HTTP/1.1 200 OK
{
  "message": "Blocklist delivered.",
  "network": true,
  "challenge": false,
  "tarpit": false,
  "count": 1,
  "entries": [
    { "ip": "203.0.113.50", "action": "ban", "level": "temporary", "until": "2026-10-28T12:00:00+00:00", "reason": "Shared threat intelligence" }
  ],
  "site_entries": []
}

Payload reference

  • findings[] — up to 500 items per report. Required per item: code (max 80 chars), title, severity (critical | high | medium | low | info). Optional: description, threat (knowledge-base slug that links the finding to an article), evidence (key/value map such as path and sha1).
  • events[] — up to 200 items per report. type is one of: login_failed, login_success_suspicious, user_created, password_reset, ping. Optional: username, ip, user_agent, message, happened_at.
  • A report containing only a ping event is a connection test: it marks the site connected without creating a scan or sending alerts.
  • A report with neither findings nor events is rejected with 422. An invalid severity also returns 422 with field-level errors.
  • If the dashboard is unreachable, the plugin queues reports locally (up to 500) and resends them on the next run.
login_failed login_success_suspicious user_created password_reset ping

How scoring works

Every scan starts at 100 points and each finding deducts by severity. The score is returned in the response and stored as the site's latest scan score. Move the counters to try it:

100
No findings. Perfect score.
  • Every scan starts at 100 points; each finding deducts by severity: critical -25, high -12, medium -5, low -2, info -0.
  • The score is returned in the response (score) and stored on the site latest scan.
  • Authentication errors return 401 — invalid_api_key for an unknown key, key_replaced for one this dashboard retired. Plan gating returns 403 with license_expired (the subscription lapsed) or wordpress_connector_not_in_plan (the plan does not include the WordPress connector); validation errors are 422 and rate-limit overloads 429, all as JSON.

Errors

All errors come back as JSON.

StatusCodeWhen it happens
401invalid_api_keyThe key is missing or unknown.
401key_replacedThe key was retired. The response includes the date it was replaced.
403license_expiredThe subscription has lapsed.
403wordpress_connector_not_in_planThe plan does not include the WordPress connector.
422Field-level errorsValidation failed: no findings or events, or an invalid severity.
429Rate limitToo many requests for this key. See the limits above.

WordPress — the easy way

If your site runs WordPress you write no code at all: install the ready-made Sterlink Security Guard plugin, paste your API key, and it handles the rest — file integrity monitoring, daily malware scans, login monitoring and real-time brute-force blocking, all reported to this dashboard through the API above.

Where to get the plugin

  1. Log in to your Sterlink Digital account (your email must be verified). The download section sits on your profile and is available on every plan — syncing its findings to the dashboard starts on Starter.

  2. Open Profile → WordPress plugin → "Download plugin (.zip)" — the direct link is /download-plugin.

  3. The plugin is not published on WordPress.org — this dashboard is its only official source, and the zip always contains the latest released code.

sterlink-security-guard.zip

Free account required. The download lives in your profile.

Log in to download

Install — three clicks

  1. In wp-admin go to Plugins → Add New → Upload Plugin.

  2. Select sterlink-security-guard.zip, click Install Now, then Activate.

  3. Open the new Settings → Sterlink Guard menu.

Connect — paste your key

  1. Dashboard URL: your Sterlink Digital dashboard address (https://sterlinkdigital.com) — never your WordPress site. The plugin posts to /api/v1/plugin/findings on it.

  2. Site API key: copy it from Dashboard → Sites → your site → API key.

  3. Save settings, then click Test connection — a green "Connected!" notice means pairing succeeded.

  4. Toggle the protections you want: file integrity, daily malware scan, login monitor, real-time guard.

  5. After a deliberate WordPress core update, click "Rebuild file baseline" so intentional changes stop alerting.

WordPressSettings › Sterlink Guard

Sterlink Guard

Not connected yet. Click Test connection.

Interactive preview. Nothing is sent anywhere.

Requirements

  • WordPress 6.0 or newer
  • PHP 8.0 or newer
  • A Sterlink Digital account with a registered site, an API key and the Starter plan or above (the connector syncs on Starter, Business and Agency)
  • Outbound HTTPS access to your dashboard domain

Need help?

The knowledge base covers 99 entries — threats, attack techniques and malware guides — and if something is unclear, email us and we will answer.

Open knowledge base Email support

Essential cookies keep sign-in and security forms working. Accept enables Google Analytics and Tawk.to live chat; Decline keeps those optional services off. How cookies are used