Fiber Payment Gateway
Spindle documents the gateway layer for the current MVP: authentication, route scopes, invoice creation, and payment reconciliation built for Fiber testnet operations.
Overview
Spindle is a policy-enforcement gateway for agent backends. It makes automated payment intents explicit and auditable before they touch owned Fiber testnet nodes.
Authentication
All requests require an x-api-key header with the spnd_ prefix.
Missing or invalid keys return 401. Correct keys with insufficient scope return 403. All auth events are recorded in the audit registry.
Invoices
Entry point for Fiber-backed payment state. Supports creation and tenant-scoped lookups.
POST /api/v1/invoices
x-api-key: spnd_***
content-type: application/json
{
"amount": "50",
"assetSymbol": "USDT",
"description": "Agent payout",
"externalReference": "ord_1001"
}Payments
Execution is invoice-based. The gateway resolves ownership and enforces policy before calling Fiber.
POST /api/v1/payments
x-api-key: spnd_***
content-type: application/json
{
"invoice": "fibt1q..."
}GET /api/v1/payments/{paymentHash}
x-api-key: spnd_***Policy Checks
Active checks performed before Fiber execution.
Audit & Query
Tenant-scoped access to execution history and reconciliation state.
GET /api/v1/audit?paymentHash=0xabc...&limit=20
x-api-key: spnd_***- API gateway for agent payments
- Policy enforcement for Fiber testnet
- Scoped audit and reconciliation history
- Mainnet settlement or proof verification
- Live telemetry or public service status
- Broader wallet or explorer product depth