Delete Gateway Logs
DELETE
/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs https://api.cloudflare.com/client/v4
Parameters
path Path Parameters
| Name | Type |
|---|---|
account_id
required
| string |
gateway_id
required
| `${string}:-${string}` |
query Query Parameters
| Name | Type |
|---|---|
order_by | "created_at" | "provider" | "model" | "model_type" | "success" | "cached" | "cost" | "tokens_in" | "tokens_out" | "duration" | "feedback" |
order_by_direction | "asc" | "desc" |
filters | { key: "id" | "created_at" | "request_content_type" | "response_content_type" | "request_type" | "success" | "cached" | "provider" | "model" | "model_type" | "cost" | "tokens" | "tokens_in" | "tokens_out" | "duration" | "feedback" | "event_id" | "metadata.key" | "metadata.value" | "prompts.prompt_id" | "prompts.version_id" | "authentication" | "wholesale" | "compatibilityMode";operator: "eq" | "neq" | "contains" | "lt" | "gt";value: (string | number | boolean | null)[]; }[] |
limit | number |
Responses
200 application/json
Returns if the delete was successful
{ success: boolean; }
Client Errors
400 application/json
Bad Request
{ errors: { message: string; }[];result: {};success: boolean; }