W

Workers · Twilio Messages Create Preflight

by Workers

POSTBasePolygon

$0.005

per call · USD Coin on Base

Twilio SMS and messaging send preflight. Validate a Twilio Messages.create payload before sending SMS/MMS or other supported messages. Returns static failures, warnings, and unknowns without sending the message.

Endpoint

POST https://gate-network.matsutake-lab.workers.dev/v1/gates/twilio.messages.create/preflight

3

Calls / 30d

1

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://gate-network.matsutake-lab.workers.dev/v1/gates/twilio.messages.create/preflight", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
const data = await res.json();
cURL
curl -X POST \
  "https://gate-network.matsutake-lab.workers.dev/v1/gates/twilio.messages.create/preflight" \
  -H "Content-Type: application/json" \
  -d '{}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "failures": [],
  "ok": true,
  "unknown": [],
  "verdict": "PASS_STATIC",
  "warnings": []
}

Payment details

Pay to0x3429dd2c405f03a8a836d650e7dea43e3e9c2401
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Polygon
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Workers & similar services