---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/70104#article
headline: "70104: Invalid Public Key"
url: https://www.twilio.com/docs/api/errors/70104
inLanguage: en
dateModified: 2025-12-12T15:03:58.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 70104: Invalid Public Key

Log Level: ERROR

## Description

The Request tries to store a Public Key in Twilio. This public key cannot be parsed. Only supported key format is X.509 PEM. The prefix and suffix (-----BEGIN PUBLIC KEY-----) of the key can be present (but not mandatory).

### Possible Solution:

Make sure the public key is correct in the request:

* The key is in X.509 PEM format
* There are no copy paste errors
* All the parts of the key are present in the request.
