---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/53666#article
headline: "53666: Invalid public key for media tracks encryption in composition settings"
url: https://www.twilio.com/docs/api/errors/53666
inLanguage: en
dateModified: 2026-03-11T20:43:38.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 53666: Invalid public key for media tracks encryption in composition settings

Log Type: APPLICATION

Log Level: ERROR

## Description

The public key configured in your account's composition settings is not valid.

Media composition has been marked as FAILED and will not be retried.

### Possible causes

* If you have specified a public key to cryptographically protect media tracks, this is most likely due to the fact that the key value is not correct.

### Possible solutions

* In the composition settings section of your account's console, set a valid public key or disable the encryption (media will be uploaded in raw).
