External DocumentationTo learn more, visit the Cloudflare documentation.
Actions
List AI Gateway Logs
List AI gateway logs.

Preview this Workflow on desktop
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
| Parameter | Description |
|---|---|
| AI Gateway ID | The ID of the AI gateway. |
| Account ID | Your Cloudflare Account ID. |
| Order By | The Sorting criterion for the returned results. |
| Order By Direction | Direction to order the results. |
| Return All Pages | Automatically fetch all resources, page by page. |
| Search Text | Text to search in logs. |
| Parameter | Description |
|---|---|
| Page | The page number to show results from. |
| Per Page | Maximum number of results per page. (in range 1-50). |
{
"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
}
Was this page helpful?