---
page_type: error
code: 20159
message: "20159: Invalid Signature"
level: ERROR
product: Platform
---

## Error - 20159

### Invalid Signature

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

#### Possible Causes

- Public key in the JWT does not match the actual private key used for signing the request.

#### Possible Solution:

- 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](https://jwt.io/).