## Get Gateway Log Detail `client.aiGateway.logs.get(stringgatewayId, stringid, LogGetParamsparams, RequestOptionsoptions?): LogGetResponse` **get** `/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}` Retrieves detailed information for a specific AI Gateway log entry. ### Parameters - `gatewayId: string` gateway id - `id: string` - `params: LogGetParams` - `account_id: string` ### Returns - `LogGetResponse` - `id: string` - `cached: boolean` - `created_at: string` - `duration: number` - `model: string` - `path: string` - `provider: string` - `success: boolean` - `tokens_in: number | null` - `tokens_out: number | null` - `cost?: number` - `custom_cost?: boolean` - `metadata?: string` - `model_type?: 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` ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const log = await client.aiGateway.logs.get('my-gateway', 'id', { account_id: '0d37909e38d3e99c29fa2cd343ac421a', }); console.log(log.id); ``` #### Response ```json { "result": { "id": "id", "cached": true, "created_at": "2019-12-27T18:11:19.117Z", "duration": 0, "model": "model", "path": "path", "provider": "provider", "success": true, "tokens_in": 0, "tokens_out": 0, "cost": 0, "custom_cost": true, "metadata": "metadata", "model_type": "model_type", "request_content_type": "request_content_type", "request_head": "request_head", "request_head_complete": true, "request_size": 0, "request_type": "request_type", "response_content_type": "response_content_type", "response_head": "response_head", "response_head_complete": true, "response_size": 0, "status_code": 0, "step": 0 }, "success": true } ```