---
title: "POST /2020-05-31/public-key"
method: POST
path: "/2020-05-31/public-key"
---

# POST /2020-05-31/public-key

`POST /2020-05-31/public-key`

Uploads a public key to CloudFront that you can use with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">signed URLs and signed cookies</a>, or with <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html">field-level encryption</a>.

## Response `201`

Success

## Other responses

- `480` — PublicKeyAlreadyExists
- `481` — InvalidArgument
- `482` — TooManyPublicKeys

---

[API](https://skmtc.net/aws/apis/cloudfront.md) · [All operations](https://skmtc.net/aws/apis/cloudfront/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/cloudfront/versions/fd674fc97471/schema)
