curl -X POST https://xenarch.dev/v1/sites \
-H "Authorization: Bearer xk_pub_abc123..." \
-H "Content-Type: application/json" \
-d '{"domain": "example.com"}'
{
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"site_token": "st_xyz789..."
}
Sites
Create Site
Register a new site (domain) under the publisher account — first step to enable x402 pay-per-crawl with USDC micropayments for AI agents.
POST
/
v1
/
sites
curl -X POST https://xenarch.dev/v1/sites \
-H "Authorization: Bearer xk_pub_abc123..." \
-H "Content-Type: application/json" \
-d '{"domain": "example.com"}'
{
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"site_token": "st_xyz789..."
}
curl -X POST https://xenarch.dev/v1/sites \
-H "Authorization: Bearer xk_pub_abc123..." \
-H "Content-Type: application/json" \
-d '{"domain": "example.com"}'
{
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"site_token": "st_xyz789..."
}
Notes
- Save the
site_token— it is returned once and stored as a SHA-256 hash - Domain must be unique across all publishers
- The site token is used by your middleware to create gates