---
title: Custom Csrs
---

[Skip to content](#%5Ftop) 

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

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Custom Csrs

##### [List Custom CSRs](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcsrs/methods/list)

client.customCsrs.list(CustomCsrListParams { account\_id, zone\_id, direction, 3 more } params?, RequestOptionsoptions?): V4PagePaginationArray<[CustomCsrListResponse](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcsrs#%28resource%29%20custom%5Fcsrs%20%3E%20%28model%29%20custom%5Fcsr%5Flist%5Fresponse%20%3E%20%28schema%29) { id, created\_at, key\_type, 11 more } \>

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_csrs

##### [Create Custom CSR](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcsrs/methods/create)

client.customCsrs.create(CustomCsrCreateParams { common\_name, country, locality, 9 more } params, RequestOptionsoptions?): [CustomCsrCreateResponse](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcsrs#%28resource%29%20custom%5Fcsrs%20%3E%20%28model%29%20custom%5Fcsr%5Fcreate%5Fresponse%20%3E%20%28schema%29) { id, created\_at, key\_type, 11 more } 

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_csrs

##### [Custom CSR Details](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcsrs/methods/get)

client.customCsrs.get(stringcustomCsrID, CustomCsrGetParams { account\_id, zone\_id } params?, RequestOptionsoptions?): [CustomCsrGetResponse](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcsrs#%28resource%29%20custom%5Fcsrs%20%3E%20%28model%29%20custom%5Fcsr%5Fget%5Fresponse%20%3E%20%28schema%29) { id, created\_at, key\_type, 11 more } 

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_csrs/{custom\_csr\_id}

##### [Delete Custom CSR](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcsrs/methods/delete)

client.customCsrs.delete(stringcustomCsrID, CustomCsrDeleteParams { account\_id, zone\_id } params?, RequestOptionsoptions?): [CustomCsrDeleteResponse](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcsrs#%28resource%29%20custom%5Fcsrs%20%3E%20%28model%29%20custom%5Fcsr%5Fdelete%5Fresponse%20%3E%20%28schema%29) { id } 

DELETE/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_csrs/{custom\_csr\_id}

##### ModelsExpand Collapse 

CustomCsr { id, created\_at, key\_type, 8 more } 

A custom Certificate Signing Request (CSR).

id: string

Custom CSR identifier tag.

maxLength36

created\_at: string

When the CSR was created.

formatdate-time

key\_type: "rsa2048" | "p256v1"

The key algorithm used to generate the CSR.

One of the following:

"rsa2048"

"p256v1"

common\_name?: string

The common name (domain) for the CSR.

maxLength64

country?: string

Two-letter ISO 3166-1 alpha-2 country code.

csr?: string

The PEM-encoded Certificate Signing Request.

locality?: string

City or locality name.

organization?: string

Organization name.

organizational\_unit?: string

Organizational unit for the CSR subject.

sans?: Array<string\>

Subject Alternative Names included in the CSR.

state?: string

State or province name.

CustomCsrListResponse { id, created\_at, key\_type, 11 more } 

A custom Certificate Signing Request (CSR).

id: string

Custom CSR identifier tag.

maxLength36

created\_at: string

When the CSR was created.

formatdate-time

key\_type: "rsa2048" | "p256v1"

The key algorithm used to generate the CSR.

One of the following:

"rsa2048"

"p256v1"

account\_tag?: string

Account identifier associated with this CSR.

common\_name?: string

The common name (domain) for the CSR.

maxLength64

country?: string

Two-letter ISO 3166-1 alpha-2 country code.

csr?: string

The PEM-encoded Certificate Signing Request.

description?: string

Optional description for the CSR.

locality?: string

City or locality name.

name?: string

Human-readable name for the CSR.

organization?: string

Organization name.

organizational\_unit?: string

Organizational unit name.

sans?: Array<string\>

Subject Alternative Names included in the CSR.

state?: string

State or province name.

CustomCsrCreateResponse { id, created\_at, key\_type, 11 more } 

A custom Certificate Signing Request (CSR).

id: string

Custom CSR identifier tag.

maxLength36

created\_at: string

When the CSR was created.

formatdate-time

key\_type: "rsa2048" | "p256v1"

The key algorithm used to generate the CSR.

One of the following:

"rsa2048"

"p256v1"

account\_tag?: string

Account identifier associated with this CSR.

common\_name?: string

The common name (domain) for the CSR.

maxLength64

country?: string

Two-letter ISO 3166-1 alpha-2 country code.

csr?: string

The PEM-encoded Certificate Signing Request.

description?: string

Optional description for the CSR.

locality?: string

City or locality name.

name?: string

Human-readable name for the CSR.

organization?: string

Organization name.

organizational\_unit?: string

Organizational unit name.

sans?: Array<string\>

Subject Alternative Names included in the CSR.

state?: string

State or province name.

CustomCsrGetResponse { id, created\_at, key\_type, 11 more } 

A custom Certificate Signing Request (CSR).

id: string

Custom CSR identifier tag.

maxLength36

created\_at: string

When the CSR was created.

formatdate-time

key\_type: "rsa2048" | "p256v1"

The key algorithm used to generate the CSR.

One of the following:

"rsa2048"

"p256v1"

account\_tag?: string

Account identifier associated with this CSR.

common\_name?: string

The common name (domain) for the CSR.

maxLength64

country?: string

Two-letter ISO 3166-1 alpha-2 country code.

csr?: string

The PEM-encoded Certificate Signing Request.

description?: string

Optional description for the CSR.

locality?: string

City or locality name.

name?: string

Human-readable name for the CSR.

organization?: string

Organization name.

organizational\_unit?: string

Organizational unit name.

sans?: Array<string\>

Subject Alternative Names included in the CSR.

state?: string

State or province name.

CustomCsrDeleteResponse { id } 

id?: string

Custom CSR identifier tag.

maxLength36