---
title: Get Auto-Origin TLS KEX enrollment status for the given zone
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api/python)

[SSL](https://developers.cloudflare.com/api/python/resources/ssl)

[Auto Origin TLS Kex](https://developers.cloudflare.com/api/python/resources/ssl/subresources/auto%5Forigin%5Ftls%5Fkex)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Get Auto-Origin TLS KEX enrollment status for the given zone

ssl.auto\_origin\_tls\_kex.get(AutoOriginTLSKexGetParams\*\*kwargs)  \-> [AutoOriginTLSKexGetResponse](https://developers.cloudflare.com/api/python/resources/ssl#%28resource%29%20ssl.auto%5Forigin%5Ftls%5Fkex%20%3E%20%28model%29%20auto%5Forigin%5Ftls%5Fkex%5Fget%5Fresponse%20%3E%20%28schema%29)

GET/zones/{zone\_id}/settings/auto\_origin\_tls\_kex

When enabled, Cloudflare automatically selects the preferred TLS key-exchange algorithm to use when establishing the TLS connection to the zone’s origin, picking from the algorithms permitted by the zone’s `origin_tls_compliance_modes` setting. When disabled, the default key-exchange ordering is used.

##### Security

API Token

The preferred authorization scheme for interacting with the Cloudflare API. [Create a token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).

**Example:**`Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY`

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**`X-Auth-Email: user@example.com`

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**`X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194`

##### ParametersExpand Collapse 

zone\_id: str

maxLength32

##### ReturnsExpand Collapse 

class AutoOriginTLSKexGetResponse: …

id: str

enabled: bool

Whether Auto-Origin TLS KEX selection is enabled for the zone.

modified\_on: datetime

Last time this setting was modified.

formatdate-time

### Get Auto-Origin TLS KEX enrollment status for the given zone

Python

HTTPHTTP

TypeScriptTypeScript

PythonPython

GoGo

TerraformTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
auto_origin_tls_kex = client.ssl.auto_origin_tls_kex.get(
    zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
print(auto_origin_tls_kex.id)
```

200 example

200 example

4XX example

```
{
  "errors": [],
  "messages": [],
  "result": {
    "enabled": false,
    "id": "auto_origin_tls_kex",
    "modified_on": "2014-01-01T05:20:00.12345Z"
  },
  "success": true
}
```

```
{
  "errors": [],
  "messages": [],
  "result": {
    "enabled": true,
    "id": "auto_origin_tls_kex",
    "modified_on": "2014-01-01T05:20:00.12345Z"
  },
  "success": true
}
```

```
{
  "errors": [
    {
      "code": 1009,
      "message": "Missing field 'enabled' in JSON body"
    }
  ],
  "messages": [],
  "result": {
    "enabled": false,
    "id": "auto_origin_tls_kex",
    "modified_on": "2014-01-01T05:20:00.12345Z"
  },
  "success": false
}
```

##### Returns Examples

200 example

200 example

4XX example

```
{
  "errors": [],
  "messages": [],
  "result": {
    "enabled": false,
    "id": "auto_origin_tls_kex",
    "modified_on": "2014-01-01T05:20:00.12345Z"
  },
  "success": true
}
```

```
{
  "errors": [],
  "messages": [],
  "result": {
    "enabled": true,
    "id": "auto_origin_tls_kex",
    "modified_on": "2014-01-01T05:20:00.12345Z"
  },
  "success": true
}
```

```
{
  "errors": [
    {
      "code": 1009,
      "message": "Missing field 'enabled' in JSON body"
    }
  ],
  "messages": [],
  "result": {
    "enabled": false,
    "id": "auto_origin_tls_kex",
    "modified_on": "2014-01-01T05:20:00.12345Z"
  },
  "success": false
}
```