Set AI Gateway configuration

Create or update the organization-level Cloudflare AI Gateway configuration. While enabled is true here, Anthropic and OpenAI agents route through this gateway unless an agent overrides the default with its own aiGateway field on create or update agent — pass enabled: false there to opt a single agent out.

put/v1/ai-gateway

Request

  • Base URL
    https://api.runbear.io
  • Auth
    HTTP bearer

Request body

cloudflareAccountIdstring required

Cloudflare account ID

gatewayNamestring required

Cloudflare AI Gateway name

cfApiTokenstring required

Cloudflare API token with AI Gateway permissions

enabledboolean required

Whether to actively route requests through the gateway

Response

Default Response

cloudflareAccountIdstring required

Cloudflare account ID

gatewayNamestring required

Cloudflare AI Gateway name

enabledboolean required

Whether routing through the gateway is active

Changes

No recorded changes to this operation across all 1 revision of this API.