curl https://api.xenarch.dev/v1/gates/domain/example.com
{
"accepts": [
{
"maxAmountRequired": "<string>",
"resource": "<string>",
"payTo": "<string>",
"maxTimeoutSeconds": 123,
"asset": "<string>",
"scheme": "exact",
"network": "base",
"description": "",
"mimeType": "text/html",
"extra": {}
}
],
"gate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price_usd": "<string>",
"seller_wallet": "<string>",
"network": "<string>",
"facilitators": [
{
"name": "<string>",
"url": "<string>",
"spec_version": "v2"
}
],
"verify_url": "<string>",
"expires": "2023-11-07T05:31:56Z",
"x402Version": 1,
"error": "<string>",
"xenarch": true,
"asset": "USDC",
"protocol": "x402"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Gates
Get Domain Gate
Look up the most recent pending x402 gate for a domain. Returns the same body as a 402: price, seller wallet, accepts and facilitators.
GET
/
v1
/
gates
/
domain
/
{domain}
curl https://api.xenarch.dev/v1/gates/domain/example.com
{
"accepts": [
{
"maxAmountRequired": "<string>",
"resource": "<string>",
"payTo": "<string>",
"maxTimeoutSeconds": 123,
"asset": "<string>",
"scheme": "exact",
"network": "base",
"description": "",
"mimeType": "text/html",
"extra": {}
}
],
"gate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price_usd": "<string>",
"seller_wallet": "<string>",
"network": "<string>",
"facilitators": [
{
"name": "<string>",
"url": "<string>",
"spec_version": "v2"
}
],
"verify_url": "<string>",
"expires": "2023-11-07T05:31:56Z",
"x402Version": 1,
"error": "<string>",
"xenarch": true,
"asset": "USDC",
"protocol": "x402"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}curl https://api.xenarch.dev/v1/gates/domain/example.com
Notes
- Public endpoint for agent discovery. No authentication is required.
- Returns HTTP 200 with the body of the most recent pending gate for the domain, in the same shape as Create Gate.
- Returns HTTP 404 when the domain has no pending gate.
- Use it to read a site’s price without requesting a page from the site first.
Response
Successful Response