---
title: "Create One Private Endpoint for Encryption at Rest Using Customer Key Management for One Cloud Provider in One Project"
method: POST
path: "/api/atlas/v2/groups/{groupId}/encryptionAtRest/{cloudProvider}/privateEndpoints"
tags: ["Encryption at Rest using Customer Key Management"]
---

# Create One Private Endpoint for Encryption at Rest Using Customer Key Management for One Cloud Provider in One Project

`POST /api/atlas/v2/groups/{groupId}/encryptionAtRest/{cloudProvider}/privateEndpoints`

Creates a private endpoint in the specified region for encryption at rest using customer key management.

## Path parameters

- `groupId` string, required
- `cloudProvider` 'AZURE' | 'AWS', required

## Query parameters

- `envelope` boolean
- `pretty` boolean

## Response `202`

Accepted

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `429` — Too Many Requests.
- `500` — Internal Server Error.

---

[API](https://skmtc.dev/mongodb/apis/atlas-admin-api.md) · [All operations](https://skmtc.dev/mongodb/apis/atlas-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mongodb/atlas-admin-api/revisions/e37e8ef8429f/schema)
