Search + K

Command Palette

Search for a command to run...

Sign In

Get Gateway Log Detail

GET /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}
Copy endpoint
https://api.cloudflare.com/client/v4

Parameters

path Path Parameters

Name Type
id required
string
gateway_id required
`${string}:-${string}`
account_id required
string

Responses

200 application/json

Returns the log details

{ result: {
cached: boolean;
cost?: number;
created_at: string;
custom_cost?: boolean;
duration: number;
id: string;
metadata?: string;
model: string;
model_type?: string;
path: string;
provider: string;
request_content_type?: string;
request_head?: string;
request_head_complete?: boolean;
request_size?: number;
request_type?: string;
response_content_type?: string;
response_head?: string;
response_head_complete?: boolean;
response_size?: number;
status_code?: number;
step?: number;
success: boolean;
tokens_in: number | null;
tokens_out: number | null;
}
;success: boolean; }

Client Errors

404 application/json

Not Found

{ errors: { code: number;message: string; }[];success: boolean; }