---
title: Cookies
---

[Skip to content](#%5Ftop) 

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

[Page Shield](https://developers.cloudflare.com/api/typescript/resources/page%5Fshield)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Cookies

##### [List detected cookies](https://developers.cloudflare.com/api/typescript/resources/page%5Fshield/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%5Fshield#%28resource%29%20page%5Fshield.cookies%20%3E%20%28model%29%20cookie%5Flist%5Fresponse%20%3E%20%28schema%29) { 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%5Fshield/subresources/cookies/methods/get)

client.pageShield.cookies.get(stringcookieID, CookieGetParams { zone\_id } params, RequestOptionsoptions?): [CookieGetResponse](https://developers.cloudflare.com/api/typescript/resources/page%5Fshield#%28resource%29%20page%5Fshield.cookies%20%3E%20%28model%29%20cookie%5Fget%5Fresponse%20%3E%20%28schema%29) { id, first\_seen\_at, host, 11 more } | null

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

##### ModelsExpand Collapse 

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

id: string

Identifier

maxLength32

first\_seen\_at: string

formatdate-time

host: string

last\_seen\_at: string

formatdate-time

name: string

type: "first\_party" | "unknown"

One of the following:

"first\_party"

"unknown"

domain\_attribute?: string

expires\_attribute?: string

formatdate-time

http\_only\_attribute?: boolean

max\_age\_attribute?: number

page\_urls?: Array<string\>

path\_attribute?: string

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

One of the following:

"lax"

"strict"

"none"

secure\_attribute?: boolean

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

id: string

Identifier

maxLength32

first\_seen\_at: string

formatdate-time

host: string

last\_seen\_at: string

formatdate-time

name: string

type: "first\_party" | "unknown"

One of the following:

"first\_party"

"unknown"

domain\_attribute?: string

expires\_attribute?: string

formatdate-time

http\_only\_attribute?: boolean

max\_age\_attribute?: number

page\_urls?: Array<string\>

path\_attribute?: string

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

One of the following:

"lax"

"strict"

"none"

secure\_attribute?: boolean