68007: Authentication Token Error
VERIFY
ERROR
This error occurs when Twilio cannot generate a Verify Push AccessToken for your request. The AccessToken resource authenticates client-side requests that enroll or register a Verify Push Entity or Factor, and the required factorType value currently supports only push.
- Your request to
POST /v2/Services/{ServiceSid}/AccessTokensincluded afactorTypevalue other thanpush. - Your application attempted to use the Verify Push
AccessTokenflow for a factor that is not part of the Push enrollment flow. TheAccessTokenresource is for Verify Push, while other Verify factors use their ownFactorandChallengeresources. - The request parameters do not match the supported Verify Push enrollment pattern, which requires a valid
identityand a supportedfactorType.
- Set
factorTypetopushwhen you create theAccessToken. - Use the
AccessTokenresource only for Verify Push enrollment or registration in your client application. - If you are building a non-Push Verify flow such as TOTP, switch to the factor-specific Verify API for that flow instead of the Push
AccessTokenflow. This follows from Twilio's Verify resource model, whereAccessTokenis documented for Push andFactorandChallengeare documented for Push and TOTP operations. - Confirm that
identityis an immutable identifier from your system and that you are creating the token under the correct VerifyServiceSid, then retry the request.