20106: Invalid Access Token grants
API
ERROR
Twilio accepted the Access Token's signature and issuer, but rejected the token because the grants claim was invalid, could not be parsed, or did not permit the requested operation.
- The token's
grantsclaim did not include the product-specific grant required for the SDK or API being used (for example, Video requires a mandatoryvideogrant). - The
grantsobject was malformed or used unrecognized fields, so Twilio could not parse it. - A required field inside a product grant was missing or incorrect (for example,
SyncGrantrequires aserviceSid). - A token generated for one product type was attempted in a different context (for example, a Verify Push Access Token used with client-side SDKs), which is not supported.
- Regenerate the Access Token server-side and ensure the
grantsclaim includes at least one correct, product-specific grant for the capability you need; use Twilio server-side SDK helpers to construct grants and tokens. - For Video, include a
VideoGrant; to limit access to a single Room, set theroomvalue within that grant (for example, usingAccessToken.VideoGrant). - For Sync, include a
SyncGrantand provide the requiredserviceSid. - If you're using Verify Push, create a product-specific Access Token using the Verify Access Token resource instead of reusing tokens from other products.