NyxSynth (NYX) Post-Quantum Developer Infrastructure & x402 API
Official API specification for NyxSynth (NYX) atop the Bioluminescent Coordination Protocol (BCP). Paid subscriptions cover exclusively NyxSynth's 100% first-party self-hosted developer infrastructure: NIST FIPS 203/204 Post-Quantum RPC, deterministic W3C WebAssembly 1.0 oracle, live ledger MCP telemetry, SHAKE-256 spectral vector indexing, SHA3-256 execution attestations, and HTTP 402 metering. NyxSynth does not resell third-party AI model subscriptions; optional external LLMs are strictly developer Bring-Your-Own-Key (BYOK via the ephemeral X-UPSTREAM-API-KEY header).
/api/platform/stateLive Cluster, Marketplace, Governance & Platform Telemetry [HTTP 200]
/api/v1/gateway/providersList First-Party MCP/WASM/Vector Tools & BYOK Policy [HTTP 200]
/api/v1/gateway/statusVerify API Key & Inspect Monthly Call Quota [HTTP 200, 401]
/api/v1/gateway/inferExecute Metered First-Party MCP/WASM/Vector Tool or Optional BYOK Call [HTTP 200, 401, 402]
/api/v1/gateway/upgradeCreate Self-Service Upgrade Session (Polar.sh Cards or First-Party NyxPay NYX/Wire) [HTTP 200, 400, 401]
/api/nyxpay/verify-nyxVerify Finalized Native NYX On-Chain Payment & Atomically Activate Plan [HTTP 200, 400, 403]
/api/webhooks/polarPolar.sh Standard Webhooks (HMAC-SHA256) Payment Receiver [HTTP 200, 401]
/api/webhooks/stripeStripe HMAC-SHA256 Signed Payment Webhook Receiver [HTTP 200, 401]
/api/explorer/searchUniversal Ledger Search (Block Height, TX ID, bcp1... Address, Mandate ID) [HTTP 200]
/api/ops/preflightLive Production Pre-Flight Health & Cryptographic Posture Audit [HTTP 200]
Machine-Readable Schema Preview (/api/openapi.json)
{
"openapi": "3.1.0",
"info": {
"title": "NyxSynth (NYX) Post-Quantum Developer Infrastructure & x402 API",
"version": "1.0.0",
"summary": "100% first-party self-hosted post-quantum RPC, W3C WASM 1.0 oracle, live ledger MCP tools, SHAKE-256 vectors & x402 metering.",
"description": "Official API specification for NyxSynth (NYX) atop the Bioluminescent Coordination Protocol (BCP). Paid subscriptions cover exclusively NyxSynth's 100% first-party self-hosted developer infrastructure: NIST FIPS 203/204 Post-Quantum RPC, deterministic W3C WebAssembly 1.0 oracle, live ledger MCP telemetry, SHAKE-256 spectral vector indexing, SHA3-256 execution attestations, and HTTP 402 metering. NyxSynth does not resell third-party AI model subscriptions; optional external LLMs are strictly developer Bring-Your-Own-Key (BYOK via the ephemeral X-UPSTREAM-API-KEY header).",
"termsOfService": "https://platform.nyxsynth.com/terms",
"contact": {
"name": "NyxSynth",
"url": "https://nyxsynth.com",
"email": "contact@nyxsynth.com"
},
"license": {
"name": "Proprietary \u2014 All Rights Reserved",
"url": "https://platform.nyxsynth.com/terms"
}
},
"servers": [
{
"url": "https://platform.nyxsynth.com",
"description": "Active NyxSynth Platform Server"
}
],
"components": {
"securitySchemes": {
"NyxApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "X-NYX-API-KEY",
"description": "Tenant API key (`nyx_live_...`), stored SHA3-256 hashed at rest."
},
"NyxAdminTokenAuth": {
"type": "apiKey",
"in": "header",
"name": "X-NYX-ADMIN-TOKEN",
"description": "Operator admin token required for commercial `/revenue` admin mutations."
}
}
},
"paths": {
"/api/platform/state": {
"get": {
"summary": "Live Cluster, Marketplace, Governance & Platform Telemetry",
"tags": [
"Platform"
],
"responses": {
"200": {
"description": "Current live platform state snapshot"
}
}
}
},
"/api/v1/gateway/providers": {
"get": {
"summary": "List First-Party MCP/WASM/Vector Tools & BYOK Policy",
"tags": [
"Gateway"
],
"responses": {
"200": {
"description": "Public-safe first-party tool catalog and BYOK policy (zero secrets)"
}
}
}
},
"/api/v1/gateway/status": {
"get": {
"summary": "Verify API Key & Inspect Monthly Call Quota",
"tags": [
"Gateway"
],
"security": [
{
"NyxApiKeyAuth": []
}
],
"responses": {
"200": {
"description": "Authenticated tenant plan, calls_this_month & included_calls"
},
"401": {
"description": "Missing, invalid, or suspended API key"
}
}
}
},
"/api/v1/gateway/infer": {
"post": {
"summary": "Execute Metered First-Party MCP/WASM/Vector Tool or Optional BYOK Call",
"tags": [
"Gateway"
],
"security": [
{
"NyxApiKeyAuth": []
}
],
"parameters": [
{
"name": "X-UPSTREAM-API-KEY",
"in": "header",
"required": false,
"schema": {
"type": "string"
},
"description": "Optional developer Bring-Your-Own-Key (BYOK) for external LLM routing (ephemeral, never stored or resold)."
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"listing_id": {
"type": "string",
"default": "mcp-x402-deep-search",
"enum": [
"mcp-x402-deep-search",
"mcp-x402-wasm-prover",
"embed-hadal-v3",
"llm-nyxsynth-abyssal-70b"
]
},
"prompt": {
"type": "string",
"maxLength": 2000
},
"calls_count": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1
},
"provider": {
"type": "string",
"description": "Optional override: auto | mcp (first-party) | gemini | openai | anthropic | ollama (strictly BYOK via X-UPSTREAM-API-KEY)"
},
"model": {
"type": "string",
"description": "Optional model override for BYOK requests"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Verified AI/MCP completion, SHA3 attestation & on-chain settlement receipt"
},
"401": {
"description": "Invalid or missing X-NYX-API-KEY"
},
"402": {
"description": "DEVELOPER_FREE 1,000-call quota reached \u2014 upgrade via POST /api/v1/gateway/upgrade"
}
}
}
},
"/api/v1/gateway/upgrade": {
"post": {
"summary": "Create Self-Service Upgrade Session (Polar.sh Cards or First-Party NyxPay NYX/Wire)",
"tags": [
"Gateway"
],
"security": [
{
"NyxApiKeyAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"plan_code"
],
"properties": {
"plan_code": {
"type": "string",
"enum": [
"STARTER",
"GROWTH",
"ENTERPRISE"
]
},
"provider": {
"type": "string",
"default": "auto",
"enum": [
"auto",
"polar",
"nyxpay",
"nyx",
"wire",
"stripe"
],
"description": "Billing rail: polar (Cards/Apple Pay MoR), nyxpay/nyx (First-party native NYX on-chain), wire (Direct B2B Bank Wire/SEPA), or stripe"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Upgrade invoice & Polar.sh card checkout or first-party NyxPay /pay/{invoice_id} portal"
},
"400": {
"description": "Unsupported plan_code or provider"
},
"401": {
"description": "Invalid or missing X-NYX-API-KEY"
}
}
}
},
"/api/nyxpay/verify-nyx": {
"post": {
"summary": "Verify Finalized Native NYX On-Chain Payment & Atomically Activate Plan",
"tags": [
"Billing"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"invoice_id",
"token"
],
"properties": {
"invoice_id": {
"type": "string"
},
"token": {
"type": "string",
"description": "Signed per-invoice NyxPay HMAC access token"
},
"tx_id": {
"type": "string",
"description": "Optional finalized NYX transaction ID (auto-detects exact amount if omitted)"
}
}
}
}
}
},
"responses": {
"200": {
"description": "On-chain transfer verified, invoice marked PAID & API key upgraded atomically"
},
"400": {
"description": "Transaction not found, underpaid, wrong recipient, or already redeemed"
},
"403": {
"description": "Invalid or missing NyxPay invoice access token"
}
}
}
},
"/api/webhooks/polar": {
"post": {
"summary": "Polar.sh Standard Webhooks (HMAC-SHA256) Payment Receiver",
"tags": [
"Billing"
],
"responses": {
"200": {
"description": "Invoice marked PAID & pending plan upgrade activated atomically on order.paid"
},
"401": {
"description": "Invalid Standard Webhooks signature or expired timestamp"
}
}
}
},
"/api/webhooks/stripe": {
"post": {
"summary": "Stripe HMAC-SHA256 Signed Payment Webhook Receiver",
"tags": [
"Billing"
],
"responses": {
"200": {
"description": "Invoice marked PAID & pending plan upgrade activated atomically"
},
"401": {
"description": "Invalid Stripe-Signature or expired timestamp"
}
}
}
},
"/api/explorer/search": {
"get": {
"summary": "Universal Ledger Search (Block Height, TX ID, bcp1... Address, Mandate ID)",
"tags": [
"Explorer"
],
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Search result"
}
}
}
},
"/api/ops/preflight": {
"get": {
"summary": "Live Production Pre-Flight Health & Cryptographic Posture Audit",
"tags": [
"Operations"
],
"responses": {
"200": {
"description": "6-check operational health report"
}
}
}
}
}
}