20159: Invalid Signature



PLATFORM
ERROR

The JWT provided to the Twilio API has an invalid or mismatching signature.

  • Public key in the JWT does not match the actual private key used for signing the request.
  • Make sure the private key used for signing the JWT matches the public key identifier in JWT.
  • To check whether the JWT is structurally correct, you can use the tools available at jwt.io(link takes you to an external page).