60420: Invalid Contact ID format
VERIFY
ERROR
Twilio returns this error when your Verify request includes a Contact ID that Twilio cannot parse. In Verify Passkeys, a user is represented as an Entity, and Twilio recommends using an immutable identifier such as a system UUID, GUID, or SID for the identity value. That identity should be 8 to 64 characters long and contain only dash-separated alphanumeric characters. If you send a Passkeys response.userHandle, it must be a Base64-encoded, URL-safe contact ID.
- The Contact ID or
identityvalue contains characters that do not match the allowed format for VerifyEntityidentifiers. - The Contact ID is too short or too long for the Verify
Entityidentifier requirements. - The
identityvalue changed between Passkeys factor creation and later requests, such as challenge creation. Twilio expects you to use the sameidentityvalue when you create a Passkeys challenge. - The Passkeys
response.userHandlevalue is not Base64-encoded and URL-safe.
- Generate an immutable, non-PII identifier in your system, such as a UUID, GUID, or SID, and use that value consistently as the user's
identity. - Validate the Contact ID before you send the request. For Verify
Entityidentifiers, keep the value between 8 and 64 characters and use only dash-separated alphanumeric characters. - Store the
identityvalue you used when you created the Passkeys factor, then reuse that exact value in later Verify requests for the same user. - If you send
response.userHandlein a Passkeys flow, pass it exactly as returned by the authenticator and do not manually reformat or re-encode it.