Servera Malware API

Malicious-code scanning for your cPanel hosting - start scans, read results, and schedule periodic scans with email notifications to you and extra contacts.

GitHub OpenAPI

Operations 7

GET /v1/malware/services List scannable hosting services #
POST /v1/malware/services/{service_id}/scan Start a malicious-code scan #
GET /v1/malware/services/{service_id}/scan-status Latest scan status for a domain #
GET /v1/malware/scans/{scan_id} Scan result with infected files #
GET /v1/malware/services/{service_id}/scan-history Recent scans for a service #
GET /v1/malware/services/{service_id}/notify Get scan-notification settings #
PUT /v1/malware/services/{service_id}/notify Set scan-notification settings #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/servera-co-uk:servera-co-uk-malware-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

servera-co-uk-malware-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Servera Developers Malware API
  description: 'A REST API for your Servera account - the same operations you have in the customer

    area, available programmatically, plus an **MCP** endpoint so AI agents can use

    them as tools. Every request is authenticated with a scoped API key and rate-limited. ### What you can do

    Everything from your customer area, grouped by area (each needs the matching scope):


    - **VPS / VDS** - list servers; live status + CPU/RAM/disk/network metrics; power

    on/off/reboot; snapshots (create, roll back, delete); backups (create, delete);

    the per-VM firewall (view, enable/disable, rules add/update/delete/reorder - on

    standalone and behind-Virtual-Router VMs); and OS reinstall. - **VPC Networks** - list your private networks and manage their firewall (rules,

    options, VM↔VM isolation toggle). - **Virtual Routers** - overview, WireGuard peers, public-IP mappings, and

    attach/detach VMs behind the router. - **Domains & DNS** - list domains (nameservers, lock, DNSSEC, expiry) and read or

    edit DNS records (A, AAAA, CNAME, MX, TXT, SRV, CAA) on all DNS zones

    hosted with us. - **WAF** - list protected domains, enable/disable protection, toggle threat

    filtering, apply security presets, advanced rules, bot policy, IP/country

    allow-block lists, and read traffic logs. - **Email - delivery & protection** - delivery trace, RBL/blocklist checks, the

    RBL self-whitelist, trusted senders, and autoresponders. - **Billing** - list invoices, download their PDFs, and check your account balance. - **Orders** - list and inspect your orders. - **Support** - read tickets, open new ones, and post replies. - **IP protection** - check whether an IP is blocked on shared hosting, self-unblock

    it, and view the history. - **Users** - list account users, invite new ones, and resend invitations. - **Contacts** - list and manage your account contacts. - **Tags & comments** - organise your services and domains with tags (a predefined

    grouped catalog of international labels, or your own custom text) and a free-text

    comment on each; find services/domains by tag. Scopes `tags:read`/`tags:write`. - **System emails** - the transactional emails we''ve sent to your account. - **Activity log** - your account''s audited actions. ## Base URL

    ```

    https://developers.servera.lt

    ```

    Every `servera.*` brand has its own host (e.g. `https://developers.servera.co.uk`);

    they share this API. ## Quick start

    ```bash

    # Public - no auth

    curl https://developers.servera.lt/v1/status


    # Authenticated - list your VPS/VDS

    curl https://developers.servera.lt/v1/vps \

    -H "Authorization: Bearer sk_live_…"

    ```


    ## Authentication

    Create a scoped API key in your customer area (**Developers → API keys**), then

    send it as a bearer token on every request:

    ```

    Authorization: Bearer sk_live_…

    ```

    Keys are shown **once** at creation (only a hashed form is stored) and can be

    revoked anytime. Send keys over HTTPS only, in the header - never in a URL.'
  version: 1.0.0
servers:
- url: https://developers.servera.co.uk
  description: Production
tags:
- name: Malware
  description: Malicious-code scanning for your cPanel hosting - start scans, read results, and schedule periodic scans with email notifications to you and extra contacts.
paths:
  /v1/malware/services:
    get:
      tags:
      - Malware
      summary: List scannable hosting services
      description: Your cPanel hosting services that support malicious-code scanning, with each service's notification state.
      operationId: malware_list_services
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                services:
                - service_id: 15231
                  name: cPanel hosting
                  domain: example.lt
                  username: exampl
                  scanning_available: true
                  notify_enabled: true
      security:
      - ApiKey: []
  /v1/malware/services/{service_id}/scan:
    post:
      tags:
      - Malware
      summary: Start a malicious-code scan
      description: 'Queue a malicious-code scan for one domain. Rate-limited per domain; returns a `code`

        (queued | rate_limited | in_progress | not_available | no_username) and the `scan_id`.'
      operationId: malware_scan_start
      security:
      - ApiKey: []
      parameters:
      - name: service_id
        in: path
        required: true
        schema:
          type: integer
          title: Service Id
        description: Service id of the VPS/VDS (from GET /vps) or Virtual Router (from GET /virtual-routers).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MalwareScanBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                success: true
                code: queued
                scan_id: 8841
                message: Malware scan queued
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/malware/services/{service_id}/scan-status:
    get:
      tags:
      - Malware
      summary: Latest scan status for a domain
      description: Status of the most recent scan for a domain (pending | scanning | completed | failed | unknown).
      operationId: malware_scan_status
      security:
      - ApiKey: []
      parameters:
      - name: service_id
        in: path
        required: true
        schema:
          type: integer
          title: Service Id
        description: Service id of the VPS/VDS (from GET /vps) or Virtual Router (from GET /virtual-routers).
      - name: domain
        in: query
        required: true
        schema:
          type: string
          title: Domain
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                scan_id: 8841
                status: completed
                domain: example.lt
                malicious_count: 2
                total_files_scanned: 48213
                started_at: '2026-10-04T10:12:00Z'
                completed_at: '2026-10-04T10:16:31Z'
                error_message: null
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/malware/scans/{scan_id}:
    get:
      tags:
      - Malware
      summary: Scan result with infected files
      description: Full result of one scan, including the list of detected malicious files.
      operationId: malware_scan_detail
      security:
      - ApiKey: []
      parameters:
      - name: scan_id
        in: path
        required: true
        schema:
          type: integer
          title: Scan Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                scan_id: 8841
                domain: example.lt
                status: completed
                malicious_count: 2
                total_files_scanned: 48213
                scan_tool: imunifyav
                created_at: '2026-10-04T10:12:00Z'
                completed_at: '2026-10-04T10:16:31Z'
                infected_files:
                - file_path: /home/exampl/public_html/wp-content/uploads/x.php
                  malware_type: backdoor
                  threat_name: SMW-BKDR
                  file_status: found
                  detected_at: '2026-10-04T10:16:00Z'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/malware/services/{service_id}/scan-history:
    get:
      tags:
      - Malware
      summary: Recent scans for a service
      description: Recent scans for a hosting service (newest first, up to `limit`, max 100).
      operationId: malware_scan_history
      security:
      - ApiKey: []
      parameters:
      - name: service_id
        in: path
        required: true
        schema:
          type: integer
          title: Service Id
        description: Service id of the VPS/VDS (from GET /vps) or Virtual Router (from GET /virtual-routers).
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 20
          title: Limit
        description: Maximum rows to return (1–200, default 50).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                history:
                - scan_id: 8841
                  domain: example.lt
                  status: completed
                  malicious_count: 2
                  total_files_scanned: 48213
                  created_at: '2026-10-04T10:12:00Z'
                  completed_at: '2026-10-04T10:16:31Z'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/malware/services/{service_id}/notify:
    get:
      tags:
      - Malware
      summary: Get scan-notification settings
      description: Scheduled-scan notification settings for a hosting service (enabled, recipients, cadence/time, last run/report).
      operationId: malware_notify_get
      security:
      - ApiKey: []
      parameters:
      - name: service_id
        in: path
        required: true
        schema:
          type: integer
          title: Service Id
        description: Service id of the VPS/VDS (from GET /vps) or Virtual Router (from GET /virtual-routers).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                configured: true
                enabled: true
                has_account: true
                recipient_emails:
                - me@example.lt
                - dev@example.lt
                cadence: weekly
                hour: 3
                minute: 30
                day_of_week: 0
                day_of_month: 1
                owner_email: me@example.lt
                next_run_at: '2026-10-06T00:30:00Z'
                last_run_at: '2026-09-29T00:30:00Z'
                last_status: completed
                last_threats: 0
                last_report_sent_at: null
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Malware
      summary: Set scan-notification settings
      description: Enable/disable scheduled scanning + email notifications and set recipients + schedule for a hosting service.
      operationId: malware_notify_set
      security:
      - ApiKey: []
      parameters:
      - name: service_id
        in: path
        required: true
        schema:
          type: integer
          title: Service Id
        description: Service id of the VPS/VDS (from GET /vps) or Virtual Router (from GET /virtual-routers).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MalwareNotifyBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                success: true
                enabled: true
                recipient_emails:
                - me@example.lt
                - dev@example.lt
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MalwareScanBody:
      properties:
        domain:
          type: string
          title: Domain
          description: A domain on this hosting service to scan (its document root under public_html).
      type: object
      required:
      - domain
      title: MalwareScanBody
      example:
        domain: example.lt
    MalwareNotifyBody:
      properties:
        enabled:
          type: boolean
          title: Enabled
          description: Turn scheduled malicious-code scanning + email notifications on/off for this service.
          default: false
        recipient_emails:
          items:
            type: string
          type: array
          title: Recipient Emails
          description: Who receives the report email. Max 20. You may include or omit the account owner.
        cadence:
          type: string
          title: Cadence
          description: 'How often to scan: daily | weekly | monthly.'
          default: daily
        hour:
          type: integer
          maximum: 23.0
          minimum: 0.0
          title: Hour
          description: Hour of day (Europe/Vilnius).
          default: 4
        minute:
          type: integer
          maximum: 59.0
          minimum: 0.0
          title: Minute
          description: Minute of hour (Europe/Vilnius).
          default: 0
        day_of_week:
          type: integer
          maximum: 6.0
          minimum: 0.0
          title: Day Of Week
          description: 'Weekly cadence only: 0=Monday … 6=Sunday.'
          default: 0
        day_of_month:
          type: integer
          maximum: 28.0
          minimum: 1.0
          title: Day Of Month
          description: 'Monthly cadence only: day 1–28.'
          default: 1
        notify_on_clean:
          type: boolean
          title: Notify On Clean
          description: 'Also email the report when a scan finds 0 malware (default: only email when threats are found).'
          default: false
      type: object
      title: MalwareNotifyBody
      example:
        cadence: weekly
        day_of_week: 0
        enabled: true
        hour: 3
        minute: 30
        notify_on_clean: false
        recipient_emails:
        - me@example.lt
        - dev@example.lt
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    ApiKey:
      type: http
      description: 'Your `sk_live_…` API key, sent as `Authorization: Bearer <key>`.'
      scheme: bearer