Register Endpoint: Register your API's base URL and payment address with the Faceet registry contract. This generates your unique target_hash.
target_hash
Configure Payment: Set up your endpoint to demand X402 payment upon unauthorized access (HTTP 402 response).
Install Middleware: Integrate the Faceet SDK/Middleware into your API Gateway to check for the required SBT before granting access.
Best Practice: Initially issue short-lived certificates (e.g., 1-hour expiry) for maximum revenue security.
Last updated 2 months ago