API: /v1/subscribe/ and /v1/subscription
purpose
Start or manage paid plans. x402 subscribe routes remain (one USDC payment on Base = one 30-day period, no auto-renewal). Card checkout is live for several plans. Do not complete payment unless the user confirmed. Pilot is no longer sold.
call
# Live, no payment and nothing started:
curl -sS -X POST 'https://botsrated.com/v1/subscribe/pilot' -H 'Content-Type: application/json' -d '{}'
curl -sS -X POST 'https://botsrated.com/v1/subscribe/live' -H 'Content-Type: application/json' -d '{}'
curl -sS -X POST 'https://botsrated.com/v1/subscribe/alerts-50' -H 'Content-Type: application/json' -d '{}'
curl -sS -X POST 'https://botsrated.com/v1/subscribe/alerts-50' -H 'Content-Type: application/json' \
-d '{"hosts":["api.agentweather.io"]}'
curl -sS 'https://botsrated.com/v1/subscription'
# Official contract: unpaid 402 (x402 v2) would follow a complete body (hosts + email or webhook_url) on
# POST /v1/subscribe/alerts-50, desk-team, desk-pro, data-pro. Do not send email/webhook
# and do not pay.
sample_response
source: live prod: POST /v1/subscribe/pilot → 409 plan_not_on_sale, charged:false; POST /v1/subscribe/live {} → 400 terms_required (29 USDC / 30-day period; no accept_terms sent); POST alerts-50 {} → 400 missing_hosts; POST alerts-50 with hosts only → 400 missing_webhook_url, charged:false; GET /v1/subscription → 401. fetched: live production, 24 Nov 2026 (counts redacted) trimmed: true
{
"pilot": {
"service": "BotsRated",
"error": {
"code": "plan_not_on_sale",
"message": "Pilot is no longer sold to new buyers. Use Pro ($19/month by card at /billing/start) or a prepaid credit pack at /credits ($10 for 1,000 checks or $25 for 2,500). A Pilot already paid for keeps working through the term it paid for. Nothing was charged.",
"hint": "Pro: /billing/start. Credit packs: /credits. Plans: /v1/plans.",
"charged": false,
"charged_note": "x402 settles only on a 2xx answer, so this response was not charged."
}
},
"alerts50_empty": {
"service": "BotsRated",
"error": {
"code": "missing_hosts",
"message": "Add hosts: \"hosts\":[\"seller.example\"] (1–50). charged:false — nothing paid.",
"hint": "Nothing was charged. See /v1/plans.",
"charged": false,
"charged_note": "x402 settles only on a 2xx answer, so this response was not charged."
}
},
"alerts50_hosts_only": {
"service": "BotsRated",
"error": {
"code": "missing_webhook_url",
"message": "Add \"email\": \"you@example.com\" (we send one confirmation link first; alerts start after you confirm), or \"webhook_url\": a signed https webhook that echoes our challenge, a Slack incoming webhook (https://hooks.slack.com/services/…) or a Discord channel webhook (https://discord.com/api/webhooks/…). charged:false.",
"hint": "Nothing was charged. See /v1/plans.",
"charged": false,
"charged_note": "x402 settles only on a 2xx answer, so this response was not charged."
}
},
"subscription_unauth": {
"service": "BotsRated",
"error": {
"code": "invalid_token",
"message": "Pass Authorization: Bearer
… [trimmed]
errors
| code | when | fix |
|---|---|---|
| plan_not_on_sale (live 409) | POST /v1/subscribe/pilot. | Use Pro at /billing/start or credit packs at /credits. An already-paid Pilot keeps working through its term. |
| terms_required (live POST /v1/subscribe/live 400) | Empty body, no accept_terms. Nothing charged. | Live USDC checkout is POST /v1/subscribe/live. Do not post accept_terms or pay unless the user confirmed. Card: https://botsrated.com/checkout/stripe?plan=live. |
| missing_hosts / missing_webhook_url (live 400) | Incomplete alerts-50 body. Nothing charged. | If a person is buying, they still must confirm payment. This session stopped before 402. |
| 401 on GET /v1/subscription (live) | No bearer. | Send the plan token. |
notes
- Live USDC checkout is POST /v1/subscribe/live. An empty body returns 400 terms_required and names a 29 USDC / 30-day period (checkout_terms_version terms-2026-11-20, live_terms_version live-tier-2026-11-24). Do not post accept_terms or pay unless the user confirmed. Card: https://botsrated.com/checkout/stripe?plan=live.
- After the body validates, the unpaid answer is the standard x402 v2 402: the PAYMENT-REQUIRED header plus the same JSON in the body, scheme exact, USDC on Base, with the plan amount_atomic from /v1/plans. The body and the webhook are checked before any 402.
- Cancel stops renewal/delivery; payments are final except the documented fault exception on /terms.