---
title: "Remove AI Gateway configuration"
method: DELETE
path: "/v1/ai-gateway"
---

# Remove AI Gateway configuration

`DELETE /v1/ai-gateway`

## Request

- Base URL: `https://api.runbear.io`
- URL: `https://api.runbear.io/v1/ai-gateway`
- Auth: HTTP bearer

Remove the organization-level Cloudflare AI Gateway configuration. Agents fall back to calling the provider directly, except those whose own `aiGateway` override sets `enabled: true` — they keep routing through the gateway they configure. An agent whose override sets `enabled: false` was already calling the provider directly.

## Response `200`

Default Response

- object
  - `success` true, required
  - `message` string, required

## Other responses

- `403`: The organization is not entitled to AI Gateway; `code` is `forbidden_ai_gateway_not_permitted`. Terminal until the plan changes.
- `404`: Default Response

---

[API](https://skmtc.dev/runbear/apis/runbear-api.md) - [All operations](https://skmtc.dev/runbear/apis/runbear-api/llms.txt) - [OpenAPI document](https://skmtc.dev/runbear/apis/runbear-api/revisions/c6a9c3066a5a?raw)
