All error codes
action_required
HTTP 422Not retryableThe operation cannot proceed automatically. Inspect `action_required` on the operation object and retry with the appropriate parameters.
How to resolve
- The async operation needs additional input before it can proceed.
- Inspect `action_required` on the operation object — typically retry rotate with `area_code` or `replacement_number`.
Example response
JSON
{
"object": "error",
"code": "action_required",
"message": "The operation cannot proceed automatically. Inspect `action_required` on the operation object and retry with the appropriate parameters.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/action_required",
"retryable": false,
"recommended_action": "Inspect action_required on the operation and supply the missing parameters."
}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 === "action_required") {
// The operation cannot proceed automatically. Inspect `action_required` on the operation object and retry with the appropriate parameters.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/action_required