---
title: "Create a private endpoint"
method: POST
path: "/v1/organizations/{organizationId}/services/{serviceId}/privateEndpoint"
tags: ["Service"]
---

# Create a private endpoint

`POST /v1/organizations/{organizationId}/services/{serviceId}/privateEndpoint`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/services/{serviceId}/privateEndpoint`
- Auth: HTTP basic

Create a new private endpoint. The private endpoint will be associated with this service and organization

## Path parameters

- `organizationId` string, uuid, required
- `serviceId` string, uuid, required

## Request body

- ServicPrivateEndpointePostRequest
  - `id` string, required: Private endpoint identifier
  - `description` string: Description of private endpoint

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` InstancePrivateEndpoint
    - `id` string: Private endpoint identifier
    - `description` string: Description of private endpoint
    - `cloudProvider` 'gcp' | 'aws' | 'azure': Cloud provider in which the private endpoint is lcoated
    - `region` 'ap-northeast-1' | 'ap-northeast-2' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ca-central-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'il-central-1' | 'us-east-1' | 'us-east-2' | 'us-west-2' | 'us-east1' | 'us-central1' | 'europe-west2' | 'europe-west4' | 'asia-southeast1' | 'asia-northeast1' | 'eastus' | 'eastus2' | 'westus3' | 'germanywestcentral' | 'centralus': Region in which the private endpoint is located

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
