Send SMS (Line)
Send an SMS through a specific Dial line. Bot auth required. Per-line suppression checks and moderation enforced.
Send an SMS through a specific Dial line. Bot auth required. Per-line suppression checks and moderation enforced.
Authorization
bearer AuthorizationBearer <token>
Privy access token (dashboard sessions, ~1h TTL) or long-lived dial_live_* / dial_test_* API key minted from /dashboard/billing. API keys are scope-gated per route (sms:send, numbers:read, account:read, etc.); Privy sessions bypass scope checks. See /docs/api-reference/api-keys for the full scope catalogue.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://payphone.wtf/api/v1/xmpp/messages/send" \ -H "Content-Type: application/json" \ -d '{ "lineId": "string", "to": "string", "body": "string" }'{
"success": true,
"messageId": "string",
"queued": true,
"blocked": true
}{
"x402Version": 2,
"accepts": [
{
"scheme": "exact",
"network": "eip155:8453",
"amount": "100000",
"payTo": "string"
}
]
}