Servera WAF API

Web Application Firewall - domains, presets, rules, lists, bot policy.

GitHub OpenAPI

Operations 18

GET /v1/waf/domains List WAF domains #
POST /v1/waf/domains Create WAF binding #
GET /v1/waf/domains/{waf_domain_id}/security WAF security state #
POST /v1/waf/domains/{waf_domain_id}/security/engine Toggle threat filtering #
POST /v1/waf/domains/{waf_domain_id}/enable Enable WAF #
POST /v1/waf/domains/{waf_domain_id}/disable Disable WAF #
GET /v1/waf/domains/{waf_domain_id}/logs WAF traffic logs #
GET /v1/waf/domains/{waf_domain_id}/security/preset-components Preset components #
POST /v1/waf/domains/{waf_domain_id}/security/preset Apply security preset #
GET /v1/waf/domains/{waf_domain_id}/advanced Get advanced rules #
PUT /v1/waf/domains/{waf_domain_id}/advanced Set advanced rules #
GET /v1/waf/domains/{waf_domain_id}/bot-policy Get bot policy #
PUT /v1/waf/domains/{waf_domain_id}/bot-policy Set bot policy #
GET /v1/waf/domains/{waf_domain_id}/lists Get IP/country lists #
PUT /v1/waf/domains/{waf_domain_id}/lists/{kind} Replace a list #
GET /v1/waf/domain-map Domain → WAF binding map #
GET /v1/waf/domains/{waf_domain_id}/status WAF toggle status #
GET /v1/waf/domains/{waf_domain_id}/ns-check Nameserver pre-flight #

Specifications

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-waf-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-waf-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Servera Developers WAF 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: WAF
  description: Web Application Firewall - domains, presets, rules, lists, bot policy.
paths:
  /v1/waf/domains:
    get:
      tags:
      - WAF
      summary: List WAF domains
      description: Your WAF bindings (whether the protection is on or off).
      operationId: list_waf_domains
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                domains:
                - id: 3
                  domain: example.com
                  status: active
                  enabled_at: '2026-07-01T10:00:00+00:00'
                  disabled_at: null
                  dns_flipped_at: '2026-07-01T10:05:00+00:00'
                  cert_acquired_at: '2026-07-01T10:03:00+00:00'
                  failed_at: null
                  error_message: null
      security:
      - ApiKey: []
    post:
      tags:
      - WAF
      summary: Create WAF binding
      description: Create a WAF binding for a domain you own (idempotent - returns the existing one).
      operationId: waf_create_binding
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WafBindingCreate'
            example:
              domain: example.com
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                id: 3
                domain: example.com
                status: pending
                created: true
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - ApiKey: []
  /v1/waf/domains/{waf_domain_id}/security:
    get:
      tags:
      - WAF
      summary: WAF security state
      description: Threat-filtering engine state + active security preset for a WAF domain.
      operationId: waf_security
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                engine_on: true
                active_preset: balanced
                available_presets:
                - 'off'
                - basic
                - balanced
                - strict
                service_present: true
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/waf/domains/{waf_domain_id}/security/engine:
    post:
      tags:
      - WAF
      summary: Toggle threat filtering
      description: Turn the WAF threat-filtering (ModSecurity) engine on or off for a domain.
      operationId: waf_toggle_engine
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WafEngine'
            example:
              enabled: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                enabled: true
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/waf/domains/{waf_domain_id}/enable:
    post:
      tags:
      - WAF
      summary: Enable WAF
      description: 'Turn the WAF on for a domain (routes it through the Servera edge). Runs

        asynchronously - poll the status endpoint.'
      operationId: waf_enable
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WafEnable'
            example:
              reverse_proxy_host: null
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                accepted: true
                poll: /v1/waf/domains/3/status
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/waf/domains/{waf_domain_id}/disable:
    post:
      tags:
      - WAF
      summary: Disable WAF
      description: Turn the WAF off for a domain.
      operationId: waf_disable
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                accepted: true
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/waf/domains/{waf_domain_id}/logs:
    get:
      tags:
      - WAF
      summary: WAF traffic logs
      description: 'Recent WAF traffic logs for a domain (hours: 1-720).'
      operationId: waf_logs
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      - name: hours
        in: query
        required: false
        schema:
          type: integer
          default: 24
          title: Hours
        description: Look-back window in hours (1–720).
      - name: status_min
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Status Min
        description: Only include log lines with an HTTP status code ≥ this.
      - name: status_max
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Status Max
        description: Only include log lines with an HTTP status code ≤ this.
      - name: cache_status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Cache Status
        description: Filter WAF logs by cache result (HIT, MISS, BYPASS, EXPIRED, …).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                logs:
                - time: '2026-08-19T09:00:00'
                  ip: 203.0.113.7
                  status: 403
                  method: GET
                  url: /wp-login.php
                  country: US
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/waf/domains/{waf_domain_id}/security/preset-components:
    get:
      tags:
      - WAF
      summary: Preset components
      description: What a security preset does, broken into toggleable rule components.
      operationId: waf_preset_components
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      - name: key
        in: query
        required: true
        schema:
          type: string
          title: Key
        description: Security-preset key (e.g. `basic`, `balanced`, `strict`).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                key: balanced
                components:
                - id: sqli
                  label: SQL injection
                  rules:
                  - '942100'
                disabled: []
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/waf/domains/{waf_domain_id}/security/preset:
    post:
      tags:
      - WAF
      summary: Apply security preset
      description: Apply a security preset (optionally switching off named rule components).
      operationId: waf_apply_preset
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WafPreset'
            example:
              preset: balanced
              disabled_components: []
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                applied_preset: balanced
                disabled: []
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/waf/domains/{waf_domain_id}/advanced:
    get:
      tags:
      - WAF
      summary: Get advanced rules
      description: Advanced-mode custom rules (bypass endpoints + rule exclusions).
      operationId: waf_get_advanced
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                active_preset: balanced
                bypass: []
                exclusions: []
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - WAF
      summary: Set advanced rules
      operationId: waf_put_advanced
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WafAdvanced'
            example:
              bypass:
              - /health
              exclusions: []
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                bypass: []
                exclusions: []
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Save and apply advanced WAF rules — custom bypass endpoints and rule exclusions.
  /v1/waf/domains/{waf_domain_id}/bot-policy:
    get:
      tags:
      - WAF
      summary: Get bot policy
      description: Known-bot catalog + this domain's allow/block choice for each.
      operationId: waf_bot_policy_get
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                catalog:
                - key: googlebot
                  group: search
                  label: Googlebot
                  default: allow
                policy:
                  googlebot: allow
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - WAF
      summary: Set bot policy
      operationId: waf_bot_policy_set
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WafBotPolicy'
            example:
              policy:
                googlebot: allow
                gptbot: block
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                policy:
                  googlebot: allow
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      description: Set the per-bot allow/block policy for a WAF domain (a partial map is fine — unset bots keep their default).
  /v1/waf/domains/{waf_domain_id}/lists:
    get:
      tags:
      - WAF
      summary: Get IP/country lists
      description: Allow/block lists (IP and country) for a WAF domain.
      operationId: waf_lists_get
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                lists:
                  ip-allow:
                    count: 1
                    entries:
                    - value: 203.0.113.7
                      comment: office
                  ip-block:
                    count: 0
                    entries: []
                  country-allow:
                    count: 0
                    entries: []
                  country-block:
                    count: 1
                    entries:
                    - value: CN
                      comment: ''
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/waf/domains/{waf_domain_id}/lists/{kind}:
    put:
      tags:
      - WAF
      summary: Replace a list
      description: 'Replace a list. `kind`: ip-allow | ip-block | country-allow | country-block.'
      operationId: waf_lists_set
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      - name: kind
        in: path
        required: true
        schema:
          type: string
          title: Kind
        description: 'List kind: `ip-allow`, `ip-block`, `country-allow`, or `country-block`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WafListEntries'
            example:
              entries:
              - value: 203.0.113.7
                comment: office
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                waf_domain_id: 3
                kind: ip-allow
                entries:
                - value: 203.0.113.7
                  comment: office
                mirror_ok: true
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/waf/domain-map:
    get:
      tags:
      - WAF
      summary: Domain → WAF binding map
      description: Every domain you own mapped to its WAF binding (null = no binding / WAF off).
      operationId: waf_domain_map
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                map:
                  example.com:
                    id: 3
                    domain: example.com
                    status: active
                    enabled_at: '2026-07-01T10:00:00+00:00'
                    disabled_at: null
                    failed_at: null
                    error_message: null
                  another.com: null
      security:
      - ApiKey: []
  /v1/waf/domains/{waf_domain_id}/status:
    get:
      tags:
      - WAF
      summary: WAF toggle status
      description: Enable/disable progress + DNS propagation state (poll after enable/disable).
      operationId: waf_status
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                id: 3
                domain: example.com
                status: active
                dns_flipped_at: '2026-07-01T10:05:00+00:00'
                propagation_remaining_s: 1800
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/waf/domains/{waf_domain_id}/ns-check:
    get:
      tags:
      - WAF
      summary: Nameserver pre-flight
      description: Check whether the domain uses Servera nameservers (needed before enabling the WAF).
      operationId: waf_ns_check
      security:
      - ApiKey: []
      parameters:
      - name: waf_domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Waf Domain Id
        description: WAF binding id (from GET /waf/domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                domain: example.com
                uses_our_ns: true
                seen:
                - ns1.dedikuotas.lt
                expected_any_of:
                - ns1.dedikuotas.lt
                - ns2.dedikuotas.lt
                expected_groups:
                - - ns1.dedikuotas.lt
                  - ns2.dedikuotas.lt
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WafPreset:
      properties:
        preset:
          type: string
          title: Preset
        disabled_components:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Disabled Components
      type: object
      required:
      - preset
      title: WafPreset
    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
    WafAdvanced:
      properties:
        bypass:
          items:
            type: string
          type: array
          title: Bypass
          default: []
        exclusions:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Exclusions
          default: []
      type: object
      title: WafAdvanced
    WafBotPolicy:
      properties:
        policy:
          additionalProperties: true
          type: object
          title: Policy
      type: object
      required:
      - policy
      title: WafBotPolicy
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WafEnable:
      properties:
        reverse_proxy_host:
          anyOf:
          - type: string
          - type: 'null'
          title: Reverse Proxy Host
      type: object
      title: WafEnable
    WafBindingCreate:
      properties:
        domain:
          type: string
          title: Domain
      type: object
      required:
      - domain
      title: WafBindingCreate
    WafListEntries:
      properties:
        entries:
          items: {}
          type: array
          title: Entries
      type: object
      required:
      - entries
      title: WafListEntries
    WafEngine:
      properties:
        enabled:
          type: boolean
          title: Enabled
      type: object
      required:
      - enabled
      title: WafEngine
  securitySchemes:
    ApiKey:
      type: http
      description: 'Your `sk_live_…` API key, sent as `Authorization: Bearer <key>`.'
      scheme: bearer