curl -X POST https://api.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 domain under your publisher account and get its site token, the first step to charge AI agents with x402 USDC payments.
POST
/
v1
/
sites
curl -X POST https://api.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://api.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. - A domain can belong to one site only. A taken domain returns HTTP 409.
- New sites start at $0.001 per request.
- Your integration uses the site token to create gates.