---
title: MTLS Certificates
---

[Skip to content](#_top)

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

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# MTLS Certificates

##### [List mTLS certificates](https://developers.cloudflare.com/api/python/resources/mtls_certificates/methods/list)

mtls\_certificates.list(MTLSCertificateListParams\*\*kwargs) -> SyncSinglePage\[[MTLSCertificate](<https://developers.cloudflare.com/api/python/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>)]

GET/accounts/{account\_id}/mtls\_certificates

##### [Get mTLS certificate](https://developers.cloudflare.com/api/python/resources/mtls_certificates/methods/get)

mtls\_certificates.get(strmtls\_certificate\_id, MTLSCertificateGetParams\*\*kwargs) -> [MTLSCertificate](<https://developers.cloudflare.com/api/python/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>)

GET/accounts/{account\_id}/mtls\_certificates/{mtls\_certificate\_id}

##### [Upload mTLS certificate](https://developers.cloudflare.com/api/python/resources/mtls_certificates/methods/create)

mtls\_certificates.create(MTLSCertificateCreateParams\*\*kwargs) -> [MTLSCertificateCreateResponse](<https://developers.cloudflare.com/api/python/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/mtls\_certificates

##### [Delete mTLS certificate](https://developers.cloudflare.com/api/python/resources/mtls_certificates/methods/delete)

mtls\_certificates.delete(strmtls\_certificate\_id, MTLSCertificateDeleteParams\*\*kwargs) -> [MTLSCertificate](<https://developers.cloudflare.com/api/python/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/mtls\_certificates/{mtls\_certificate\_id}

##### ModelsExpand Collapse

<details>

<summary>

class MTLSCertificate: …

</summary>

id: Optional\[str]

Certificate identifier tag.

maxLength36

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

ca: Optional\[bool]

Indicates whether the certificate is a CA or leaf certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20ca">Link to this property</a>

certificates: Optional\[str]

The uploaded root CA certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20certificates">Link to this property</a>

expires\_on: Optional\[datetime]

When the certificate expires.

formatdate-time

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20expires_on">Link to this property</a>

issuer: Optional\[str]

The certificate authority that issued the certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20issuer">Link to this property</a>

name: Optional\[str]

Optional unique name for the certificate. Only used for human readability.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

serial\_number: Optional\[str]

The certificate serial number.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20serial_number">Link to this property</a>

signature: Optional\[str]

The type of hash used for the certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20signature">Link to this property</a>

<details>

<summary>

type: Optional\[Literal\["custom", "gateway\_managed", "access\_managed"]]

The type of the certificate, indicating how it was created and who manages it.

</summary>

One of the following:

"custom"

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"gateway\_managed"

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"access\_managed"

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

uploaded\_on: Optional\[datetime]

This is the time the certificate was uploaded.

formatdate-time

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20uploaded_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>)

<details>

<summary>

class MTLSCertificateCreateResponse: …

</summary>

id: Optional\[str]

Certificate identifier tag.

maxLength36

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

ca: Optional\[bool]

Indicates whether the certificate is a CA or leaf certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20ca">Link to this property</a>

certificates: Optional\[str]

The uploaded root CA certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20certificates">Link to this property</a>

expires\_on: Optional\[datetime]

When the certificate expires.

formatdate-time

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20expires_on">Link to this property</a>

issuer: Optional\[str]

The certificate authority that issued the certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20issuer">Link to this property</a>

name: Optional\[str]

Optional unique name for the certificate. Only used for human readability.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

serial\_number: Optional\[str]

The certificate serial number.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20serial_number">Link to this property</a>

signature: Optional\[str]

The type of hash used for the certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20signature">Link to this property</a>

<details>

<summary>

type: Optional\[Literal\["custom", "gateway\_managed", "access\_managed"]]

The type of the certificate, indicating how it was created and who manages it.

</summary>

One of the following:

"custom"

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"gateway\_managed"

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"access\_managed"

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

updated\_at: Optional\[datetime]

This is the time the certificate was updated.

formatdate-time

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

uploaded\_on: Optional\[datetime]

This is the time the certificate was uploaded.

formatdate-time

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)%20%3E%20(property)%20uploaded_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)>)

#### MTLS CertificatesAssociations

##### [List mTLS certificate associations](https://developers.cloudflare.com/api/python/resources/mtls_certificates/subresources/associations/methods/get)

mtls\_certificates.associations.get(strmtls\_certificate\_id, AssociationGetParams\*\*kwargs) -> SyncSinglePage\[[CertificateAsssociation](<https://developers.cloudflare.com/api/python/resources/mtls_certificates#(resource)%20mtls_certificates.associations%20%3E%20(model)%20certificate_asssociation%20%3E%20(schema)>)]

GET/accounts/{account\_id}/mtls\_certificates/{mtls\_certificate\_id}/associations

##### ModelsExpand Collapse

<details>

<summary>

class CertificateAsssociation: …

</summary>

service: Optional\[str]

The service using the certificate.

<a href="#(resource)%20mtls_certificates.associations%20%3E%20(model)%20certificate_asssociation%20%3E%20(schema)%20%3E%20(property)%20service">Link to this property</a>

status: Optional\[str]

Certificate deployment status for the given service.

<a href="#(resource)%20mtls_certificates.associations%20%3E%20(model)%20certificate_asssociation%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20mtls_certificates.associations%20%3E%20(model)%20certificate_asssociation%20%3E%20(schema)>)