---
title: "Set up custom hostname"
method: POST
path: "/vpc-connect/custom-hostnames"
tags: ["VPC Connect"]
---

# Set up custom hostname

`POST /vpc-connect/custom-hostnames`

Sets up a custom hostname for a VPC endpoint connection. The hostname is a DNS record
under cloudamqp.com that matches the instance's TLS certificate, allowing secure
connections through the private endpoint.

- **AWS**: A CNAME record is created pointing to the endpoint's DNS name. No `endpoint_ip` required.
- **Azure/GCP**: An A record is created pointing to the provided private IP address. `endpoint_ip` is required.

## Request body

- object
  - `endpoint_id` string, required — The VPC endpoint connection ID
  - `endpoint_ip` string — Private IP address of the endpoint (required for Azure/GCP, must be RFC 1918)

## Response `204`

Custom hostname setup initiated

---

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