Skip to content

API Overview

Base URL

All API requests use the following base URL:

https://api.getstronghold.xyz

Authentication

Stronghold does not use API keys. Instead, every protected endpoint is gated by the x402 protocol — an open standard for HTTP-native crypto payments.

Each request includes a signed USDC payment in the X-PAYMENT header. The payment is verified on-chain before the request is processed. Payments are supported on Base (EVM) and Solana.

Endpoint Summary

Public endpoints (no payment required)

EndpointMethodDescription
/healthGETFull health status with dependency checks
/health/liveGETKubernetes liveness probe
/health/readyGETKubernetes readiness probe
/v1/pricingGETEndpoint pricing information

Protected endpoints (x402 payment required)

EndpointMethodPriceDescription
/v1/scan/contentPOST$0.001Prompt injection detection
/v1/scan/outputPOST$0.001Credential leak detection

Conventions

Content type

All request and response bodies use application/json. Set the Content-Type header accordingly on every request that includes a body.

Decisions

Scan endpoints return a decision field with one of three values:

DecisionMeaning
ALLOWContent is safe to process
WARNSuspicious patterns detected — review before processing
BLOCKActive threat detected — discard content immediately

Payload limit

The maximum text size accepted by scan endpoints is 500 KB.

Money format

Canonical money fields are string-encoded microUSDC integers.

  • 1 microUSDC = 0.000001 USDC
  • "1000" = 1000 microUSDC = $0.001

Convenience float fields like price_usd may appear alongside the canonical value, but integrations should always use the string-encoded microUSDC field as the source of truth.