All error codes

ambiguous_contact

HTTP 409Not retryable

Multiple contacts share the same phone number. Do not guess — ask which contact to use.

How to resolve

  • Call get_contact_by_phone and ask the user which contact to use.
  • Do not guess when multiple contacts share a phone number.

Example response

JSON

{
  "object": "error",
  "code": "ambiguous_contact",
  "message": "Multiple contacts share the same phone number. Do not guess — ask which contact to use.",
  "request_id": "req_example123",
  "docs_url": "https://docs.statxt.com/api/errors/ambiguous_contact",
  "retryable": false,
  "recommended_action": "Call get_contact_by_phone and ask the user to choose among the returned contacts."
}

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 === "ambiguous_contact") {
    // Multiple contacts share the same phone number. Do not guess — ask which contact to use.
    console.error(err.requestId) // include in support tickets
  }
}

Public reference: /docs/errors/ambiguous_contact