All error codes

capability_not_supported

HTTP 400Not retryable

The sender phone number does not support the required channel capability (SMS or MMS) for this request.

How to resolve

  • Choose a sender whose capabilities include SMS (or MMS when sending media).

Example response

JSON

{
  "object": "error",
  "code": "capability_not_supported",
  "message": "The sender phone number does not support the required channel capability (SMS or MMS) for this request.",
  "request_id": "req_example123",
  "docs_url": "https://docs.statxt.com/api/errors/capability_not_supported",
  "retryable": false,
  "recommended_action": "Choose a sender whose capabilities include the required channel."
}

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 === "capability_not_supported") {
    // The sender phone number does not support the required channel capability (SMS or MMS) for this request.
    console.error(err.requestId) // include in support tickets
  }
}

Public reference: /docs/errors/capability_not_supported