90028: Broadcast 'IdempotencyToken' is too long
ERROR
Twilio returns this error when your broadcast request includes an IdempotencyToken value that exceeds the supported length for the request. Use a short, stable token so Twilio can identify retries without rejecting the payload.
- The
IdempotencyTokenvalue in your broadcast request is longer than the allowed limit. - Your application generates
IdempotencyTokenvalues from long concatenated strings, serialized payloads, or other unbounded input. - Your application does not validate the length of
IdempotencyTokenbefore sending the request.
- Replace the
IdempotencyTokenwith a shorter value. - Generate a compact identifier for
IdempotencyToken, such as a UUID, instead of using the full request body or other long input. - Reuse the same
IdempotencyTokenonly when retrying the same request after a timeout or similar transient failure. - Add input validation in your application so requests are rejected or corrected before they reach Twilio.