Skip to content
Start here

List Gateways

GET/accounts/{account_id}/ai-gateway/gateways

Lists all AI Gateway evaluator types configured for the account.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
AI Gateway WriteAI Gateway Read
Path ParametersExpand Collapse
account_id: string
Query ParametersExpand Collapse
page: optional number
minimum1
per_page: optional number
maximum100
minimum1
ReturnsExpand Collapse
result: array of object { id, cache_invalidate_on_update, cache_ttl, 23 more }
id: string

gateway id

maxLength64
minLength1
cache_invalidate_on_update: boolean
cache_ttl: number
minimum0
collect_logs: boolean
created_at: string
formatdate-time
modified_at: string
formatdate-time
rate_limiting_interval: number
minimum0
rate_limiting_limit: number
minimum0
authentication: optional boolean
dlp: optional object { action, enabled, profiles } or object { enabled, policies }
One of the following:
object { action, enabled, profiles }
action: "BLOCK" or "FLAG"
One of the following:
"BLOCK"
"FLAG"
enabled: boolean
profiles: array of string
object { enabled, policies }
enabled: boolean
policies: array of object { id, action, check, 2 more }
id: string
action: "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
check: array of "REQUEST" or "RESPONSE"
One of the following:
"REQUEST"
"RESPONSE"
enabled: boolean
profiles: array of string
guardrails: optional object { prompt, response }
prompt: object { P1, S1, S10, 11 more }
P1: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S1: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S10: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S11: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S12: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S13: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S2: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S3: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S4: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S5: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S6: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S7: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S8: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S9: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
response: object { P1, S1, S10, 11 more }
P1: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S1: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S10: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S11: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S12: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S13: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S2: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S3: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S4: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S5: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"
S6: optional "FLAG" or "BLOCK"
One of the following:
"FLAG"
"BLOCK"