G

Gateway · Notify SMS

by Gateway

POSTBaseSolana

$0.02

per call · USD Coin on Base

Send SMS notification for payment alerts.

Endpoint

POST https://gateway.spraay.app/api/v1/notify/sms

26

Calls / 30d

11

Unique payers / 30d

Sep 8

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://gateway.spraay.app/api/v1/notify/sms", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "body": "Spraay: 500 USDC payment confirmed. Tx: 0xabc...",
    "to": "+14155551234"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://gateway.spraay.app/api/v1/notify/sms" \
  -H "Content-Type: application/json" \
  -d '{"body":"Spraay: 500 USDC payment confirmed. Tx: 0xabc...","to":"+14155551234"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "id": "ntf_123",
  "segments": 1,
  "status": "queued"
}

Payment details

Pay to0xad62f03c7514bb8c51f1ea70c2b75c37404695c8
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from Gateway & similar services