Skip to main content
POST
https://api.0xarchive.io
/
v1
/
web3
/
subscribe
Subscribe to a paid tier via x402 USDC payment
curl --request POST \
  --url https://api.0xarchive.io/v1/web3/subscribe \
  --header 'Content-Type: application/json' \
  --data '
{
  "tier": "build"
}
'
{
  "api_key": "0xa_...",
  "tier": "build",
  "expires_at": "2023-11-07T05:31:56Z",
  "wallet_address": "<string>",
  "tx_hash": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt

Use this file to discover all available pages before exploring further.

Headers

payment-signature
string

Base64-encoded x402 v2 payment payload containing the EIP-3009 signed USDC transfer authorization. Omit on first request to receive payment details.

Body

application/json
tier
enum<string>
required

Subscription tier to purchase

Available options:
build,
pro
Example:

"build"

Response

Subscription created successfully (returned when valid payment-signature header is provided)

api_key
string

The generated API key for the new subscription

Example:

"0xa_..."

tier
string

The subscription tier activated

Example:

"build"

expires_at
string<date-time>

Subscription expiration date (30 days from purchase)

wallet_address
string

The wallet address associated with the subscription

tx_hash
string | null

On-chain transaction hash for the USDC transfer (if settled)

Last modified on May 20, 2026