---
title: Rules Trace
---

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

# Rules Trace

#### Rules TraceTraces

##### [Request Trace](https://developers.cloudflare.com/api/typescript/resources/request%5Ftracers/subresources/traces/methods/create)

client.requestTracers.traces.create(TraceCreateParams { account\_id, method, url, 6 more } params, RequestOptionsoptions?): [TraceCreateResponse](https://developers.cloudflare.com/api/typescript/resources/request%5Ftracers#%28resource%29%20request%5Ftracers.traces%20%3E%20%28model%29%20trace%5Fcreate%5Fresponse%20%3E%20%28schema%29) { status\_code, trace } 

POST/accounts/{account\_id}/request-tracer/trace

##### ModelsExpand Collapse 

Trace \= Array<[TraceItem](https://developers.cloudflare.com/api/typescript/resources/request%5Ftracers#%28resource%29%20request%5Ftracers.traces%20%3E%20%28model%29%20trace%5Fitem%20%3E%20%28schema%29) { action, action\_parameters, description, 7 more } \>

TraceItem { action, action\_parameters, description, 7 more } 

List of steps acting on request/response

action?: string

If step type is rule, then action performed by this rule

action\_parameters?: unknown

If step type is rule, then action parameters of this rule as JSON

description?: string

If step type is rule or ruleset, the description of this entity

expression?: string

If step type is rule, then expression used to match for this rule

kind?: string

If step type is ruleset, then kind of this ruleset

matched?: boolean

Whether tracing step affected tracing request/response

name?: string

If step type is ruleset, then name of this ruleset

step\_name?: string

Tracing step identifying name

trace?: [Trace](https://developers.cloudflare.com/api/typescript/resources/request%5Ftracers#%28resource%29%20request%5Ftracers.traces%20%3E%20%28model%29%20trace%20%3E%20%28schema%29) { } 

type?: string

Tracing step type

TraceItem { action, action\_parameters, description, 7 more } 

List of steps acting on request/response

action?: string

If step type is rule, then action performed by this rule

action\_parameters?: unknown

If step type is rule, then action parameters of this rule as JSON

description?: string

If step type is rule or ruleset, the description of this entity

expression?: string

If step type is rule, then expression used to match for this rule

kind?: string

If step type is ruleset, then kind of this ruleset

matched?: boolean

Whether tracing step affected tracing request/response

name?: string

If step type is ruleset, then name of this ruleset

step\_name?: string

Tracing step identifying name

trace?: [Trace](https://developers.cloudflare.com/api/typescript/resources/request%5Ftracers#%28resource%29%20request%5Ftracers.traces%20%3E%20%28model%29%20trace%20%3E%20%28schema%29) { } 

type?: string

Tracing step type

TraceCreateResponse { status\_code, trace } 

Trace result with an origin status code

status\_code?: number

HTTP Status code of zone response

trace?: [Trace](https://developers.cloudflare.com/api/typescript/resources/request%5Ftracers#%28resource%29%20request%5Ftracers.traces%20%3E%20%28model%29%20trace%20%3E%20%28schema%29) { }