---
title: MTLS Certificates
---

[Skip to content](#_top)

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

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/typescript/resources/mtls_certificates/methods/list)

client.mtlsCertificates.list(MTLSCertificateListParams {account\_id, type } params, RequestOptionsoptions?): SinglePage< [MTLSCertificate](<https://developers.cloudflare.com/api/typescript/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>) {id, ca, certificates, 7 more } >

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

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

client.mtlsCertificates.get(stringmtlsCertificateID, MTLSCertificateGetParams {account\_id } params, RequestOptionsoptions?): [MTLSCertificate](<https://developers.cloudflare.com/api/typescript/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>) {id, ca, certificates, 7 more }

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

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

client.mtlsCertificates.create(MTLSCertificateCreateParams {account\_id, ca, certificates, 2 more } params, RequestOptionsoptions?): [MTLSCertificateCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate_create_response%20%3E%20(schema)>) {id, ca, certificates, 8 more }

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

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

client.mtlsCertificates.delete(stringmtlsCertificateID, MTLSCertificateDeleteParams {account\_id } params, RequestOptionsoptions?): [MTLSCertificate](<https://developers.cloudflare.com/api/typescript/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>) {id, ca, certificates, 7 more }

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

##### ModelsExpand Collapse

<details>

<summary>

MTLSCertificate {id, ca, certificates, 7 more }

</summary>

id?: string

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?: boolean

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?: string

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?: string

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?: string

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?: string

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?: string

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?: string

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?: "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?: string

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>

MTLSCertificateCreateResponse {id, ca, certificates, 8 more }

</summary>

id?: string

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?: boolean

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?: string

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?: string

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?: string

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?: string

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?: string

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?: string

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?: "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?: string

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?: string

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/typescript/resources/mtls_certificates/subresources/associations/methods/get)

client.mtlsCertificates.associations.get(stringmtlsCertificateID, AssociationGetParams {account\_id } params, RequestOptionsoptions?): SinglePage< [CertificateAsssociation](<https://developers.cloudflare.com/api/typescript/resources/mtls_certificates#(resource)%20mtls_certificates.associations%20%3E%20(model)%20certificate_asssociation%20%3E%20(schema)>) {service, status } >

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

##### ModelsExpand Collapse

<details>

<summary>

CertificateAsssociation {service, status }

</summary>

service?: string

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?: string

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)>)