Private test website

riskapi test surface

This site exists to test the split between free API calls and paid API calls. Free endpoints should work without Stripe. Paid endpoints should require an API key provisioned from a Stripe sandbox purchase.

Public website traffic stays on Cloudflare Pages. The API itself stays on the Debian VPS at https://alpha-swan.duckdns.org.
Free

Ping

Basic no-charge liveness check.

GET https://alpha-swan.duckdns.org/v1/free/ping
Free

Current UTC Time

Return current UTC time and a Unix epoch value.

GET https://alpha-swan.duckdns.org/v1/free/time/utc

Text Cleanup

Normalize whitespace and trim edges in a string.

POST https://alpha-swan.duckdns.org/v1/tools/text/cleanup

Time Shift

Move a timestamp by a chosen number of minutes.

POST https://alpha-swan.duckdns.org/v1/tools/time/shift

Quickstart

Start with the free routes. Only use the paid routes when you want to test the Stripe sandbox purchase and key-provisioning path.

curl https://alpha-swan.duckdns.org/v1/free/ping

curl https://alpha-swan.duckdns.org/v1/free/time/utc

curl -X POST https://alpha-swan.duckdns.org/v1/tools/text/cleanup \
  -H "Content-Type: application/json" \
  -H "X-API-Key: rk_live_your_key_here" \
  -d '{"text":"   keep   this tidy   "}'

The live JSON catalog is available at /v1/catalog.