> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Gateway Logs

List Gateway Logs.

<Note>
  External Documentation

  To learn more, visit the [Cloudflare documentation](https://developers.cloudflare.com/api/resources/ai_gateway/subresources/logs/methods/list/).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter          | Description                                     |
  | ------------------ | ----------------------------------------------- |
  | Account ID         | Your Cloudflare Account ID.                     |
  | Gateway ID         | The ID of the Gateway.                          |
  | Order By           | The Sorting criterion for the returned results. |
  | Order By Direction | Direction to order the results.                 |
  | Search Text        | Text to search in logs.                         |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter | Description                                          |
  | --------- | ---------------------------------------------------- |
  | Page      | The page number to show results from.                |
  | Per Page  | Maximum number of results per page. (in range 1-50). |
</div>

## Example Output

```json theme={"dark"}
{
	"result": [
		{
			"id": "id",
			"cached": true,
			"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_type": "request_type",
			"response_content_type": "response_content_type",
			"status_code": 0,
			"step": 0
		}
	],
	"result_info": {
		"count": 0,
		"max_cost": 0,
		"max_duration": 0,
		"max_tokens_in": 0,
		"max_tokens_out": 0,
		"max_total_tokens": 0,
		"min_cost": 0,
		"min_duration": 0,
		"min_tokens_in": 0,
		"min_tokens_out": 0,
		"min_total_tokens": 0,
		"page": 0,
		"per_page": 0,
		"total_count": 0
	},
	"success": true
}
```

## Workflow Library Example

[List Gateway Logs with Cloudflare and Send Results Via Email](https://library.blinkops.com/workflows/list-gateway-logs-with-cloudflare-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-gateway-logs-with-cloudflare-and-send-results-via-email/canvas" />
</div>
