---
title: Page Shield
---

[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**

# Page Shield

##### [Get client-side security settings](https://developers.cloudflare.com/api/typescript/resources/page_shield/methods/get)

client.pageShield.get(PageShieldGetParams {zone\_id } params, RequestOptionsoptions?): [PageShieldGetResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield%20%3E%20(model)%20page_shield_get_response%20%3E%20(schema)>) {enabled, updated\_at, use\_cloudflare\_reporting\_endpoint, use\_connection\_url\_path } | null

GET/zones/{zone\_id}/page\_shield

##### [Update client-side security settings](https://developers.cloudflare.com/api/typescript/resources/page_shield/methods/update)

client.pageShield.update(PageShieldUpdateParams {zone\_id, enabled, use\_cloudflare\_reporting\_endpoint, use\_connection\_url\_path } params, RequestOptionsoptions?): [PageShieldUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield%20%3E%20(model)%20page_shield_update_response%20%3E%20(schema)>) {enabled, updated\_at, use\_cloudflare\_reporting\_endpoint, use\_connection\_url\_path }

PUT/zones/{zone\_id}/page\_shield

##### ModelsExpand Collapse

<details>

<summary>

PageShieldGetResponse {enabled, updated\_at, use\_cloudflare\_reporting\_endpoint, use\_connection\_url\_path }

</summary>

enabled: boolean

When true, indicates that Client-Side Security is enabled.

<a href="#(resource)%20page_shield%20%3E%20(model)%20page_shield_get_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

updated\_at: string

The timestamp of when Client-Side Security was last updated.

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

use\_cloudflare\_reporting\_endpoint: boolean

When true, CSP reports will be sent to <a href="https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report">https://csp-reporting.cloudflare.com/cdn-cgi/script\_monitor/report</a>

<a href="#(resource)%20page_shield%20%3E%20(model)%20page_shield_get_response%20%3E%20(schema)%20%3E%20(property)%20use_cloudflare_reporting_endpoint">Link to this property</a>

use\_connection\_url\_path: boolean

When true, the paths associated with connections URLs will also be analyzed.

<a href="#(resource)%20page_shield%20%3E%20(model)%20page_shield_get_response%20%3E%20(schema)%20%3E%20(property)%20use_connection_url_path">Link to this property</a>

</details>

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

<details>

<summary>

PageShieldUpdateResponse {enabled, updated\_at, use\_cloudflare\_reporting\_endpoint, use\_connection\_url\_path }

</summary>

enabled: boolean

When true, indicates that Client-Side Security is enabled.

<a href="#(resource)%20page_shield%20%3E%20(model)%20page_shield_update_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

updated\_at: string

The timestamp of when Client-Side Security was last updated.

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

use\_cloudflare\_reporting\_endpoint: boolean

When true, CSP reports will be sent to <a href="https://csp-reporting.cloudflare.com/cdn-cgi/script_monitor/report">https://csp-reporting.cloudflare.com/cdn-cgi/script\_monitor/report</a>

<a href="#(resource)%20page_shield%20%3E%20(model)%20page_shield_update_response%20%3E%20(schema)%20%3E%20(property)%20use_cloudflare_reporting_endpoint">Link to this property</a>

use\_connection\_url\_path: boolean

When true, the paths associated with connections URLs will also be analyzed.

<a href="#(resource)%20page_shield%20%3E%20(model)%20page_shield_update_response%20%3E%20(schema)%20%3E%20(property)%20use_connection_url_path">Link to this property</a>

</details>

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

#### Page ShieldPolicies

##### [List content security rules](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/policies/methods/list)

client.pageShield.policies.list(PolicyListParams {zone\_id } params, RequestOptionsoptions?): SinglePage< [PolicyListResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)>) {id, action, description, 3 more } >

GET/zones/{zone\_id}/page\_shield/policies

##### [Get a content security rule](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/policies/methods/get)

client.pageShield.policies.get(stringpolicyID, PolicyGetParams {zone\_id } params, RequestOptionsoptions?): [PolicyGetResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)>) {id, action, description, 3 more } | null

GET/zones/{zone\_id}/page\_shield/policies/{policy\_id}

##### [Create a content security rule](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/policies/methods/create)

client.pageShield.policies.create(PolicyCreateParams {zone\_id, action, description, 3 more } params, RequestOptionsoptions?): [PolicyCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)>) {id, action, description, 3 more } | null

POST/zones/{zone\_id}/page\_shield/policies

##### [Update a content security rule](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/policies/methods/update)

client.pageShield.policies.update(stringpolicyID, PolicyUpdateParams {zone\_id, action, description, 3 more } params, RequestOptionsoptions?): [PolicyUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)>) {id, action, description, 3 more } | null

PUT/zones/{zone\_id}/page\_shield/policies/{policy\_id}

##### [Delete a content security rule](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/policies/methods/delete)

client.pageShield.policies.delete(stringpolicyID, PolicyDeleteParams {zone\_id } params, RequestOptionsoptions?): void

DELETE/zones/{zone\_id}/page\_shield/policies/{policy\_id}

##### ModelsExpand Collapse

<details>

<summary>

PolicyListResponse {id, action, description, 3 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

action: "allow"| "log"| "add\_reporting\_directives"

The action to take if the expression matches

</summary>

One of the following:

"allow"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

"log"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

"add\_reporting\_directives"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

description: string

A description for the policy

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled: boolean

Whether the policy is enabled

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

The expression which must match for the policy to be applied, using the Cloudflare Firewall rule expression syntax

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

value: string

The policy which will be applied

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20page_shield.policies%20%3E%20(model)%20policy_list_response%20%3E%20(schema)>)

<details>

<summary>

PolicyGetResponse {id, action, description, 3 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

action: "allow"| "log"| "add\_reporting\_directives"

The action to take if the expression matches

</summary>

One of the following:

"allow"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

"log"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

"add\_reporting\_directives"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

description: string

A description for the policy

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled: boolean

Whether the policy is enabled

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

The expression which must match for the policy to be applied, using the Cloudflare Firewall rule expression syntax

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

value: string

The policy which will be applied

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20page_shield.policies%20%3E%20(model)%20policy_get_response%20%3E%20(schema)>)

<details>

<summary>

PolicyCreateResponse {id, action, description, 3 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

action: "allow"| "log"| "add\_reporting\_directives"

The action to take if the expression matches

</summary>

One of the following:

"allow"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

"log"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

"add\_reporting\_directives"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

description: string

A description for the policy

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled: boolean

Whether the policy is enabled

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

The expression which must match for the policy to be applied, using the Cloudflare Firewall rule expression syntax

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

value: string

The policy which will be applied

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20page_shield.policies%20%3E%20(model)%20policy_create_response%20%3E%20(schema)>)

<details>

<summary>

PolicyUpdateResponse {id, action, description, 3 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

action: "allow"| "log"| "add\_reporting\_directives"

The action to take if the expression matches

</summary>

One of the following:

"allow"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

"log"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

"add\_reporting\_directives"

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

description: string

A description for the policy

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

enabled: boolean

Whether the policy is enabled

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

expression: string

The expression which must match for the policy to be applied, using the Cloudflare Firewall rule expression syntax

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

value: string

The policy which will be applied

<a href="#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20page_shield.policies%20%3E%20(model)%20policy_update_response%20%3E%20(schema)>)

#### Page ShieldConnections

##### [List detected connections](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/connections/methods/list)

client.pageShield.connections.list(ConnectionListParams {zone\_id, direction, exclude\_cdn\_cgi, 10 more } params, RequestOptionsoptions?): SinglePage< [ConnectionListResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)>) {id, added\_at, first\_seen\_at, 10 more } >

GET/zones/{zone\_id}/page\_shield/connections

##### [Get a detected connection](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/connections/methods/get)

client.pageShield.connections.get(stringconnectionID, ConnectionGetParams {zone\_id } params, RequestOptionsoptions?): [ConnectionGetResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)>) {id, added\_at, first\_seen\_at, 10 more } | null

GET/zones/{zone\_id}/page\_shield/connections/{connection\_id}

##### ModelsExpand Collapse

<details>

<summary>

ConnectionListResponse {id, added\_at, first\_seen\_at, 10 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

added\_at: string

formatdate-time

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20added_at">Link to this property</a>

first\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20first_seen_at">Link to this property</a>

host: string

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20host">Link to this property</a>

last\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20last_seen_at">Link to this property</a>

url: string

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20url">Link to this property</a>

url\_contains\_cdn\_cgi\_path: boolean

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20url_contains_cdn_cgi_path">Link to this property</a>

domain\_reported\_malicious?: boolean

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20domain_reported_malicious">Link to this property</a>

first\_page\_url?: string

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20first_page_url">Link to this property</a>

malicious\_domain\_categories?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20malicious_domain_categories">Link to this property</a>

malicious\_url\_categories?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20malicious_url_categories">Link to this property</a>

page\_urls?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20page_urls">Link to this property</a>

url\_reported\_malicious?: boolean

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)%20%3E%20(property)%20url_reported_malicious">Link to this property</a>

</details>

[Link to this property](<#(resource)%20page_shield.connections%20%3E%20(model)%20connection_list_response%20%3E%20(schema)>)

<details>

<summary>

ConnectionGetResponse {id, added\_at, first\_seen\_at, 10 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

added\_at: string

formatdate-time

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20added_at">Link to this property</a>

first\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20first_seen_at">Link to this property</a>

host: string

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20host">Link to this property</a>

last\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20last_seen_at">Link to this property</a>

url: string

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20url">Link to this property</a>

url\_contains\_cdn\_cgi\_path: boolean

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20url_contains_cdn_cgi_path">Link to this property</a>

domain\_reported\_malicious?: boolean

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20domain_reported_malicious">Link to this property</a>

first\_page\_url?: string

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20first_page_url">Link to this property</a>

malicious\_domain\_categories?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20malicious_domain_categories">Link to this property</a>

malicious\_url\_categories?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20malicious_url_categories">Link to this property</a>

page\_urls?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20page_urls">Link to this property</a>

url\_reported\_malicious?: boolean

<a href="#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)%20%3E%20(property)%20url_reported_malicious">Link to this property</a>

</details>

[Link to this property](<#(resource)%20page_shield.connections%20%3E%20(model)%20connection_get_response%20%3E%20(schema)>)

#### Page ShieldScripts

##### [List detected scripts](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/scripts/methods/list)

client.pageShield.scripts.list(ScriptListParams {zone\_id, direction, exclude\_cdn\_cgi, 11 more } params, RequestOptionsoptions?): SinglePage< [ScriptListResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)>) {id, added\_at, first\_seen\_at, 18 more } >

GET/zones/{zone\_id}/page\_shield/scripts

##### [Get a detected script](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/scripts/methods/get)

client.pageShield.scripts.get(stringscriptID, ScriptGetParams {zone\_id } params, RequestOptionsoptions?): [ScriptGetResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)>) {id, added\_at, first\_seen\_at, 19 more } | null

GET/zones/{zone\_id}/page\_shield/scripts/{script\_id}

##### ModelsExpand Collapse

<details>

<summary>

ScriptListResponse {id, added\_at, first\_seen\_at, 18 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

added\_at: string

formatdate-time

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20added_at">Link to this property</a>

first\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20first_seen_at">Link to this property</a>

host: string

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20host">Link to this property</a>

last\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20last_seen_at">Link to this property</a>

url: string

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20url">Link to this property</a>

url\_contains\_cdn\_cgi\_path: boolean

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20url_contains_cdn_cgi_path">Link to this property</a>

cryptomining\_score?: number| null

The cryptomining score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20cryptomining_score">Link to this property</a>

Deprecateddataflow\_score?: number| null

The dataflow score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20dataflow_score">Link to this property</a>

domain\_reported\_malicious?: boolean

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20domain_reported_malicious">Link to this property</a>

fetched\_at?: string| null

The timestamp of when the script was last fetched.

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20fetched_at">Link to this property</a>

first\_page\_url?: string

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20first_page_url">Link to this property</a>

hash?: string| null

The computed hash of the analyzed script.

maxLength64

minLength64

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20hash">Link to this property</a>

js\_integrity\_score?: number| null

The integrity score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20js_integrity_score">Link to this property</a>

magecart\_score?: number| null

The magecart score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20magecart_score">Link to this property</a>

malicious\_domain\_categories?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20malicious_domain_categories">Link to this property</a>

malicious\_url\_categories?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20malicious_url_categories">Link to this property</a>

malware\_score?: number| null

The malware score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20malware_score">Link to this property</a>

Deprecatedobfuscation\_score?: number| null

The obfuscation score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20obfuscation_score">Link to this property</a>

page\_urls?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20page_urls">Link to this property</a>

url\_reported\_malicious?: boolean

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)%20%3E%20(property)%20url_reported_malicious">Link to this property</a>

</details>

[Link to this property](<#(resource)%20page_shield.scripts%20%3E%20(model)%20script_list_response%20%3E%20(schema)>)

<details>

<summary>

ScriptGetResponse {id, added\_at, first\_seen\_at, 19 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

added\_at: string

formatdate-time

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20added_at">Link to this property</a>

first\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20first_seen_at">Link to this property</a>

host: string

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20host">Link to this property</a>

last\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20last_seen_at">Link to this property</a>

url: string

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20url">Link to this property</a>

url\_contains\_cdn\_cgi\_path: boolean

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20url_contains_cdn_cgi_path">Link to this property</a>

cryptomining\_score?: number| null

The cryptomining score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20cryptomining_score">Link to this property</a>

Deprecateddataflow\_score?: number| null

The dataflow score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20dataflow_score">Link to this property</a>

domain\_reported\_malicious?: boolean

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20domain_reported_malicious">Link to this property</a>

fetched\_at?: string| null

The timestamp of when the script was last fetched.

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20fetched_at">Link to this property</a>

first\_page\_url?: string

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20first_page_url">Link to this property</a>

hash?: string| null

The computed hash of the analyzed script.

maxLength64

minLength64

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20hash">Link to this property</a>

js\_integrity\_score?: number| null

The integrity score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20js_integrity_score">Link to this property</a>

magecart\_score?: number| null

The magecart score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20magecart_score">Link to this property</a>

malicious\_domain\_categories?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20malicious_domain_categories">Link to this property</a>

malicious\_url\_categories?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20malicious_url_categories">Link to this property</a>

malware\_score?: number| null

The malware score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20malware_score">Link to this property</a>

Deprecatedobfuscation\_score?: number| null

The obfuscation score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20obfuscation_score">Link to this property</a>

page\_urls?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20page_urls">Link to this property</a>

url\_reported\_malicious?: boolean

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20url_reported_malicious">Link to this property</a>

<details>

<summary>

versions?: Array&lt;Version&gt;| null

</summary>

cryptomining\_score?: number| null

The cryptomining score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20versions%20%3E%20(items)%20%3E%20(property)%20cryptomining_score">Link to this property</a>

Deprecateddataflow\_score?: number| null

The dataflow score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20versions%20%3E%20(items)%20%3E%20(property)%20dataflow_score">Link to this property</a>

fetched\_at?: string| null

The timestamp of when the script was last fetched.

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20versions%20%3E%20(items)%20%3E%20(property)%20fetched_at">Link to this property</a>

hash?: string| null

The computed hash of the analyzed script.

maxLength64

minLength64

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20versions%20%3E%20(items)%20%3E%20(property)%20hash">Link to this property</a>

js\_integrity\_score?: number| null

The integrity score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20versions%20%3E%20(items)%20%3E%20(property)%20js_integrity_score">Link to this property</a>

magecart\_score?: number| null

The magecart score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20versions%20%3E%20(items)%20%3E%20(property)%20magecart_score">Link to this property</a>

malware\_score?: number| null

The malware score of the JavaScript content.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20versions%20%3E%20(items)%20%3E%20(property)%20malware_score">Link to this property</a>

Deprecatedobfuscation\_score?: number| null

The obfuscation score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20versions%20%3E%20(items)%20%3E%20(property)%20obfuscation_score">Link to this property</a>

</details>

<a href="#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)%20%3E%20(property)%20versions">Link to this property</a>

</details>

[Link to this property](<#(resource)%20page_shield.scripts%20%3E%20(model)%20script_get_response%20%3E%20(schema)>)

#### Page ShieldCookies

##### [List detected cookies](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/cookies/methods/list)

client.pageShield.cookies.list(CookieListParams {zone\_id, direction, domain, 12 more } params, RequestOptionsoptions?): SinglePage< [CookieListResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)>) {id, first\_seen\_at, host, 11 more } >

GET/zones/{zone\_id}/page\_shield/cookies

##### [Get a detected cookie](https://developers.cloudflare.com/api/typescript/resources/page_shield/subresources/cookies/methods/get)

client.pageShield.cookies.get(stringcookieID, CookieGetParams {zone\_id } params, RequestOptionsoptions?): [CookieGetResponse](<https://developers.cloudflare.com/api/typescript/resources/page_shield#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)>) {id, first\_seen\_at, host, 11 more } | null

GET/zones/{zone\_id}/page\_shield/cookies/{cookie\_id}

##### ModelsExpand Collapse

<details>

<summary>

CookieListResponse {id, first\_seen\_at, host, 11 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

first\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20first_seen_at">Link to this property</a>

host: string

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20host">Link to this property</a>

last\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20last_seen_at">Link to this property</a>

name: string

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type: "first\_party"| "unknown"

</summary>

One of the following:

"first\_party"

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

"unknown"

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

</details>

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

domain\_attribute?: string

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20domain_attribute">Link to this property</a>

expires\_attribute?: string

formatdate-time

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20expires_attribute">Link to this property</a>

http\_only\_attribute?: boolean

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20http_only_attribute">Link to this property</a>

max\_age\_attribute?: number

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20max_age_attribute">Link to this property</a>

page\_urls?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20page_urls">Link to this property</a>

path\_attribute?: string

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20path_attribute">Link to this property</a>

<details>

<summary>

same\_site\_attribute?: "lax"| "strict"| "none"

</summary>

One of the following:

"lax"

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20same_site_attribute%20%3E%20(member)%200">Link to this property</a>

"strict"

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20same_site_attribute%20%3E%20(member)%201">Link to this property</a>

"none"

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20same_site_attribute%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20same_site_attribute">Link to this property</a>

secure\_attribute?: boolean

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)%20%3E%20(property)%20secure_attribute">Link to this property</a>

</details>

[Link to this property](<#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_list_response%20%3E%20(schema)>)

<details>

<summary>

CookieGetResponse {id, first\_seen\_at, host, 11 more }

</summary>

id: string

Identifier

maxLength32

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

first\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20first_seen_at">Link to this property</a>

host: string

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20host">Link to this property</a>

last\_seen\_at: string

formatdate-time

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20last_seen_at">Link to this property</a>

name: string

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type: "first\_party"| "unknown"

</summary>

One of the following:

"first\_party"

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

"unknown"

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

</details>

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

domain\_attribute?: string

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20domain_attribute">Link to this property</a>

expires\_attribute?: string

formatdate-time

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20expires_attribute">Link to this property</a>

http\_only\_attribute?: boolean

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20http_only_attribute">Link to this property</a>

max\_age\_attribute?: number

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20max_age_attribute">Link to this property</a>

page\_urls?: Array&lt;string&gt;

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20page_urls">Link to this property</a>

path\_attribute?: string

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20path_attribute">Link to this property</a>

<details>

<summary>

same\_site\_attribute?: "lax"| "strict"| "none"

</summary>

One of the following:

"lax"

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20same_site_attribute%20%3E%20(member)%200">Link to this property</a>

"strict"

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20same_site_attribute%20%3E%20(member)%201">Link to this property</a>

"none"

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20same_site_attribute%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20same_site_attribute">Link to this property</a>

secure\_attribute?: boolean

<a href="#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)%20%3E%20(property)%20secure_attribute">Link to this property</a>

</details>

[Link to this property](<#(resource)%20page_shield.cookies%20%3E%20(model)%20cookie_get_response%20%3E%20(schema)>)