Skip to main content
LimitGuard supports two authentication modes: API key (subscription) and x402 USDC micropayments (pay-per-use). Sandbox mode is available for testing without either.

API Key Authentication

Pass your API key in the X-API-Key header:
API key users bypass x402 payment — you pay via subscription. Rate limits and monthly quotas apply based on tier.

Key Format

Creating Keys

Available tiers: free, starter, pro, enterprise.
The plaintext key is returned once only — store it securely. It is never stored server-side.

x402 USDC Micropayments

For AI agents and pay-per-use access without a subscription. Include the X-PAYMENT header with a base64-encoded JSON payment object.
See the full x402 Protocol guide for step-by-step implementation with code examples.

x402 V2 Flow

1

Request without payment

Make your API request normally. You’ll receive HTTP 402 with payment requirements.
2

Build payment signature

Construct an EIP-3009 TransferWithAuthorization signature using the payment details from the 402 response.
3

Retry with payment

Retry the same request with the X-PAYMENT header containing the base64-encoded payment object.

HTTP 402 Response

When you make a request without payment, the API returns the payment requirements:

Supported Networks

V1 Backward Compatibility

The legacy PAYMENT-SIGNATURE header is still accepted (V1 format). V2 (X-PAYMENT) is recommended for new integrations.

Response Headers on Success

Free Endpoints

These endpoints never require payment or authentication: