All error codes
campaign_not_configured
HTTP 422Not retryableNo compliance campaign binding is configured for this client. Premium numbers cannot be searched or purchased until binding is complete.
How to resolve
- Contact support to configure the client’s compliance campaign binding, then retry.
Example response
JSON
{
"object": "error",
"code": "campaign_not_configured",
"message": "No compliance campaign binding is configured for this client. Premium numbers cannot be searched or purchased until binding is complete.",
"request_id": "req_example123",
"docs_url": "https://docs.statxt.com/api/errors/campaign_not_configured",
"retryable": false,
"recommended_action": "Contact support to configure the client campaign binding, then retry."
}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 === "campaign_not_configured") {
// No compliance campaign binding is configured for this client. Premium numbers cannot be searched or purchased until binding is complete.
console.error(err.requestId) // include in support tickets
}
}Public reference: /docs/errors/campaign_not_configured