Create Custom Domain
Changed onRegisters a custom domain for a control plane. After creation, Konnect provisions a TLS certificate and configures SNI routing, transitioning the domain through initializing → ready. To complete setup, configure two CNAME records at your DNS registrar: one pointing your domain to the Konnect gateway hostname, and one pointing _acme-challenge.<your-domain> to the ACME challenge hostname provided by Konnect. Use the online-status endpoint to verify both records are correctly configured.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Request body
Request schema for creating a custom domain in the global API.
ID of the Konnect control plane. Can be retrieved from the Control Planes API or the Konnect UI.
Geographic region of the control plane. Supported values:
- us — United States
- eu — Europe
- au — Australia
- me — Middle East
- in — India
- sg — Singapore
- uk — United Kingdom
Domain name of the custom domain.
Pre-release Feature This feature is currently in beta and is subject to change.
Kind of the custom domain based on Cloud Gateway deployment.
Pre-release Feature This feature is currently in beta and is subject to change.
Type of gateway the custom domain belongs to: api for an API Gateway or ai for an AI Gateway. Applies only to dedicated custom domains. Defaults to api when omitted.
Example request
{
"control_plane_id": "0949471e-b759-45ba-87ab-ee63fb781388",
"domain": "example.com"
}Response
Response format for creating a custom domain for a control-plane in the global API.
Object containing information about a custom domain for a control-plane.
ID of the Konnect control plane. Can be retrieved from the Control Planes API or the Konnect UI.
Geographic region of the control plane. Supported values:
- us — United States
- eu — Europe
- au — Australia
- me — Middle East
- in — India
- sg — Singapore
- uk — United Kingdom
Domain name of the custom domain.
Certificate ID for the certificate representing this domain and stored on data-planes for this control-plane. Can be retrieved via the control-planes API for this custom domain's control-plane.
Server Name Indication ID for this domain and stored on data-planes for this control-plane. Can be retrieved via the control-planes API for this custom domain's control-plane.
The current state of the custom domain. Possible values:
- created — The domain has been registered but TLS provisioning has not yet started.
- initializing — Konnect is provisioning the TLS certificate and configuring SNI routing.
- ready — The domain is fully provisioned and serving traffic.
- terminating — The domain is being deleted and its TLS certificate is being removed.
- terminated — The domain has been fully deleted and is no longer available.
- error — Provisioning failed; check state_metadata for details.
Metadata describing the backing state of the custom domain and why it may be in an erroneous state.
Monotonically-increasing version count of the custom domain, to indicate the order of updates to the custom domain.
An RFC-3339 timestamp representation of custom domain creation date.
An RFC-3339 timestamp representation of custom domain update date.
Pre-release Feature This feature is currently in beta and is subject to change.
Kind of the custom domain based on Cloud Gateway deployment.
Pre-release Feature This feature is currently in beta and is subject to change.
Type of gateway the custom domain belongs to: api for an API Gateway or ai for an AI Gateway. Applies only to dedicated custom domains. Defaults to api when omitted.
Example response
{
"id": "39ed3790-085d-4605-9627-f96d86aaf425",
"control_plane_id": "0949471e-b759-45ba-87ab-ee63fb781388",
"domain": "example.com",
"certificate_id": "3b7cbeee-fbec-440e-a5ef-89e7dec3b9d0",
"sni_id": "a8f11ea8-af09-4422-9735-5d4f8910aba1",
"state_metadata": {
"reported_status": "INVALID",
"reason": "CNAME points to '_acme-challenge.<prefix>.gateways.konghq.tech.' instead of '_acme-challenge.<prefix>.acme.gateways.konghq.tech.'\n"
},
"entity_version": 1,
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- warning
added the new
ukenum value to thecontrol_plane_georesponse property for the response status - info
added the new
ukenum value to the request propertycontrol_plane_geo
- warning
- breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status
2 more changes in this revision
- breaking