curl -X GET "https://api.adrelay.dev/v1/billing/status" \
-H "X-API-Key: $ADRELAY_API_KEY"
const response = await fetch("https://api.adrelay.dev/v1/billing/status", {
headers: { "X-API-Key": process.env.ADRELAY_API_KEY },
});
const billing = await response.json();
import requests
response = requests.get(
"https://api.adrelay.dev/v1/billing/status",
headers={"X-API-Key": "your-api-key-here"},
)
billing = response.json()
{
"plan": "pro",
"status": "active",
"current_period_start": "2026-03-01T00:00:00Z",
"current_period_end": "2026-04-01T00:00:00Z",
"usage": {
"requests_used": 1250,
"requests_limit": 10000
}
}
{
"error": "Invalid or missing API key.",
"code": "UNAUTHORIZED",
"timestamp": 1711036800,
"request_id": "req_abc123"
}