MTLS Certificates

mtls_certificates

Methods

Upload M TLS Certificate -> Envelope<{ id, ca, certificates, 7 more... }>
post/accounts/{account_id}/mtls_certificates

Upload a certificate that you want to use with mTLS-enabled Cloudflare services.

Delete M TLS Certificate -> Envelope<>
delete/accounts/{account_id}/mtls_certificates/{mtls_certificate_id}

Deletes the mTLS certificate unless the certificate is in use by one or more Cloudflare services.

Security
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

Accepted Permissions (at least one required)

Account: SSL and Certificates Write

Parameters
account_id: string

Identifier

mtls_certificate_id: string

Identifier

Response fields
errors: Array<>
messages: Array<>
success: true

Whether the API call was successful

result:
Optional
Request example
200Example
Get M TLS Certificate -> Envelope<>
get/accounts/{account_id}/mtls_certificates/{mtls_certificate_id}

Fetches a single mTLS certificate.

List M TLS Certificates -> SinglePage<>
get/accounts/{account_id}/mtls_certificates

Lists all mTLS certificates.

Domain types

MTLSCertificate = { id, ca, certificates, 6 more... }
MTLS Certificates

Associations

mtls_certificates.associations

Methods

List M TLS Certificate Associations -> Envelope<Array<>>
get/accounts/{account_id}/mtls_certificates/{mtls_certificate_id}/associations

Lists all active associations between the certificate and Cloudflare services.

Domain types

CertificateAsssociation = { service, status }