Api reference
Replace Orphaned Line (Free)
Replace an orphaned phone line with a new one at no charge. Only works on lines with status 'orphaned' (XMPP server went offline). The old line stays accessible for history viewing.
Replace an orphaned phone line with a new one at no charge. Only works on lines with status 'orphaned' (XMPP server went offline). The old line stays accessible for history viewing.
Authorization
bearer AuthorizationBearer <token>
Privy access token (dashboard sessions) or API key (programmatic access — issue #61). Required for endpoints that operate on provisioned resources (e.g. sending SMS from your own number, listing /numbers/mine).
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
lineId?string
ID of the orphaned line to replace (from URL path)
Response Body
application/json
application/json
curl -X POST "https://x402.dial.wtf/api/v1/numbers/replace/:lineId" \ -H "Content-Type: application/json" \ -d '{}'{
"success": true,
"newLineId": "string",
"newJobId": "string",
"message": "string"
}{
"x402Version": 2,
"accepts": [
{
"scheme": "exact",
"network": "eip155:8453",
"amount": "100000",
"payTo": "string"
}
]
}