Rules Trace

request_tracers

request_tracers.traces

Methods

Request Trace -> Envelope<{ status_code, trace }>
post/accounts/{account_id}/request-tracer/trace

Request Trace

Security
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example: X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example: X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194

Accepted Permissions (at least one required)

Allow Request Tracer Read

Parameters
account_id: string
(maxLength: 32)

Identifier

Body parameters
method: string

HTTP Method of tracing request

url: string

URL to which perform tracing request

body: { base64, json, plain_text }
Optional
context: { bot_score, geoloc, skip_challenge, 1 more... }
Optional

Additional request parameters

cookies: Record<string, string>
Optional

Cookies added to tracing request

headers: Record<string, string>
Optional

Headers added to tracing request

protocol: string
Optional

HTTP Protocol of tracing request

skip_response: boolean
Optional

Skip sending the request to the Origin server after all rules evaluation

Response fields
errors: Array<>
messages: Array<>
success: true

Whether the API call was successful

result: { status_code, trace }
Optional

Trace result with an origin status code

Request example
200Example

Domain types

Trace = Array<>
TraceItem = { action, action_parameters, description, 7 more... }

List of steps acting on request/response