Paid request runtime
Return an HTTP 402 payment requirement, settle the buyer-signed transaction, consume one usage unit, then serve the result.
Hilt Pay API
Build paid APIs and agent services that challenge, settle, record, authorize, consume, and return the result in one replay-safe flow.
HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: <x402 terms>
merchant server
POST /v1/access/x402/settle
POST /v1/access/entitlements/consume
The complete loop
The payment is the middle of the request, not the end.
Challenge
HTTP 402
Pay
Solana USDC
Settle
Verified proof
Record
Receipt
Consume
Atomic usage
Serve
Paid result
What Hilt runs
Return an HTTP 402 payment requirement, settle the buyer-signed transaction, consume one usage unit, then serve the result.
Keep settlement evidence separate from current authorization so software never has to infer access from a wallet transfer.
Send payment, entitlement, and lifecycle events to the merchant backend with a verifiable support trail.
Give agents structured discovery, OpenAPI, SDKs, examples, and sandbox flows while the owner retains live approval and credentials.
Developer resources
Start with the guide. Drop into schemas, packages, MCP, and discovery files only when your integration needs them.
Start here
Hilt Pay API guide
Copy a working flow
Metered agent request guide
Inspect the contract
OpenAPI schema
Install TypeScript
@hiltpay/sdk
Install Python
hilt-sdk
Connect an agent
Hilt MCP gateway
Read discovery
Agent manifest
Test without money
Sandbox quickstart
Live settlement is Solana USDC. x402 describes the HTTP 402 protected-resource exchange. Buyers sign with their own wallets and merchants settle directly to their configured payout wallets.
Build the paid request