Payment gate settlement rails — hosted policy + rails service

Hosted form of the railgate product (TextForAgents LLC). One declarative payment policy per enrolled agent; your own gate/signer calls the decide endpoint at its signing hook and receives an ALLOW or REFUSE verdict from the rail-agnostic policy core (budgets, counterparty allowlists, velocity, intent binding, replay protection), with the rail oracle's decide-time quote (fee, expected finality, replay-window exposure) for the chosen rail (EVM/x402 or XRPL shapes). The service never signs, never holds a key, and never custodies or moves funds — settlement runs through your own signer on the chosen rail.

Pricing

$2 per agent / month flat — no percentage of payment volume, ever. Rail fees pass-through at cost, never marked up. One-time trial: the first month for the first 10 agents is free, once per operator account (canonical-identity enforced: re-registering under a variant name or wallet spelling does not re-grant). The railgate adapter package is a free downloadable artifact.

Authentication

POST /register with {"account_name": "...", "payer_wallet": "0x..."} returns {account_id, api_key} — the api_key is shown once; store it. Every operator-scoped route takes Authorization: Bearer <api_key>. Credentials are per-operator and revocable (support@textforagents.com). Records are per-operator: another operator's policy or account reads return 404, never the record.

Endpoints

Usage example

curl -X POST $BASE/register -d '{"account_name":"my-fleet","payer_wallet":"0xYourWallet"}'
curl -X POST $BASE/subscribe -H "Authorization: Bearer $KEY" -d '{"agent_count": 3}'   # trial: activates free
curl -X POST $BASE/policy -H "Authorization: Bearer $KEY" -d '{"agent_id":"agent-1","policy":{...}}'
curl -X POST $BASE/decide -H "Authorization: Bearer $KEY" -d '{"agent_id":"agent-1","rail":"evm-x402","amount_atomic":100000,"pay_to":"0x1111...","resource_url":"https://api.example.test/weather","intent":"buy weather data"}'

Support: support@textforagents.com