AI Gateway

ai_gateway

Methods

List Gateways -> V4PagePaginationArray<{ id, account_id, account_tag, 20 more... }>
get/accounts/{account_id}/ai-gateway/gateways

List Gateways

Fetch A Gateway -> Envelope<{ id, account_id, account_tag, 20 more... }>
get/accounts/{account_id}/ai-gateway/gateways/{id}

Fetch a Gateway

Create A New Gateway -> Envelope<{ id, account_id, account_tag, 20 more... }>
post/accounts/{account_id}/ai-gateway/gateways

Create a new Gateway

Security

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

Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY

Accepted Permissions (at least one required)

AI Gateway Write

path Parameters
account_id: string
Response fields
result: { id, account_id, account_tag, 20 more... }
success: boolean
Request example
200Example
Update A Gateway -> Envelope<{ id, account_id, account_tag, 20 more... }>
put/accounts/{account_id}/ai-gateway/gateways/{id}

Update a Gateway

Delete A Gateway -> Envelope<{ id, account_id, account_tag, 20 more... }>
delete/accounts/{account_id}/ai-gateway/gateways/{id}

Delete a Gateway

AI Gateway

Datasets

ai_gateway.datasets

Methods

List Datasets -> V4PagePaginationArray<{ id, account_id, account_tag, 6 more... }>
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets

List Datasets

Fetch A Dataset -> Envelope<{ id, account_id, account_tag, 6 more... }>
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id}

Fetch a Dataset

Create A New Dataset -> Envelope<{ id, account_id, account_tag, 6 more... }>
post/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets

Create a new Dataset

Update A Dataset -> Envelope<{ id, account_id, account_tag, 6 more... }>
put/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id}

Update a Dataset

Delete A Dataset -> Envelope<{ id, account_id, account_tag, 6 more... }>
delete/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id}

Delete a Dataset

AI Gateway

Dynamic Routing

ai_gateway.dynamic_routing

Methods

List All AI Gateway Dynamic Routes -> { data, success }
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes

List all AI Gateway Dynamic Routes.

Get An AI Gateway Dynamic Route -> Envelope<{ id, account_tag, created_at, 6 more... }>
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}

Get an AI Gateway Dynamic Route.

Create A New AI Gateway Dynamic Route -> Envelope<{ id, account_tag, created_at, 6 more... }>
post/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes

Create a new AI Gateway Dynamic Route.

Update An AI Gateway Dynamic Route -> { route, success }
patch/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}

Update an AI Gateway Dynamic Route.

Delete An AI Gateway Dynamic Route -> Envelope<{ id, account_tag, created_at, 4 more... }>
delete/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}

Delete an AI Gateway Dynamic Route.

List All AI Gateway Dynamic Route Deployments -> { data, success }
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/deployments

List all AI Gateway Dynamic Route Deployments.

Create A New AI Gateway Dynamic Route Deployment -> Envelope<{ id, account_tag, created_at, 4 more... }>
post/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/deployments

Create a new AI Gateway Dynamic Route Deployment.

List All AI Gateway Dynamic Route Versions -> { data, success }
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions

List all AI Gateway Dynamic Route Versions.

Create A New AI Gateway Dynamic Route Version -> Envelope<{ id, account_tag, created_at, 4 more... }>
post/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions

Create a new AI Gateway Dynamic Route Version.

Get An AI Gateway Dynamic Route Version -> Envelope<{ id, account_tag, active, 8 more... }>
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions/{version_id}

Get an AI Gateway Dynamic Route Version.

AI Gateway

Evaluation Types

ai_gateway.evaluation_types

Methods

List Evaluators -> V4PagePaginationArray<{ id, created_at, description, 5 more... }>
get/accounts/{account_id}/ai-gateway/evaluation-types

List Evaluators

AI Gateway

Evaluations

ai_gateway.evaluations

Methods

List Evaluations -> V4PagePaginationArray<{ id, account_id, account_tag, 8 more... }>
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations

List Evaluations

Fetch A Evaluation -> Envelope<{ id, account_id, account_tag, 8 more... }>
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations/{id}

Fetch a Evaluation

Create A New Evaluation -> Envelope<{ id, account_id, account_tag, 8 more... }>
post/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations

Create a new Evaluation

Delete A Evaluation -> Envelope<{ id, account_id, account_tag, 8 more... }>
delete/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations/{id}

Delete a Evaluation

ai_gateway.logs

Methods

List Gateway Logs -> V4PagePaginationArray<{ id, cached, created_at, 16 more... }>
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs

List Gateway Logs

Get Gateway Log Detail -> Envelope<{ id, cached, created_at, 22 more... }>
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}

Get Gateway Log Detail

Patch Gateway Log -> Envelope<unknown>
patch/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}

Patch Gateway Log

Delete Gateway Logs -> { success }
delete/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs

Delete Gateway Logs

Get Gateway Log Request -> unknown
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}/request

Get Gateway Log Request

Get Gateway Log Response -> unknown
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}/response

Get Gateway Log Response

AI Gateway

Provider Configs

ai_gateway.provider_configs

Methods

List Provider Configs -> V4PagePaginationArray<{ id, account_id, account_tag, 9 more... }>
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/provider_configs

List Provider Configs

Create A New Provider Configs -> Envelope<{ id, account_id, account_tag, 9 more... }>
post/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/provider_configs

Create a new Provider Configs

ai_gateway.urls

Methods

Get Gateway URL -> Envelope<string>
get/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/url/{provider}

Get Gateway URL