All error codes
sender_inactive
HTTP 400Not retryableThe sender phone number exists but is not active/sendable.
How to resolve
- Activate the sender in the dashboard, or choose another active number.
Example response
JSON
{
"object": "error",
"code": "sender_inactive",
"message": "The sender phone number exists but is not active/sendable.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/sender_inactive",
"retryable": false,
"recommended_action": "Activate the sender or choose another active number."
}SDK handling
TypeScript
import { StatxtClient, StatxtApiError } from "@statxt/sdk"
const client = new StatxtClient({ apiKey: process.env.STATXT_API_KEY! })
try {
await client.messages.send({ ... })
} catch (err) {
if (err instanceof StatxtApiError && err.code === "sender_inactive") {
// The sender phone number exists but is not active/sendable.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/sender_inactive