Skip to content
AxiomGrid

Engine micro-API & plugin contract

One HTTP contract for every engine.

Every marketplace plugin, Make module, n8n node, Apify actor, GitHub Action and custom backend talks to AxiomGrid through two typed surfaces: the stateless engine micro-API at https://autoking.mewebe.net and the cryptographic licence and update server. Query GET https://autoking.mewebe.net/api/v1/engines at any time to inspect the live operation catalogue.

Endpoint summaryv1 contract
Configured base URL
https://autoking.mewebe.net
Live catalogue discovery
GET https://autoking.mewebe.net/api/v1/engines
Engine operations
25 POST (22 deterministic · 3 AI)
Free validation / preview calls
7 operations at0 units
Licence & update surface
9 endpoints · AKL1 Ed25519

1 · Authentication & BYOK

Two credential modes, plus your own model key.

Authenticate directly with a bearer API key from automation workflows and server scripts, or send activated plugin licence headers from CMS, storefront and browser extensions.

Mode 1 · Direct API keyScripts & CI

Bearer API key

Pass Authorization: Bearer ak_live_<40 chars> on any POST /api/v1/engines/* request. Designed for Make modules, n8n nodes, Apify actors, GitHub Actions and custom backend integrations.

Draws from a prepaid credit balance; calls stop cleanly with HTTP 402 rather than accruing post-paid overages.

Mode 2 · Plugin licenceStore extensions

Activated licence headers

Marketplace plugins across WordPress, Shopware, Wix, Framer, Webflow and Chrome authenticate with three headers bound to their activated seat: X-License-Key, X-License-Sku and X-License-Fingerprint.

Fingerprints (domain, workspace ID or machine ID) are normalised before binding via /api/v1/licenses/activate.

BYOK · Optional on AI3 AI operations

Bring your own model key

Deterministic operations (22 of 25) never invoke a model. Operations marked AI accept byok: { provider, apiKey } for anthropic, openai or gemini.

With BYOK supplied, model tokens run on the customer's provider account and only the base unit applies (usage.byok: true).

Authentication headers (choose Mode 1 or Mode 2)HTTP headers
# Mode 1 — Direct bearer API key (Make, n8n, Apify, GitHub Actions, scripts)
POST /api/v1/engines/wcag/scan HTTP/1.1
Host: autoking.mewebe.net
Authorization: Bearer ak_live_0123456789abcdef0123456789abcdef01234567
Content-Type: application/json
Idempotency-Key: scan-20261118-0001

# Mode 2 — Activated marketplace plugin licence
POST /api/v1/engines/wcag/scan HTTP/1.1
Host: autoking.mewebe.net
X-License-Key: AG-XXXX-XXXX-XXXX-XXXX
X-License-Sku: wp-wcag-suite
X-License-Fingerprint: shop.example.co.uk
Content-Type: application/json
Optional BYOK field on AI-marked operationsJSON request body
{
  "imageUrl": "https://example.org/assets/product-hero.webp",
  "context": "Brushed stainless espresso tamper, 58.5 mm flat base",
  "lang": "en-GB",
  "byok": {
    "provider": "anthropic",
    "apiKey": "sk-ant-api03-..."
  }
}
// Supported providers: "anthropic" | "openai" | "gemini"
// Supplied keys execute that single upstream model call and are never logged.

2 · Request & response envelope

Consistent JSON on every response.

All engine endpoints accept application/json over POST and reply with a discriminated { ok: boolean } envelope, so plugins and workflow nodes share one parser.

Success envelope · HTTP 200 OKok: true
{
  "ok": true,
  "data": {
    "score": 92,
    "findings": []
  },
  "usage": {
    "operation": "wcag.scan",
    "units": 2,
    "balance": 248,
    "byok": false
  }
}
Failure envelope · HTTP 4xx / 5xxok: false
{
  "ok": false,
  "error": {
    "code": "insufficient_credits",
    "message": "Operation tenders.readiness requires 4 units; balance is 2.",
    "retryable": false
  }
}
Forward compatibilityStrict input · additive output

Ignore unknown keys inside data

Request bodies are validated strictly with zod (malformed payloads return 400 invalid_request). Inside data, clients must ignore unrecognised properties so additive fields never break deployed plugins. Binary exports (such as pdf.convert files) are returned as short-lived signed download URLs on https://autoking.mewebe.net.

Proxy & timeout safetyTreat non-envelopes as transient

Never revoke access on malformed gateway replies

Clients must treat any response that is not a well-formed JSON envelope — including CDN HTML error pages, captive-portal redirects, corporate firewall blocks or socket timeouts — as transient (retryable: true). Only an explicit terminal code inside a valid error envelope clears a cached licence token.

3 · Error codes & client resilience

Eleven typed codes and safe fallbacks.

Both the engine micro-API and the licence server share LICENSE_ERROR_CODES from @repo/license-sdk. Five codes are terminal for an entitlement; the other six must preserve cached subscriber access.

Complete LICENSE_ERROR_CODES reference (11 codes)

Terminal codes match TERMINAL_ERROR_CODES in @repo/license-sdk

  • invalid_requestHTTP 400
    Keep cached tokenRetryable: false

    Request JSON body or query string failed strict zod schema validation.

    Inspect the validation message, fix the malformed or missing fields before calling again, and keep any cached plugin entitlement intact.

  • invalid_keyHTTP 401
    Terminal · clear tokenRetryable: false

    The bearer API key or licence key does not exist or failed normalisation.

    Clear any cached AKL1 entitlement token for this SKU and prompt the user to check or replace their API or licence key.

  • insufficient_creditsHTTP 402
    Keep cached tokenRetryable: false

    Prepaid credit balance is smaller than the operation cost (checked before any model runs).

    Keep the subscription entitlement active, surface topUpUrl from /api/v1/licenses/balance, or let the user supply a BYOK provider key.

  • wrong_skuHTTP 403
    Terminal · clear tokenRetryable: false

    The licence key is valid on the platform but was issued for a different plugin SKU.

    Clear the cached token for this plugin SKU and ask the customer to enter a licence issued for the installed SKU.

  • revokedHTTP 403
    Terminal · clear tokenRetryable: false

    The licence has been cancelled, refunded or administratively revoked.

    Clear the cached AKL1 token immediately and gate paid plugin features behind activation.

  • expiredHTTP 403
    Terminal · clear tokenRetryable: false

    The paid billing period ended without renewal and is past any grace window.

    Clear the cached AKL1 token and direct the customer to manageUrl so they can renew billing.

  • trial_endedHTTP 403
    Terminal · clear tokenRetryable: false

    The 14-day full-feature trial period has ended without converting to a paid plan.

    Clear the cached trial token and present the upgrade link (manageUrl) without deleting local plugin settings.

  • not_activatedHTTP 403
    Keep cached tokenRetryable: false

    The licence key has not yet been bound to this site, workspace or machine fingerprint.

    Call POST /api/v1/licenses/activate for the current normalised fingerprint before calling consume or engine endpoints.

  • activation_limitHTTP 409
    Keep cached tokenRetryable: false

    All permitted seat activations (activations.max) on this licence are already bound.

    Ask the user to deactivate an old workspace via POST /api/v1/licenses/deactivate or add seats via manageUrl.

  • rate_limitedHTTP 429
    Keep cached tokenRetryable: true · backoff

    Per-key or per-licence request budget for the current rate-limit window is exhausted.

    Preserve cached entitlement and retry with exponential backoff plus random jitter, honouring the Retry-After header.

  • server_errorHTTP 5xx
    Keep cached tokenRetryable: true · backoff

    Transient upstream or platform fault; always returned with retryable: true.

    Never clear cached entitlement. Fall back to offline token verification during grace and retry with exponential backoff plus jitter.

4 · Idempotency & rate-limit headers

Single-charge retries and clear headers.

Network drops happen in serverless functions and store webhooks. Idempotency keys guarantee at-most-once unit billing across retries, while rate-limit headers tell callers exactly when to resume.

Transport & throttling headers

  • X-RateLimit-LimitResponse

    Format: Integer

    Maximum number of requests permitted for the caller in the active window.

  • X-RateLimit-RemainingResponse

    Format: Integer

    Remaining requests permitted in the active window before HTTP 429 throttling begins.

  • X-RateLimit-ResetResponse

    Format: Unix seconds

    UTC epoch timestamp (in seconds) when the current rate-limit window resets.

  • Retry-AfterResponse

    Format: Integer seconds (HTTP 429)

    Minimum wait time in seconds before retrying a throttled call. Clients cap honouring values to 60s and add jitter when absent.

  • Idempotency-KeyRequest (POST)

    Format: 8–128 ASCII chars

    Optional on every engine POST (and required as idempotencyKey in /api/v1/licenses/consume). Replaying the same key returns the stored outcome and charges units once.

Client retry discipline

Backoff with jitter + same Idempotency-Key

  • Generate one key per logical job: Use a deterministic job key or UUID (8–128 characters) and keep the exact same Idempotency-Key across every retry of that job so replayed calls return the cached result without a second debit.
  • Honour Retry-After on HTTP 429: When Retry-After is present, wait that number of seconds (capped at 60s in our SDK) before retrying.
  • Add random jitter on fallback backoff: When Retry-After is absent on a 429 or 5xx, step through 0.5s → 1s → 2s (capped at 15s) with uniform jitter so concurrent workers do not stampede at window reset.

5 · Engine operations (25 endpoints)

All twenty-five engine operations.

Every operation is a stateless POST under /api/v1/engines/<path>. Deterministic checks never invoke a language model; operations badged AI accept optional BYOK credentials.

Live discovery · GET https://autoking.mewebe.net/api/v1/enginesHTTP 200 OK
// Request:  GET https://autoking.mewebe.net/api/v1/engines
// Response: returns every active operation, its path, credit unit cost, AI flag and billing unit
{
  "ok": true,
  "operations": [
    { "id": "pdf.convert", "path": "pdf/convert", "units": 5, "ai": false, "per": "call" },
    { "id": "pdf.preview", "path": "pdf/preview", "units": 0, "ai": false, "per": "call" },
    { "id": "wcag.scan", "path": "wcag/scan", "units": 2, "ai": false, "per": "call" },
    { "id": "tenders.readiness", "path": "tenders/readiness", "units": 4, "ai": true, "per": "call" },
    { "id": "translate.batch", "path": "translate/batch", "units": 1, "ai": true, "per": "1k_chars" }
    // ...all 25 operations listed in the table below
  ]
}

Complete micro-API catalogue · 25 POST operations

Required request fields listed first; optional fields suffixed with ?

  • pdf.convert
    5 unitsDeterministic

    Document conversion

    POST/api/v1/engines/pdf/convert

    Request fields (required first)
    fileBase64 | fileUrl, targets: ("shopify" | "woocommerce" | "xero-bill" | "xero-invoice" | "netsuite" | "xlsx" | "json")[], locale?
    Response data shape
    { confidence, rows: Row[], validation: { passed, failed, issues[] }, files: { target, filename, contentType, url }[] }
  • pdf.preview
    0 unitsDeterministic

    Document conversion

    POST/api/v1/engines/pdf/preview

    Request fields (required first)
    Same as pdf.convert (fileBase64 | fileUrl, targets[], locale?)
    Response data shape
    First 10 rows only: { confidence, rows, validation, hiddenRowCount }
  • wcag.scan
    2 unitsDeterministic

    Accessibility (WCAG 2.2)

    POST/api/v1/engines/wcag/scan

    Request fields (required first)
    url, viewport?: "mobile" | "desktop"
    Response data shape
    { score, findings: { ruleId, criterion, level, impact, count, help, nodes: { html, target }[] }[] }
  • wcag.patch
    3 unitsDeterministic

    Accessibility (WCAG 2.2)

    POST/api/v1/engines/wcag/patch

    Request fields (required first)
    url | html, platform?: "shopify" | "wordpress" | "wix" | "webflow" | "shopware" | "html"
    Response data shape
    { diff, css, js, instructions[] }
  • wcag.statement
    1 unitDeterministic

    Accessibility (WCAG 2.2)

    POST/api/v1/engines/wcag/statement

    Request fields (required first)
    url, organisation, contactEmail, countryCode, lang?
    Response data shape
    { html, markdown }
  • dpp.build
    1 unitDeterministic

    Product passports & e-invoicing

    POST/api/v1/engines/dpp/build

    Request fields (required first)
    product (DPP model), resolverBase?
    Response data shape
    { jsonLd, digitalLink, issues[] }
  • dpp.qr
    0 unitsDeterministic

    Product passports & e-invoicing

    POST/api/v1/engines/dpp/qr

    Request fields (required first)
    digitalLink | gtin (+ lot?, serial?), format?: "svg" | "png", size?
    Response data shape
    { digitalLink, svg?, pngBase64? }
  • dpp.validate
    0 unitsDeterministic

    Product passports & e-invoicing

    POST/api/v1/engines/dpp/validate

    Request fields (required first)
    jsonLd | product
    Response data shape
    { valid, issues[] }
  • einvoice.build
    1 unitDeterministic

    Product passports & e-invoicing

    POST/api/v1/engines/einvoice/build

    Request fields (required first)
    invoice (EN 16931 model), format: "peppol-bis-3" | "xrechnung" | "zugferd" | "verifactu" | "ksef"
    Response data shape
    { xml, filename, violations[] }
  • einvoice.validate
    0 unitsDeterministic

    Product passports & e-invoicing

    POST/api/v1/engines/einvoice/validate

    Request fields (required first)
    xml, format?
    Response data shape
    { valid, violations: { rule, severity, message, location }[] }
  • vat.validate
    0 unitsDeterministic

    VAT & Omnibus pricing

    POST/api/v1/engines/vat/validate

    Request fields (required first)
    vatId, checkVies?: boolean
    Response data shape
    { syntaxValid, countryCode, vies?: { valid, name, address } }
  • omnibus.lowest-price
    0 unitsDeterministic

    VAT & Omnibus pricing

    POST/api/v1/engines/omnibus/lowest-price

    Request fields (required first)
    observations: { at, priceMinor }[], currency, locale?
    Response data shape
    { lowest30dMinor, compliant, displayText }
  • llms.compile
    3 unitsDeterministic

    AI search & structured data

    POST/api/v1/engines/llms/compile

    Request fields (required first)
    url, maxPages?
    Response data shape
    { llmsTxt, llmsFullTxt, pages: number, issues[] }
  • llms.validate
    0 unitsDeterministic

    AI search & structured data

    POST/api/v1/engines/llms/validate

    Request fields (required first)
    text
    Response data shape
    { valid, errors[] }
  • jsonld.build
    2 unitsDeterministic

    AI search & structured data

    POST/api/v1/engines/jsonld/build

    Request fields (required first)
    url | page ({ type, fields })
    Response data shape
    { graph, issues[] }
  • dmarc.analyse
    1 unitDeterministic

    Email & domain security

    POST/api/v1/engines/dmarc/analyse

    Request fields (required first)
    domain
    Response data shape
    { score, spf, dkim, dmarc, bimi, fixes: { host, type, value, ttl }[] }
  • tenders.search
    1 unitDeterministic

    Procurement & public records

    POST/api/v1/engines/tenders/search

    Request fields (required first)
    sources: ("contracts-finder" | "find-a-tender" | "ted" | "sam")[], cpv?, naics?, region?, publishedFrom?, limit?
    Response data shape
    { notices: TenderNotice[], cursor }
  • tenders.readiness
    4 unitsAI · BYOK

    Procurement & public records

    POST/api/v1/engines/tenders/readiness

    Request fields (required first)
    noticeUrl | documentText, supplierProfile?, byok?
    Response data shape
    { gates[], rubric[], goNoGo, skeletonMarkdown, disclaimer }
  • email.verify
    1 unitDeterministic

    Email & domain security

    POST/api/v1/engines/email/verify

    Request fields (required first)
    email
    Response data shape
    { verdict, mx, freemail, role }
  • stack.fingerprint
    1 unitDeterministic

    Web & brand intelligence

    POST/api/v1/engines/stack/fingerprint

    Request fields (required first)
    url
    Response data shape
    { platforms: string[], tools: string[] }
  • pricing.diff
    2 unitsDeterministic

    Web & brand intelligence

    POST/api/v1/engines/pricing/diff

    Request fields (required first)
    url, previous?: PricingSnapshot
    Response data shape
    { snapshot, changes[] }
  • planning.search
    2 unitsDeterministic

    Procurement & public records

    POST/api/v1/engines/planning/search

    Request fields (required first)
    postcode, radiusKm?, years?
    Response data shape
    { applications[], flood, epc[], attribution[] } (England and Wales only)
  • trademark.watch
    2 unitsDeterministic

    Web & brand intelligence

    POST/api/v1/engines/trademark/watch

    Request fields (required first)
    mark, niceClasses?: number[], jurisdictions?: ("UK" | "US")[]
    Response data shape
    { conflicts[], classes[] }
  • alt-text.generate
    2 unitsAI · BYOK

    AI media & localisation

    POST/api/v1/engines/alt-text/generate

    Request fields (required first)
    imageUrl, context?, lang?, byok?
    Response data shape
    { alt }
  • translate.batch
    Units: 1 per 1,000 charsAI · BYOK

    AI media & localisation

    POST/api/v1/engines/translate/batch

    Request fields (required first)
    texts: string[], source?, target, html?: boolean, byok?
    Response data shape
    { translations: string[] }

6 · Worked examples

Copy-paste calls in three languages.

End-to-end requests and sample HTTP 200 envelopes for dmarc.analyse, wcag.scan and einvoice.build against https://autoking.mewebe.net, written in curl, Node.js fetch and PHP.

dmarc.analyse1 unit · Deterministic

1. Domain email authentication audit (dmarc.analyse)

Inspect live SPF, DKIM, DMARC and BIMI records for a domain and receive copy-ready DNS fix records with TTLs.

POST https://autoking.mewebe.net/api/v1/engines/dmarc/analyse
curlShell
curl -sS -X POST "https://autoking.mewebe.net/api/v1/engines/dmarc/analyse" \
  -H "Authorization: Bearer ak_live_0123456789abcdef0123456789abcdef01234567" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: dmarc-example-com-20261118" \
  -d '{
    "domain": "example.com"
  }'
Node.js (native fetch)Node 22+ · ESM
const res = await fetch("https://autoking.mewebe.net/api/v1/engines/dmarc/analyse", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": "dmarc-example-com-20261118",
  },
  body: JSON.stringify({ domain: "example.com" }),
});

const payload = await res.json();
if (!res.ok || !payload.ok) {
  throw new Error(`${payload.error?.code ?? res.status}: ${payload.error?.message ?? "Request failed"}`);
}
console.log(payload.data.score, payload.data.fixes);
PHP (ext-curl)PHP 8.1+
<?php
declare(strict_types=1);

$ch = curl_init('https://autoking.mewebe.net/api/v1/engines/dmarc/analyse');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT        => 20,
    CURLOPT_HTTPHEADER     => [
        'Authorization: Bearer ' . getenv('API_KEY'),
        'Content-Type: application/json',
        'Idempotency-Key: dmarc-example-com-20261118',
    ],
    CURLOPT_POSTFIELDS     => json_encode(['domain' => 'example.com'], JSON_THROW_ON_ERROR),
]);

$raw = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

$envelope = json_decode((string) $raw, true, 512, JSON_THROW_ON_ERROR);
if ($status !== 200 || empty($envelope['ok'])) {
    throw new RuntimeException($envelope['error']['code'] ?? 'transient_gateway_error');
}
print_r($envelope['data']['fixes']);
Sample response · HTTP 200 OKapplication/json
{
  "ok": true,
  "data": {
    "domain": "example.com",
    "score": 48,
    "verdict": "spoofable",
    "summary": "DMARC policy is p=none (monitoring only); spoofing is not blocked.",
    "spf": {
      "status": "valid",
      "records": ["v=spf1 include:_spf.example.com ~all"],
      "lookupCount": 6,
      "allQualifier": "~all",
      "findings": []
    },
    "dkim": {
      "probed": ["default", "selector1", "google", "k1"],
      "validSelectors": ["selector1"],
      "weakestBits": 2048,
      "findings": []
    },
    "dmarc": {
      "present": true,
      "effectivePolicy": "none",
      "grade": "C",
      "strength": 45,
      "records": ["v=DMARC1; p=none; rua=mailto:dmarc@example.com"],
      "findings": []
    },
    "bimi": {
      "present": false,
      "ready": false,
      "record": null,
      "findings": []
    },
    "fixes": [
      {
        "host": "_dmarc",
        "fqdn": "_dmarc.example.com",
        "type": "TXT",
        "value": "v=DMARC1; p=quarantine; pct=25; adkim=r; aspf=r; rua=mailto:dmarc@example.com;",
        "valueSource": null,
        "ttl": 3600,
        "action": "replace",
        "reason": "Move from monitoring (p=none) to staged quarantine.",
        "optional": false
      }
    ],
    "rollout": [
      {
        "stage": 1,
        "title": "Monitor aggregate reports before enforcing",
        "policy": "p=quarantine; pct=25"
      }
    ],
    "scoreMeaning": "0 = hard to spoof, 100 = trivially spoofable",
    "mode": "live"
  },
  "usage": {
    "operation": "dmarc.analyse",
    "units": 1,
    "balance": 249,
    "byok": false
  }
}
wcag.scan2 units · Deterministic

2. Automated WCAG 2.2 AA page audit (wcag.scan)

Render a URL at mobile or desktop viewport width and return deterministic WCAG 2.2 criterion findings with offending DOM selectors.

POST https://autoking.mewebe.net/api/v1/engines/wcag/scan
curlShell
curl -sS -X POST "https://autoking.mewebe.net/api/v1/engines/wcag/scan" \
  -H "Authorization: Bearer ak_live_0123456789abcdef0123456789abcdef01234567" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: wcag-scan-checkout-mobile-01" \
  -d '{
    "url": "https://example.org/checkout",
    "viewport": "mobile"
  }'
Node.js (native fetch)Node 22+ · ESM
const res = await fetch("https://autoking.mewebe.net/api/v1/engines/wcag/scan", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": "wcag-scan-checkout-mobile-01",
  },
  body: JSON.stringify({
    url: "https://example.org/checkout",
    viewport: "mobile",
  }),
});

const payload = await res.json();
if (!res.ok || !payload.ok) {
  throw new Error(`${payload.error?.code ?? res.status}: ${payload.error?.message ?? "Scan failed"}`);
}
console.log(`Score: ${payload.data.score}/100`, payload.data.findings.length);
PHP (ext-curl)PHP 8.1+
<?php
declare(strict_types=1);

// Activated CMS plugins may send X-License-Key, X-License-Sku and X-License-Fingerprint instead of Authorization.
$ch = curl_init('https://autoking.mewebe.net/api/v1/engines/wcag/scan');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT        => 30,
    CURLOPT_HTTPHEADER     => [
        'Authorization: Bearer ' . getenv('API_KEY'),
        'Content-Type: application/json',
        'Idempotency-Key: wcag-scan-checkout-mobile-01',
    ],
    CURLOPT_POSTFIELDS     => json_encode([
        'url'      => 'https://example.org/checkout',
        'viewport' => 'mobile',
    ], JSON_THROW_ON_ERROR),
]);

$raw = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

$envelope = json_decode((string) $raw, true, 512, JSON_THROW_ON_ERROR);
if ($status !== 200 || empty($envelope['ok'])) {
    throw new RuntimeException($envelope['error']['code'] ?? 'transient_gateway_error');
}
echo 'WCAG score: ' . $envelope['data']['score'] . PHP_EOL;
Sample response · HTTP 200 OKapplication/json
{
  "ok": true,
  "data": {
    "url": "https://example.org/checkout",
    "score": 84,
    "grade": "B",
    "findings": [
      {
        "ruleId": "color-contrast",
        "criterion": "1.4.3",
        "level": "AA",
        "impact": "serious",
        "count": 2,
        "help": "Elements must meet minimum WCAG 2.2 AA contrast ratio thresholds.",
        "helpUrl": "https://dequeuniversity.com/rules/axe/4.10/color-contrast",
        "autoFixable": false,
        "nodes": [
          {
            "html": "<button class=\"promo-apply\">Apply voucher</button>",
            "target": ["form.checkout-summary > button.promo-apply"]
          }
        ]
      }
    ],
    "totals": {
      "violations": 1,
      "affectedNodes": 2,
      "critical": 0,
      "serious": 1,
      "moderate": 0,
      "minor": 0
    },
    "limitations": "Automated testing finds a subset of WCAG issues; a manual review is still needed for full conformance.",
    "mode": "live"
  },
  "usage": {
    "operation": "wcag.scan",
    "units": 2,
    "balance": 247,
    "byok": false
  }
}
einvoice.build1 unit · Deterministic

3. EN 16931 e-invoice generation (einvoice.build)

Compile a structured EN 16931 invoice model into Peppol BIS Billing 3.0, XRechnung, ZUGFeRD, Veri*factu or KSeF XML and run business-rule checks.

POST https://autoking.mewebe.net/api/v1/engines/einvoice/build
curlShell
curl -sS -X POST "https://autoking.mewebe.net/api/v1/engines/einvoice/build" \
  -H "Authorization: Bearer ak_live_0123456789abcdef0123456789abcdef01234567" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: einvoice-inv-2026-0042" \
  -d '{
    "format": "peppol-bis-3",
    "invoice": {
      "number": "INV-2026-0042",
      "issueDate": "2026-11-18",
      "dueDate": "2026-12-18",
      "typeCode": "380",
      "currency": "EUR",
      "buyerReference": "PO-99104",
      "seller": {
        "name": "Example Supplies Ltd",
        "vatId": "GB123456789",
        "electronicAddress": { "id": "4000001000005", "schemeId": "0088" },
        "address": { "line1": "10 High Street", "city": "London", "postalCode": "EC1A 1BB", "countryCode": "GB" }
      },
      "buyer": {
        "name": "Example Buyer GmbH",
        "vatId": "DE123456789",
        "electronicAddress": { "id": "4000002000004", "schemeId": "0088" },
        "address": { "line1": "Industriestr. 4", "city": "Berlin", "postalCode": "10115", "countryCode": "DE" }
      },
      "lines": [
        {
          "id": "1",
          "quantity": "10",
          "unitCode": "C62",
          "price": { "netPrice": "45.00" },
          "item": { "name": "Industrial sensor bracket" },
          "vat": { "category": "Z", "rate": "0" }
        }
      ]
    }
  }'
Node.js (native fetch)Node 22+ · ESM
const res = await fetch("https://autoking.mewebe.net/api/v1/engines/einvoice/build", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": "einvoice-inv-2026-0042",
  },
  body: JSON.stringify({
    format: "peppol-bis-3",
    invoice: {
      number: "INV-2026-0042",
      issueDate: "2026-11-18",
      dueDate: "2026-12-18",
      typeCode: "380",
      currency: "EUR",
      buyerReference: "PO-99104",
      seller: {
        name: "Example Supplies Ltd",
        vatId: "GB123456789",
        electronicAddress: { id: "4000001000005", schemeId: "0088" },
        address: { line1: "10 High Street", city: "London", postalCode: "EC1A 1BB", countryCode: "GB" },
      },
      buyer: {
        name: "Example Buyer GmbH",
        vatId: "DE123456789",
        electronicAddress: { id: "4000002000004", schemeId: "0088" },
        address: { line1: "Industriestr. 4", city: "Berlin", postalCode: "10115", countryCode: "DE" },
      },
      lines: [
        {
          id: "1",
          quantity: "10",
          unitCode: "C62",
          price: { netPrice: "45.00" },
          item: { name: "Industrial sensor bracket" },
          vat: { category: "Z", rate: "0" },
        },
      ],
    },
  }),
});

const payload = await res.json();
if (!res.ok || !payload.ok) {
  throw new Error(`${payload.error?.code ?? res.status}: ${payload.error?.message ?? "Build failed"}`);
}
console.log(payload.data.filename, payload.data.violations);
PHP (ext-curl)PHP 8.1+
<?php
declare(strict_types=1);

$payload = [
    'format'  => 'peppol-bis-3',
    'invoice' => [
        'number'         => 'INV-2026-0042',
        'issueDate'      => '2026-11-18',
        'dueDate'        => '2026-12-18',
        'typeCode'       => '380',
        'currency'       => 'EUR',
        'buyerReference' => 'PO-99104',
        'seller'         => [
            'name'              => 'Example Supplies Ltd',
            'vatId'             => 'GB123456789',
            'electronicAddress' => ['id' => '4000001000005', 'schemeId' => '0088'],
            'address'           => ['line1' => '10 High Street', 'city' => 'London', 'postalCode' => 'EC1A 1BB', 'countryCode' => 'GB'],
        ],
        'buyer'          => [
            'name'              => 'Example Buyer GmbH',
            'vatId'             => 'DE123456789',
            'electronicAddress' => ['id' => '4000002000004', 'schemeId' => '0088'],
            'address'           => ['line1' => 'Industriestr. 4', 'city' => 'Berlin', 'postalCode' => '10115', 'countryCode' => 'DE'],
        ],
        'lines'          => [
            [
                'id'       => '1',
                'quantity' => '10',
                'unitCode' => 'C62',
                'price'    => ['netPrice' => '45.00'],
                'item'     => ['name' => 'Industrial sensor bracket'],
                'vat'      => ['category' => 'Z', 'rate' => '0'],
            ],
        ],
    ],
];

$ch = curl_init('https://autoking.mewebe.net/api/v1/engines/einvoice/build');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT        => 20,
    CURLOPT_HTTPHEADER     => [
        'Authorization: Bearer ' . getenv('API_KEY'),
        'Content-Type: application/json',
        'Idempotency-Key: einvoice-inv-2026-0042',
    ],
    CURLOPT_POSTFIELDS     => json_encode($payload, JSON_THROW_ON_ERROR),
]);

$raw = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

$envelope = json_decode((string) $raw, true, 512, JSON_THROW_ON_ERROR);
if ($status !== 200 || empty($envelope['ok'])) {
    throw new RuntimeException($envelope['error']['code'] ?? 'transient_gateway_error');
}
file_put_contents($envelope['data']['filename'], $envelope['data']['xml']);
Sample response · HTTP 200 OKapplication/json
{
  "ok": true,
  "data": {
    "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"><!-- EN 16931 / Peppol BIS Billing 3.0 UBL 2.1 --></Invoice>",
    "filename": "INV-2026-0042-peppol.xml",
    "violations": [],
    "mode": "live"
  },
  "usage": {
    "operation": "einvoice.build",
    "units": 1,
    "balance": 246,
    "byok": false
  }
}

7 · Licence & signed update API

Offline Ed25519 tokens and signed updates.

Marketplace plugins verify entitlements offline with Ed25519 signatures, enforce consistent commercial guardrails, and check detached cryptographic signatures before installing self-hosted updates.

Licence & update server contract (9 endpoints)

Defined as zod schemas in @repo/license-sdk

  • POST/api/v1/licenses/activate

    Bind a licence key to a normalised site, workspace or machine fingerprint and issue a signed token.

    Request body / query
    { key, sku, fingerprint, label?, pluginVersion? }
    Response
    { ok: true, token, status: "trial" | "active" | "past_due", sku, expiresAt, trialEndsAt, credits, byok, features[], activations: { used, max }, manageUrl }
  • POST/api/v1/licenses/validate

    Refresh a cached entitlement before expiry and return a fresh signed AKL1 token.

    Request body / query
    { key, sku, fingerprint, pluginVersion? }
    Response
    Fresh EntitlementResponse envelope (same fields as /api/v1/licenses/activate).
  • POST/api/v1/licenses/deactivate

    Release an activation seat for the supplied fingerprint so it can be moved elsewhere.

    Request body / query
    { key, sku, fingerprint }
    Response
    { ok: true, activations: { used, max } }
  • POST/api/v1/licenses/consume

    Idempotently debit metered credits before running a billable plugin operation.

    Request body / query
    { key, sku, fingerprint, operation, units: 1..10000, idempotencyKey: 8..128 chars }
    Response
    { ok: true, charged, balance, replayed }
  • POST/api/v1/licenses/balance

    Read current prepaid credit balance, BYOK flag and self-serve credit top-up URL.

    Request body / query
    { key, sku }
    Response
    { ok: true, balance, byok, topUpUrl }
  • POST/api/v1/licenses/run

    Record boolean run telemetry (zero customer content) and receive the one-time review prompt after run 3.

    Request body / query
    { key, sku, fingerprint, operation, ok: boolean }
    Response
    { ok: true, successfulRuns, reviewPrompt: { url, message } | null }
  • GET/api/v1/licenses/public-key

    Fetch the 32-byte Ed25519 public key used to verify AKL1 tokens and AKR1 release signatures.

    Request body / query
    No query parameters
    Response
    { ok: true, algorithm: "Ed25519", publicKey }
  • GET/api/v1/updates/check

    Query the signed plugin release feed and receive Ed25519 signature metadata for verification.

    Request body / query
    ?sku=<sku>&version=<semver>&channel=<channel>&key=<key>&fingerprint=<fp>
    Response
    { ok: true, updateAvailable, latest: { sku, version, sha256, bytes, signature, changelog, publishedAt, minPlatformVersion, downloadUrl } | null }
  • GET/api/v1/updates/download

    Issue a short-lived signed redirect to the verified release archive for entitled licences.

    Request body / query
    ?sku=<sku>&version=<semver>&key=<key>&fingerprint=<fp>
    Response
    HTTP 302 redirect to short-lived signed archive URL (or licence error envelope).
AKL1 & AKR1 verificationEd25519 (RFC 8032)

Offline token & update verification

Activation and validation return a compact signed entitlement token: AKL1.<base64url(payload)>.<base64url(Ed25519 sig)>. Plugins verify the 64-byte signature over AKL1.<payload> against the embedded 32-byte public key before decoding JSON, then bind sku and the normalised fp fingerprint.

  • TypeScript / JS plugins: Use LicenseClient, verifyLicenseToken and verifyReleaseSignature from @repo/license-sdk.
  • PHP plugins (WordPress, Shopware): Verify natively via sodium_crypto_sign_verify_detached in bundled ext-sodium.
  • JVM / Kotlin plugins (JetBrains, Atlassian): Verify with standard java.security Ed25519 primitives; Google Apps Script add-ons validate via server round trip.
  • Signed release packages: Update checks verify AKR1\n<sku>\n<version>\n<sha256> before downloading or applying any release archive.
Commercial & resilience rulesEnforced in every plugin

Trial, grace window & review rules

Every plugin suite in our directory enforces the same lifecycle constants and billing safeguards so customers are never surprised by unexpected charges or disconnected during a transient outage.

  • 7-day token TTL + 14-day offline grace: Tokens live for 604,800s (refreshed proactively inside the final 2 days) and remain valid offline for a further 1,209,600s grace window if the licence server or network is unreachable.
  • 14-day full-feature trial: Every subscription plugin unlocks its complete feature set for 14 days, then transitions to a monthly or yearly plan (no permanent free tier).
  • Credit pre-check before AI calls: AI operations require BYOK or prepaid credits; a request that exceeds remaining balance fails with 402 insufficient_credits before any upstream model is invoked (never unlimited AI on flat plans).
  • Single non-incentivised review prompt: /api/v1/licenses/run returns reviewPrompt once — strictly after the 3rd successful run — linking only to the official marketplace listing and never offering rewards or incentives.

Shared TypeScript SDK · @repo/plugin-kit

Reference helpers used across TypeScript plugin suites

Zero duplicated glue

createMicroApi

createMicroApi({ baseUrl, auth, fetch?, maxRetries? }) → { call(), catalogue() }

Typed client for all 25 engine operations supporting bearer API keys or activated licence headers, AbortSignal cancellation and Idempotency-Key forwarding.

fetchWithBackoff

fetchWithBackoff(input, init?, { retries?, baseMs?, maxMs?, retryOn? })

Retries transient 429/5xx and network failures with exponential backoff and random jitter while honouring Retry-After.

createOAuthTokenManager

createOAuthTokenManager({ store, refresh, confirmRevocationAfter? })

Single-flight per-account OAuth token refresh lock; only marks an integration revoked after confirmed invalid_grant responses.

verifyHmacSignature

verifyHmacSignature({ payload, signature, secret, algorithm?, timestamp? })

Constant-time SHA-256 / SHA-1 webhook signature verifier with replay-window timestamp tolerance.

createByokVault

createByokVault({ store, seal? }) → { set(), get(), clear(), configured() }

Stores customer Anthropic, OpenAI and Gemini keys in sealed plugin storage for BYOK operations.

featureGate & trialBanner

featureGate(entitlement, feature) · trialBanner(entitlement, now?)

Consistent feature-flag gating and remaining trial-day banner calculations across every plugin UI.

Start integrating

Test any engine in minutes.

Install a pre-built marketplace plugin with a 14-day full-feature trial, run an interactive browser preview on your own data, or contact support for API key provisioning.