AI Gateway

ai_gateway

Methods

Create A New Gateway -> Envelope<{ id, cache_invalidate_on_update, cache_ttl, 8 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

Parameters
account_id: string
Response fields
result: { id, cache_invalidate_on_update, cache_ttl, 8 more... }
success: boolean
Request example
200Example
Delete A Gateway -> Envelope<{ id, cache_invalidate_on_update, cache_ttl, 8 more... }>
delete/accounts/{account_id}/ai-gateway/gateways/{id}

Delete a Gateway

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

Fetch a Gateway

List Gateways -> V4PagePaginationArray<{ id, cache_invalidate_on_update, cache_ttl, 8 more... }>
get/accounts/{account_id}/ai-gateway/gateways

List Gateways

Update A Gateway -> Envelope<{ id, cache_invalidate_on_update, cache_ttl, 8 more... }>
put/accounts/{account_id}/ai-gateway/gateways/{id}

Update a Gateway

AI Gateway

Datasets

ai_gateway.datasets

Methods

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

Create a new Dataset

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

Delete a Dataset

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

Fetch a Dataset

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

List Datasets

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

Update a Dataset

AI Gateway

Evaluation Types

ai_gateway.evaluation_types

Methods

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

List Evaluators

AI Gateway

Evaluations

ai_gateway.evaluations

Methods

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

Create a new Evaluation

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

Delete a Evaluation

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

Fetch a Evaluation

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

List Evaluations

ai_gateway.logs

Methods

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

Delete Gateway Logs

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

Patch Gateway Log

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

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 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