/api/healthPublicLiveness + readiness probe. Returns service status, commit, dependency checks, and response time.
curl https://duelbond.com/api/health- Returns 200 when status is 'ok', 503 when 'degraded'.
- Never cached — always hits the origin.
Developers
A minimal reference to the endpoints that are currently safe to integrate with. External-facing endpoints are versioned by URL. Breaking changes ship with a new major prefix and a deprecation window.
Not yet public
A proper developer programme with API keys, scopes, and OpenAPI spec is coming with Duel Pro. Until then these endpoints are documented for transparency; only the health and webhook signatures have stable contracts.
/api/healthPublicLiveness + readiness probe. Returns service status, commit, dependency checks, and response time.
curl https://duelbond.com/api/health/api/webhooks/stripeSignedInbound Stripe events — payment_intent.succeeded, charge.refunded, treasury.received_credit, treasury.outbound_payment.*.
/api/webhooks/terraSignedInbound biometric events from Terra (Apple Health / Health Connect / Oura / Fitbit / Garmin).
/api/contactPublicSubmit a contact-form message. Rate-limited per IP.
curl -X POST https://duelbond.com/api/contact \
-H "Content-Type: application/json" \
-d '{"name":"Sam","email":"sam@example.com","topic":"general","message":"Hello"}'/api/challengesBearerCreate a public challenge (requires session cookie).
/api/challenges/:idPublicFetch a public challenge's title, stake, duration, and pillars.
curl https://duelbond.com/api/challenges/chg_01HX…/api/contractsBearerCreate a signed contract. Internal — used by the /new wizard.
/api/contract/:id/pdfBearerDownload the signed PDF for a contract you're party to.
{ ok: false, error }.