Skip to main content
Developer Documentation

Documentation

API reference and integration guides for the hosted service and for self-hosted installs.

Getting Started

Start on the hosted service or self-host

The steps below use the hosted service: create an account, generate an API key, connect your own LLM provider, and route your first request through the gateway. To run G8KEPR inside your own network instead (Community, Team or Enterprise), see Self-Hosted at the end of this section.
1

Create your account

Sign up at app.g8kepr.com/auth/signup with email + password, or single sign-on via Google, GitHub, or Microsoft. A 30-day Team trial (extend to 90 days free) is provisioned automatically — no credit card required.

2

Create an API key

In the dashboard, open Dashboard → API Keys (/dashboard/api-keys) and create a key. Keys are formatted gk_org_<org8>_<token> and are shown only once at creation — copy it somewhere safe. Each key carries a scope: read, write, or admin. Send it either as Authorization: Bearer <key> or as an X-API-Key: <key> header.

3

Connect an LLM provider (BYOK)

Before completions will work, add your own upstream provider key (for example your OpenAI or Anthropic key) under Dashboard → AI Gateway → Providers. Bring-your-own-key means G8KEPR uses your key to reach the model, so your provider spend and data stay on your own account.

Required before your first completion

Until at least one provider is configured, the gateway returns HTTP 502 [NO_PROVIDERS] No providers configured. Add a provider key first.
4

Send your first request

POST to the gateway completions endpoint with your API key as a Bearer token. provider, model, and messages are the essentials; max_tokens, temperature, stream, tools, conversation_id, and sources (for RAG grounding) are optional.

bash
curl -X POST https://api.g8kepr.com/api/v1/gateway/completions \
  -H "Authorization: Bearer gk_org_ab12cd34_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "openai",
    "model": "gpt-4o-mini",
    "messages": [
      { "role": "user", "content": "Hello, G8KEPR!" }
    ]
  }'

The gateway returns its own response envelope — content is a top-level string. This is not the OpenAI response shape, so it is not a drop-in base_url swap.

Responsejson
{
  "request_id": "req_9f2c8ab1",
  "provider": "openai",
  "model": "gpt-4o-mini",
  "content": "Hello! How can I help you today?",
  "finish_reason": "stop",
  "usage": { "prompt_tokens": 12, "completion_tokens": 9, "total_tokens": 21 },
  "cost_usd": 0.0000042,
  "latency_ms": 512,
  "verification": null,
  "response_filter": null
}
5

See your results

Open Dashboard → AI Gateway for request Analytics and Costs, and Dashboard → Security for any threats detected on your traffic.

Plans & billing

Every account starts on a 30-day Team trial (extend to 90 days free). Upgrade, downgrade, or add payment details anytime under Dashboard → Billing.

PlanPriceFindings / moHighlights
Community$0100KAll 4 pillars · 1 sensor · self-hosted (free signed licence)
Team$2,000 / month10MAll 4 pillars · 15 sensors · self-hosted or hosted
EnterpriseContact salesCustomSSO/SAML · BAA/DPA · on-prem / air-gap

Self-Hosted

G8KEPR can run entirely inside your own network — a collector plus sensors deployed via Helm or Docker Compose, wired to your own Postgres and Redis, with signed pattern packs that ship with each release. The Helm charts and container images are provided to customers with their licence; they are not on a public registry. Every tier can self-host: Community is self-hosted only, under a free signed licence with no G8KEPR account; Team is self-hosted or hosted; Enterprise adds on-prem and air-gapped deployment. Email support@g8kepr.com for a Community licence. SSO/SAML, the HIPAA and PCI features, and BAA/DPA signing are Enterprise features — contact sales to scope an Enterprise deployment.

Architecture Overview

Customer-VPC Topology

Customer-VPC Topology (v1 self-hosted)

Everything inside the dashed border runs in the customer's own network. G8KEPR has no inbound access.

Customer VPC

Sensors (stateless, independent, per-detector class)

sensor-mcp

Tool poisoning, compound and prompt-injection detectors

sensor-ai-gateway

Prompt injection (DeBERTa) + Presidio PII redactor

sensor-verification

Grounding vs. sources, schema, secrets + EU AI Act Art. 5 patterns

mTLS · CloudEvents JSON · POST /findings
Collector
single deployment · stateful

verify sig

Ed25519 · JCS

dedup

24h Redis cache

compound corr.

5-min window

persist

threat_events

writes
serves

Customer-owned data plane

Postgres 14+findings · audit · users
Redis 7+dedup · windows · sessions

Operator surface

Dashboard (Next.js)

Built-in auth (TOTP) + OIDC opt-in · role-based access

What G8KEPR runs (outside your VPC)

Pattern packs and licence

ship with each release · verified (Ed25519) at start · no automatic feed

Telemetry endpoint

opt-in only · default OFF

Air-gap deploys leave telemetry off; the licence and pattern packs arrive with the release.

Wire Format Flow

Wire Format Flow

How a single threat finding gets from a sensor pod to the dashboard, end-to-end.

Sensor side
1. Detect

Detector matches pattern (e.g. tool_poisoning)

2. Build envelope

CloudEvents 1.0 + specversion, subject=correlation_id

3. Canonicalize + sign

JCS (RFC 8785) → Ed25519 sig + nonce

4. Spool or send

Online → POST /findings · offline → disk spool (24h max)

mTLS · HTTPS POST · CloudEvents JSON
Collector side

5. Verify sig

Ed25519 + sensor cert · reject on mismatch

6. Schema check

Accept N or N-1 · reject N+1 with wire_version_unsupported

7. Dedup

Redis cache, 24h TTL per idempotency_key

8. Compound corr.

5-min window · 9 named patterns

9. Persist + audit

threat_events row

Customer Postgres

threat_events, audit_log, mcp_sessions — RLS policies

Dashboard reads the stored findings

Live page reads from Postgres on mount + window focus (no polling)

Failure-mode contracts

  • parse_error · sensor still emits a finding so audit trail is intact
  • collector_unreachable · sensor spools to disk, replays on reconnect
  • spool_full · low/medium severity dropped first; critical always preserved
  • clock_skew > 30s · finding accepted, audit warning logged, NTP recommended

Sensor ↔ Collector Contract

Sensors are stateless; the collector is the only stateful component and the only thing that touches Postgres or Redis. Every interaction between the two is on this diagram — anything not listed does not happen (per ADR-002).

Sensor ↔ Collector Contract

Every interaction between the two halves. Anything not on this list does not happen.

Sensor

Owns

  • Detector logic (regex / ML / heuristic)
  • Ed25519 signing (its mTLS cert key)
  • Disk spool (500MB / 24h max, per ADR-015)
  • Per-pod identity (instance_id in PVC)

Never touches

  • · Customer Postgres / Redis
  • · Other sensors (no peer awareness)
  • · License signing key

POST /sensors/register

ADR-012

identity + capabilities + version

on boot

POST /sensors/heartbeat

ADR-012

load · queue depth · last-finding-ts

every 30s

POST /findings (mTLS · CloudEvents · Ed25519 sig)

ADR-003

single or /findings/batch · max 100 per batch

on every detection

GET /sensors/{id}/config

ADR-006

pulls latest config when SIGHUP missed

on reload signal

replay_rate_limit response

ADR-015

envelopes/sec · default 100

after partition

4xx ingest reject

ADR-003

wire_version_unsupported · sig_invalid · license_expired

on policy violation

remote config push (rare)

ADR-006

mute pattern · raise severity threshold · pause sensor

operator action

Collector

Owns

  • License verification (+ signed CRL file)
  • Dedup cache (Redis, 24h TTL)
  • Compound correlation (5-min window)
  • Persisted to threat_events

Also serves

  • · Dashboard ingress (Next.js, ADR-019)
  • · Postgres writes (org-scoped, RLS policies)
  • · Sensor inventory page

v1 contract. v2 adds: collector HA via leader election, sensor-to-sensor mesh for compound early-emit, customer-built sensor SDK (ADR-013).

Deployment Shapes

Kubernetes (Helm)

The recommended production path. Umbrella chart deploys collector + per-sensor sub-charts. The installer issues each sensor its certificate, and the collector requires it.

ProductionmTLSRolling upgrade

Docker Compose

Single-host installs (lab, demo, small SOC). The installer makes the sensor CA; cert-manager is not needed. Brief downtime on upgrade.

Lab / demoSingle hostInstall CA

Air-gap (offline)

Zero outbound. Pattern packs and license delivered via signed bundle. Telemetry default-OFF aligns naturally.

RegulatedZero outboundSigned bundle

Docker Compose layout

Docker Compose Layout — single host

For lab, demo, or small SOC. The installer makes the sensor CA; cert-manager is not needed. Brief downtime on upgrade.

Docker host
network: g8kepr-net

Install CA

made by the installer · one client certificate per sensor · no automatic renewal

License + secrets

./secrets/license.lic · .env (DATABASE_URL, REDIS_URL)

sensor-mcp

image: sensor-mcp (provided to customers)

vol: spool · 500Mi

sensor-ai-gateway

image: sensor-ai-gateway (provided to customers)

vol: spool · 500Mi

sensor-verification

image: sensor-verification (provided to customers)

vol: spool · 500Mi

mTLS · POST /findings
g8kepr-collector
port 8443 → ingress · 3002 → dashboard

image: backend (provided to customers) · single replica

Postgres 14+ (customer)

DATABASE_URL=postgresql://…

Not in compose. You provide the connection string.

Redis 7+ (customer)

REDIS_URL=redis://…

Optional same-host redis container for demo only.

5containers
~2CPU min
~3 GBRAM min
~5 GBdisk (spools)

Kubernetes / Helm layout

Kubernetes Layout — umbrella Helm chart

Single namespace · one collector + per-sensor sub-charts · the installer issues one certificate per sensor and the collector's TLS terminator requires it.

Kubernetes cluster
v1.27+
namespace: g8keprhelm release: g8kepr

cert-manager Issuer

customer-private CA

Ingress (dashboard)

g8kepr.acme.internal · TLS · OIDC or built-in auth

charts/sensor-* sub-charts (per-detector class)

sensor-mcp

Deployment · 1 replica · HPA off (v1)

PVC: 500Mi (spool)

sensor-ai-gateway

Deployment · 1 replica · HPA off (v1)

PVC: 500Mi (spool)

sensor-verification

Deployment · 2 replicas · CPU, no model

PVC: 500Mi (spool)

mTLS (install CA certificates) · POST /findings · POST /sensors/heartbeat

charts/collector sub-chart

collector
Deployment · 1 replica · v1 (HA in v2)

verify sig

dedup 24h

compound 5min

audit chain

+ Migration Job (Alembic) runs once at install · ServiceMonitor for Prometheus

External services (customer-owned, NOT in chart)

Postgres 14 / 15 / 16

RDS · Cloud SQL · in-cluster operator · bare metal

existingSecret: g8kepr-db

Redis 7+

Elasticache · Memorystore · in-cluster · external

existingSecret: g8kepr-redis

Umbrella chart: g8kepr-umbrella (provided to customers; not on a public Helm repo)

charts/collector + charts/sensor-mcp + charts/sensor-ai-gateway + charts/sensor-verification — one helm release, four sub-deployments.

4deployments
~2CPU min
~4 GBRAM min
2 GBPVC total

Detection Capabilities

Coverage Map

What lands across the four pillars. Categorical inventory only — specific patterns, scoring weights, and evasion countermeasures are not publicly enumerated. Licensed customers see the full pattern catalog in the dashboard pattern library.

94,000+

labeled attack samples

ML training corpus · 24 categories

9

compound chains

multi-vector named patterns

14

LLM providers

cost-aware routing

12

compliance frameworks

+ 8 reference · EU AI Act · HIPAA · SOC 2

OWASP Top 10 + WAF

API Security

SQL injection · XSS · path traversal · command injection · SSRF · auth bypass · mass assignment · JWT manipulation

ML detector · 94,000+ samples · 24 categories

Shadow & zombie APIs

API Security

Detects undocumented endpoints from live traffic · flags deprecated routes still in use

Bot detection

API Security

Behavioral baseline · credential stuffing · scraping cadence

Tool poisoning

MCP Security

Schema-hash diff between registered tool definition and runtime invocations — catches rug-pull mutations

Compound exploit chains

MCP Security

Lethal Trifecta · Injection Campaign · Credential Exfiltration Chain · Hidden-Instruction Description · Shadowed Privilege Tool · Phishing Tool · Obfuscated Execution · Shadow Egress · Cross-Surface Campaign

9 named multi-vector patterns

Prompt injection

MCP Security

Direct + jailbreak families · LLM-2026 patterns (Crescendo · Skeleton Key · DAN) · Unicode / leet / base64 normalization

Multi-provider routing

AI Gateway

14 providers across four tiers · cost-aware routing · per-provider circuit breakers

14 LLM providers

PII redaction

AI Gateway

Microsoft Presidio integration · email · IP · SSN · credit-card · medical record · custom recognizers

Cost anomalies

AI Gateway

Per-org budget caps · token-spend spikes · provider-skew alerts

Output validation (4 layers)

Verification

Integrity · grounding · structural · constraint — run on AI gateway completions before they reach the client; grounding runs when sources are supplied

4-layer pipeline

EU AI Act controls

Verification

Article 5 (prohibited-practice detector; warns by default, blocking opt-in) · Article 13 (transparency) · Article 14 (oversight) · Article 15 (accuracy)

4 articles mapped

Drift & manipulation

Verification

Cross-turn memory poisoning · fabricated-history detection · permission drift · system-prompt subversion

Categories shown — specific patterns, scoring weights, and evasion countermeasures are not publicly enumerated. Full pattern catalog is accessible to licensed customers via the dashboard's pattern library page.

Pattern Updates

Pattern packs ship with each release and are verified (Ed25519) at sensor start; there is no automatic feed. New patterns arrive with a new release.

Compound Chains

Multi-vector attacks where each individual primitive looks benign — only the co-occurrence is dangerous. The correlator joins atomic findings that share a correlation ID (in practice, the same request) or that come from the same client IP within an organization inside a 5-minute window, and emits a compound finding when one of these nine named patterns matches.

CRITICAL

Lethal Trifecta

Prompt-injection vector co-occurring with network egress and filesystem access — the canonical exfiltration shape.

CRITICAL

Credential Exfiltration Chain

A skill reads environment secrets or credential stores and has outbound network access.

CRITICAL

Hidden-Instruction Description

A tool description carries hidden or encoded instructions that the LLM will read while planning.

CRITICAL

Shadowed Privilege Tool

A tool name shadows an established or reserved tool and the tool has execution capability.

CRITICAL

Cross-Surface Campaign

One client is reported by all three pillars inside the window: the API (WAF), the AI gateway and an MCP tool call.

HIGH

Injection Campaign

One client attempts prompt injection against the AI gateway and SQL or command injection against the API.

HIGH

Phishing Tool

A tool encourages credential requests combined with prompt-injection susceptibility.

HIGH

Obfuscated Execution

Encoded payloads (base64 / hex) combined with shell exec or eval. Hidden command behind decode + exec.

HIGH

Shadow Egress

A known tunnel, paste or webhook host (ngrok, pastebin, URL shorteners, Discord webhooks) or a raw IP address, in the same tool content as base64 / hex / codecs encoding. Encoded data headed for a throwaway endpoint.

Compliance Mapping

Detection findings feed compliance evidence tooling. HIPAA is the only framework with live-evidence scoring today; the others (SOC 2, ISO 27001, PCI DSS, GDPR, EU AI Act, and more) are self-attestation and gap-analysis mapping — never marked certified until independently attested.

Compliance Control Mapping

12 compliance frameworks with assessment engines + 8 reference catalogs. A selection is shown below. This is mapping and gap-analysis tooling, not an attestation; no framework is marked certified.

🔒
SOC 2
mapped / gap-analysis
🌐
ISO 27001
mapped / gap-analysis
🏥
HIPAA
live-evidence reports
💳
PCI DSS
mapped / gap-analysis
🏛️
NIST CSF
mapped / gap-analysis
🇪🇺
GDPR
mapped / gap-analysis

API Security

Example Request Monitor

Example Request Monitor
Illustrative sample — not live data
GET/api/users20012ms✓ Clean
POST/api/orders20145ms✓ Clean
GET/api/users?id=1 OR 1=14032msSQL Injection
PUT/api/products/12320038ms✓ Clean
POST/api/login4291msRate Limited
GET/api/health2005ms✓ Clean

HTTP Integration

Direct HTTP Integration

REST API
api.g8kepr.com/api/v1
Any HTTP client
Bearer token auth
JSON responses
AI Gateway
POST /api/v1/gateway/completions
14 providers behind one request schema
Own response envelope (not a base_url swap)
OpenAI-compatible proxy: self-hosted sensor-ai-gateway
CLI Tool
g8kepr-cli
Provided to self-hosted customers
Health, preflight and sensor listing

OWASP Top 10 Mapping

A self-assessed mapping of platform controls to the OWASP Top 10 (2021) categories. It is not a third-party assessment and does not claim full coverage of any category.

A01

Broken Access Control

A02

Cryptographic Failures

A03

Injection

A04

Insecure Design

A05

Security Misconfiguration

A06

Vulnerable Components

A07

Auth & Identity Failures

A08

Data Integrity Failures

A09

Security Logging Failures

A10

SSRF

Geo-Blocking Rule

One rule per country, created with POST /api/v1/geo-blocking/rules. action is allow or block. Rules are enforced on requests once a GeoIP database is loaded.

geo-blocking rulejson
{
  "country_code": "KP",
  "country_name": "North Korea",
  "action": "block"
}

Rate limit headers

Rate-limited responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset, and a 429 carries Retry-After. Back off and retry after the time it gives.

MCP Security

MCP Security Flow

AI AgentClaude, GPT, etc.
Policy Engine
Allow
Review
Block
MCP Tools

Session Linking

The MCP proxy returns a session ID in the X-G8KEPR-Session-Id response header. Send the same value in the X-G8KEPR-Session-Id request header on your AI gateway completions, and an investigation timeline joins that session's MCP and gateway activity by ID. The session ID must be a UUID; any other value is dropped.

bash
# Reuse the session ID the MCP proxy returned
curl -X POST https://api.g8kepr.com/api/v1/gateway/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-G8KEPR-Session-Id: 3f1c2a9e-7b4d-4e8a-9c21-5d6f7a8b9c0d" \
  -H "Content-Type: application/json" \
  -d '{ "model": "gpt-4o", "messages": [...] }'

Tool Authorization

MCP tool permissions are allow / deny rules. A rule targets a user, a role or the whole organization, can be scoped to a server and to a tool name (wildcards such as read_* are supported), and carries a priority. The highest-priority matching rule wins; user rules take precedence over role rules, and role rules over organization rules. If no rule matches, the call is denied.

Built-in roles: owner, admin, member, developer, analyst, auditor, viewer, agent_full, agent_limited and agent_readonly.

Multi-agent pipelines

If you run agent-to-agent workflows, send the same X-G8KEPR-Session-Id (a UUID) on each hop's gateway completion so the investigation timeline can join the hops by session.

Audit Trail

bash
curl https://api.g8kepr.com/api/v1/mcp/sessions/3f1c2a9e-7b4d-4e8a-9c21-5d6f7a8b9c0d/audit-trail \
  -H "Authorization: Bearer YOUR_API_KEY"

AI Gateway

AI Gateway - Intelligent Routing

Your App
POST /gateway/completions
AI Gateway
least_cost
🟢OpenAI
🟣Anthropic
🔵Google
🟠Mistral
Auto

Provider Failover

Routing Strategies

Distributes requests evenly across the available providers.

completion request bodyjson
{
  "messages": [{"role": "user", "content": "Hello"}],
  "routing_strategy": "round_robin"
}

Supported models

14 LLM providers: Claude, OpenAI, Gemini, Groq, Azure, Bedrock, Cohere, Mistral, DeepSeek, Together AI, Fireworks AI, Ollama, xAI and Cerebras. A custom OpenAI-compatible endpoint that your organization configures can also be routed. You choose the model per request with the model field.

Streaming

python
import httpx

with httpx.stream("POST", "https://api.g8kepr.com/api/v1/gateway/completions",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"model": "gpt-4o", "messages": [...], "stream": True},
) as resp:
    for line in resp.iter_lines():
        if line.startswith("data: "):
            print(line[6:])  # SSE payload

Webhook Events

Webhook Event Flow

G8KEPREvent Triggered
POST your webhook URL
Your ServerProcess Event
threat.detected
anomaly.detected

Webhook Payload

Create a webhook with POST /api/v1/webhooks; name, url and events are required, and GET /api/v1/webhooks/events/types lists the event names you can subscribe to. Findings are delivered as threat.detected, or as anomaly.detected for anomaly findings, in this envelope:

threat.detectedjson
{
  "event": "threat.detected",
  "timestamp": "2026-03-31T14:22:01.432+00:00",
  "organization_id": "<your organization id>",
  "data": {
    "finding_id": "<finding id>",
    "type": "<finding type>",
    "time": "2026-03-31T14:22:01Z",
    "severity": "high",
    "category": "<category>",
    "action": "<action taken>",
    "description": "<description>",
    "request": { "method": "POST", "path": "/api/orders", "source_ip": "203.0.113.7" }
  }
}

Signature

X-G8KEPR-Signature is the hex HMAC-SHA256 of the exact raw request body, keyed with your webhook secret. Some deliveries prefix the value with sha256=; strip the prefix before comparing.

Signature verification

Always verify X-G8KEPR-Signature before processing webhook payloads. Use hmac.compare_digest (Python) or crypto.timingSafeEqual (Node) to prevent timing attacks.

Deliveries

Each delivery is recorded with its status code and response time. List them, send a test delivery, or turn a webhook off and on:

bash
curl https://api.g8kepr.com/api/v1/webhooks/WEBHOOK_ID/deliveries \
  -H "Authorization: Bearer YOUR_API_KEY"

curl -X POST https://api.g8kepr.com/api/v1/webhooks/WEBHOOK_ID/test \
  -H "Authorization: Bearer YOUR_API_KEY"

curl -X POST https://api.g8kepr.com/api/v1/webhooks/WEBHOOK_ID/toggle \
  -H "Authorization: Bearer YOUR_API_KEY"

Threat Detection

Threat Detection Pipeline

Ingress

Request received

Pattern Match

94,000+ samples

SQLi, XSS
ML Analysis

Behavioral detection

Anomalies
Policy Check

Rules evaluation

Rate limits
Decision

Allow / Block

SQL Injection
XSS
Path Traversal
Rate Limit
Auth Failure

Detection accuracy

94,000+

Labeled attack samples (training corpus)

0.786

Held-out recall (0.486 on newer attacks)

0.857

Held-out precision (3.12% FPR)

An ML detector trained on 94,000+ labeled attack samples, plus ~340 regex rules evaluated on every request. On the frozen held-out split (N=2,580, never trained on) the shipped predicate (regex OR semantic classifier) scores 0.786 recall, 0.857 precision and a 3.12% false-positive rate. On third-party attacks first published after the detector's training data, recall is 0.486 (198 of 407). These are benchmarks of the shipped code, not measurements of production traffic. The default API request path runs the regex tier only; the classifier runs on the AI gateway path.

Session Escalation

On the REST API proxy (/api/proxy/{gateway_id}/…), requests that share an X-Session-ID header (a UUID) are scored together. A request's threat score is multiplied by a factor taken from the session's history before it, capped at 1.0, and theescalated score feeds the block decision below.

Current score ≤ 0.1

1.0×

Clean traffic is never escalated

→

3+ requests, max > 0.3

1.3×

Earlier requests in the session

→

5+ requests, max > 0.5

2.0×

Earlier requests in the session

→

Any earlier score ≥ 0.8

2.5×

Regardless of request count

Example Threat Log

Example detected events (illustrative sample, not live data)
$# Illustrative threat events — sample data, not a live feed
[BLOCKED] score=0.91 PI-001 Role Confusion ip=1.2.3.4
[ALLOWED] score=0.03 No patterns matched ip=5.6.7.8
[BLOCKED] score=0.78 PI-007 Instruction Override ip=1.2.3.5
[ALERT] score=0.64 Session escalation 2.0x ip=9.10.11.12
$

Block Decision

On the REST API proxy a request is refused with HTTP 403 when either the detector's own verdict is to block, or the (session-escalated) threat score reaches 0.9. On the AI gateway completion route the union threat scanner is flag-only by default: it records a finding and the request goes through.

CLI Reference

g8kepr-cli — provided to customers

The operations CLI for a self-hosted deployment is g8kepr-cli. It is provided to customers with the install; it is not published to PyPI or any other public registry. On the hosted service, use the dashboard at app.g8kepr.com and the REST API documented below with your gk_org_ key.
bash
g8kepr-cli --help
g8kepr-cli health                                   # health snapshot from /api/health
g8kepr-cli preflight                                # install pre-checks
g8kepr-cli sensors list --organization-id <org>     # sensor fleet listing

API Reference

API Key Authentication Flow

Your App
1. Send KeyAuthorization: Bearer
G8KEPRValidate & Authorize
3. Check Permsscopes, limits
Your API
gk_org_<org8>_<token>One key format; each key carries a read, write or admin scope
Base URLhttps://api.g8kepr.com/api/v1

Authentication

Create keys in the dashboard under Dashboard → API Keys. Keys are formatted gk_org_<org8>_<token> and are shown only once at creation. Send a key as an Authorization: Bearer <key> header, or as X-API-Key: <key>. Each key carries a scope: read, write, or admin.

bash
# Bearer token (the X-API-Key: <key> header also works)
curl https://api.g8kepr.com/api/v1/gateways \
  -H "Authorization: Bearer gk_org_ab12cd34_YOUR_TOKEN"

Endpoints

Rate Limit Response Headers

HeaderDescription
X-RateLimit-LimitMaximum requests allowed in the current window
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp when the window resets
Retry-AfterSeconds to wait before retrying (on 429 only)

Error codes

400 Bad Request — invalid body or missing required field. 401 Unauthorized — missing or invalid API key. 403 Forbidden — insufficient scope or blocked by policy. 429 Too Many Requests — check Retry-After header. 502 [NO_PROVIDERS] — no upstream LLM provider configured; add a provider / BYOK key in the dashboard AI Gateway. 503 Service Unavailable — backend health check failed; retry with backoff.

Configuration

Compliance Frameworks

Compliance Control Mapping

12 compliance frameworks with assessment engines + 8 reference catalogs. A selection is shown below. This is mapping and gap-analysis tooling, not an attestation; no framework is marked certified.

🔒
SOC 2
mapped / gap-analysis
🌐
ISO 27001
mapped / gap-analysis
🏥
HIPAA
live-evidence reports
💳
PCI DSS
mapped / gap-analysis
🏛️
NIST CSF
mapped / gap-analysis
🇪🇺
GDPR
mapped / gap-analysis

Environment Variables

For a self-hosted install, the backend refuses to start in production without the variables below. Optional settings are not listed here. Variables marked “secret” take a random value of at least 32 characters unless the description says otherwise.

VariableDescription
DATABASE_URLPostgreSQL connection string
REDIS_URLRedis connection string (or set REDIS_HOST and its parts, and it is built at startup)
SECRET_KEYApplication secret (secret)
JWT_SECRETHMAC secret for legacy HS256 tokens (secret)
JWT_RSA_PRIVATE_KEY_CURRENTRS256 signing key (PEM, or base64 of the PEM); tokens are RS256-only
ENCRYPTION_KEYAES-256-GCM key: standard base64 of 32 random bytes
CORS_ORIGINSComma-separated origins allowed by CORS (no default)
FRONTEND_URLPublic URL of the dashboard, used in email links and OAuth redirects
AUDIT_CHAIN_HMAC_KEYHMAC key for the tamper-evident audit log (secret)
AUDIT_CHAIN_HMAC_KEY_CURRENTSigns new compliance audit-chain entries (secret)
CHAIN_ANCHOR_HMAC_KEYHMAC key for audit-chain anchors (secret)
G8KEPR_SENSOR_SIGNING_SEEDEd25519 seed (32-byte hex) that signs every finding envelope
SECURITY_DISCLOSURE_SECRETSigns vulnerability-disclosure tracking tokens (secret)
ORG_ID_HASH_SALTKeys the organization-id hash in metric labels (secret)
BASELINE_HMAC_KEYSigns per-org API baseline models; shared by every worker (secret)
EMAIL_UNSUBSCRIBE_SECRETSigns email unsubscribe links (secret)

Secrets management

Keep these values out of source control. Use your secrets manager (for example AWS Secrets Manager, GCP Secret Manager or Vault) and inject them at runtime.

Troubleshooting

Common Errors

Health Check Endpoints

EndpointAccessUse case
GET /healthPublicLiveness probe
GET /api/health/readyPublicReadiness probe; reports the state of each dependency check
GET /api/health/detailRequires authenticationDetailed health for operators

Bug Reports

Bug reports and feature requests by email. Report security issues to security@g8kepr.com.

Email support →

Enterprise Support

Email support. On Team and Enterprise a P1 gets a first response within 4 business hours (9:00–17:00 US Eastern, Monday–Friday, excluding US federal holidays).

Contact sales →

Changelog

Recent, customer-facing improvements to the G8KEPR platform. Feature-level only — contact support for detailed release notes.

What's new
  • NewMCP Security: tool-level allow / deny permissions with default deny, and session IDs that link MCP and AI gateway activity
  • NewAI Gateway: multi-provider routing (round-robin, least-latency, least-cost, priority) with bring-your-own-key providers
  • NewWebhooks for threat.detected and anomaly.detected findings, signed with HMAC-SHA256
Ready to secure your APIs?

Start protecting your APIs today

The free Community licence is self-hosted and includes all four pillars and 100K findings per month. A hosted account starts with a 30-day Team trial (extend to 90 days free) — no credit card required.