Get the cluster's mTLS settings
const url = 'http://localhost:8000/clusters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mtls';
const options = {
method: 'GET',
headers: {'API-Version': '2026-06-01.beta', 'API-Key': '<API-Key>'}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}curl --request GET \
--url http://localhost:8000/clusters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mtls \
--header 'API-Key: <API-Key>' \
--header 'API-Version: 2026-06-01.beta'Returns the cluster’s mTLS domain choice, the mTLS hostnames of each realm and, for a custom domain, the wildcard
DNS record to add. Returns 404 when the cluster does not exist or is not a TideCloak cluster on version 0.14.46
or later.
Required scope: clusters:read
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”The request has succeeded.
A cluster’s mTLS domain choice and the hostnames the cluster reports for it.
object
The stored choice: a verified custom domain of the cluster, or an empty string for the default domain.
The domain the cluster is using for mTLS. It differs from mtls_host while the cluster falls back to the default domain, and is empty until the cluster has reported.
false when the cluster rejected mtls_host and uses the default domain meanwhile.
Each realm with its mTLS hostnames, sorted by realm name.
One realm’s mTLS hostnames.
object
Realm name.
Hostnames the realm answers on for mTLS, as reported by the cluster.
The wildcard record to add when host is a custom domain.
object
Record name.
Record type, such as CNAME.
Record value.
Example generated
{
"mtls_host": "example",
"host": "example",
"host_valid": true,
"realms": [
{
"name": "example",
"hostnames": [
"example"
]
}
],
"custom_domain_record": {
"name": "example",
"type": "example",
"value": "example"
}
}Access is unauthorized.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}The server cannot find the requested resource.
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Client error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Headers
Section titled “Headers”Server error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}Server error
RFC 9457 Problem Details object.
object
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com"
}