---
title: AI Audit
---

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

# AI Audit

#### AI AuditRobots

##### [Get robots.txt rules](https://developers.cloudflare.com/api/typescript/resources/ai%5Faudit/subresources/robots/methods/get)

client.aiAudit.robots.get(RobotGetParams { zone\_id, subdomain } params, RequestOptionsoptions?): [RobotGetResponse](https://developers.cloudflare.com/api/typescript/resources/ai%5Faudit#%28resource%29%20ai%5Faudit.robots%20%3E%20%28model%29%20robot%5Fget%5Fresponse%20%3E%20%28schema%29) { userAgents, sitemaps, status } 

GET/zones/{zone\_id}/ai-audit/robots

##### [Bulk get robots.txt rules](https://developers.cloudflare.com/api/typescript/resources/ai%5Faudit/subresources/robots/methods/bulk%5Fget)

client.aiAudit.robots.bulkGet(RobotBulkGetParams { zone\_id, body } params, RequestOptionsoptions?): [RobotBulkGetResponse](https://developers.cloudflare.com/api/typescript/resources/ai%5Faudit#%28resource%29%20ai%5Faudit.robots%20%3E%20%28model%29%20robot%5Fbulk%5Fget%5Fresponse%20%3E%20%28schema%29) { userAgents, sitemaps, status } 

POST/zones/{zone\_id}/ai-audit/robots/bulk

##### ModelsExpand Collapse 

RobotGetResponse { userAgents, sitemaps, status } 

Parsed robots.txt rules for a single domain.

userAgents: Record<string, UserAgents\>

Map of user-agent string to its parsed rules.

allow: Array<string\>

List of allowed path patterns.

disallow: Array<string\>

List of disallowed path patterns.

contentSignals?: ContentSignals { ai-input, ai-train, search } 

Content signal directives from robots.txt.

"ai-input"?: "yes" | "no"

Whether AI input usage is permitted.

One of the following:

"yes"

"no"

"ai-train"?: "yes" | "no"

Whether AI training is permitted.

One of the following:

"yes"

"no"

search?: "yes" | "no"

Whether search indexing is permitted.

One of the following:

"yes"

"no"

crawlDelay?: number

Crawl delay in seconds.

sitemaps?: Array<string\>

List of sitemap URLs found in robots.txt.

status?: number

HTTP status code from fetching the robots.txt file.

RobotBulkGetResponse \= Record<string, item\>

Map of hostname to parsed robots.txt rules.

userAgents: Record<string, UserAgents\>

Map of user-agent string to its parsed rules.

allow: Array<string\>

List of allowed path patterns.

disallow: Array<string\>

List of disallowed path patterns.

contentSignals?: ContentSignals { ai-input, ai-train, search } 

Content signal directives from robots.txt.

"ai-input"?: "yes" | "no"

Whether AI input usage is permitted.

One of the following:

"yes"

"no"

"ai-train"?: "yes" | "no"

Whether AI training is permitted.

One of the following:

"yes"

"no"

search?: "yes" | "no"

Whether search indexing is permitted.

One of the following:

"yes"

"no"

crawlDelay?: number

Crawl delay in seconds.

sitemaps?: Array<string\>

List of sitemap URLs found in robots.txt.

status?: number

HTTP status code from fetching the robots.txt file.