77trust / 100

Reminder Draft

by PaidPilot Invoice API in Markets & finance

x402 APIPassing, checked 46 min ago

PaidPilot Invoice API: Draft a payment reminder email (friendly, firm or final notice). Returns subject + plain-text body for an unpaid invoice, days overdue, the recommended tone and the next step. Template-based, deterministic. Draft only: this API never sends email.

POST
https://api.paidpilot.io/v1/reminder-draft
Price
$0.01
per call in USDC
Uptime
100%
last 30 days
Response time
556 ms
1.0 s slowest 5%
Last check
Passed
46 min ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

How to call it

POST https://api.paidpilot.io/v1/reminder-draft

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://api.paidpilot.io/v1/reminder-draft
content-type: application/json

{
  "amount": 1610.35,
  "as_of": "2026-10-11",
  "client_name": "Dana",
  "currency": "USD",
  "due_date": "2026-10-01",
  "from_name": "Acme Web Studio",
  "invoice_number": "INV-1001",
  "payment_link": "https://pay.example.com/inv-1001",
  "tone": "firm"
}

Parameters

ParameterTypeRequiredDescription
amountnumberNoAmount due
as_ofstringNoToday's date for the days-overdue count, YYYY-MM-DD (default: today, UTC)
client_namestringNoClient's name for the greeting
currencystringNoISO-4217, default USD Default: "USD".
due_datestringNoYYYY-MM-DD
final_deadline_daysintegerNoFinal notice: days the client has to pay Default: 7.
from_namestringYesYour name or business, used in the sign-off
invoice_numberstringNo
late_fee_termsstringNoYour agreed late-fee terms, e.g. "1.5% per month"; mentioned in the final notice only
payment_linkstring (uri)No
tonestringYes"friendly" (alias "polite"), "firm", or "final" One of: friendly, polite, firm, final.

Example response

The provider's example. We can't check it without paying.

{
  "as_of": "2026-10-11",
  "body": "Hi Dana,\n\nI'm following up on invoice #INV-1001 for $1,610.35, which was due on October 1, 2026. It is now 10 days past due. I haven't received payment yet, so I wanted to check in directly.\n\nYou can pay here: https://pay.example.com/inv-1001\n\nCould you let me know when payment will be sent? If there's a problem with the invoice, tell me and I'll sort it out right away.\n\nThank you,\nAcme Web Studio",
  "days_overdue": 10,
  "next_step": "If still unpaid around 14 days past due, send the final notice.",
  "note": "Draft text only. This API never sends email; review and edit before you send it yourself.",
  "recommended_tone_for_days_overdue": "firm",
  "subject": "Overdue: invoice #INV-1001",
  "tone": "firm"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.paidpilot.io/v1/reminder-draft' \
  -H 'content-type: application/json' \
  --data-raw '{"amount":1610.35,"as_of":"2026-10-11","client_name":"Dana","currency":"USD","due_date":"2026-10-01","from_name":"Acme Web Studio","invoice_number":"INV-1001","payment_link":"https://pay.example.com/inv-1001","tone":"firm"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.paidpilot.io/v1/reminder-draft' \
  -H 'content-type: application/json' \
  --data-raw '{"amount":1610.35,"as_of":"2026-10-11","client_name":"Dana","currency":"USD","due_date":"2026-10-01","from_name":"Acme Web Studio","invoice_number":"INV-1001","payment_link":"https://pay.example.com/inv-1001","tone":"firm"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.paidpilot.io%2Fv1%2Freminder-draft&method=POST
const res = await pay("https://api.paidpilot.io/v1/reminder-draft", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "amount": 1610.35,
    "as_of": "2026-10-11",
    "client_name": "Dana",
    "currency": "USD",
    "due_date": "2026-10-01",
    "from_name": "Acme Web Studio",
    "invoice_number": "INV-1001",
    "payment_link": "https://pay.example.com/inv-1001",
    "tone": "firm"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://api.paidpilot.io/v1/reminder-draft",
        json={
            "amount": 1610.35,
            "as_of": "2026-10-11",
            "client_name": "Dana",
            "currency": "USD",
            "due_date": "2026-10-01",
            "from_name": "Acme Web Studio",
            "invoice_number": "INV-1001",
            "payment_link": "https://pay.example.com/inv-1001",
            "tone": "firm",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
46 min agoPassed40248 ms$0.01
5 h agoPassed402498 ms$0.01
9 h agoPassed402218 ms$0.01
13 h agoPassed402587 ms$0.01
17 h agoPassed402983 ms$0.01
Show 10 older checks
21 h agoPassed402550 ms$0.01
25 h agoPassed402582 ms$0.01
29 h agoPassed40246 ms$0.01
33 h agoPassed402119 ms$0.01
37 h agoPassed402831 ms$0.01
41 h agoPassed402839 ms$0.01
44 h agoPassed402558 ms$0.01
2 days agoPassed402536 ms$0.01
2 days agoPassed402305 ms$0.01
2 days agoPassed40238 ms$0.01