---
title: "[Beta] Delete a GatewayConfig."
method: POST
path: "/v1/gateway-configs/{id}/delete"
tags: ["gateway-configs"]
---

# [Beta] Delete a GatewayConfig.

`POST /v1/gateway-configs/{id}/delete`

[Beta] Delete an existing GatewayConfig. This action is irreversible.

## Path parameters

- `id` string, required

## Request body

- EmptyRecord

## Response `200`

GatewayConfig deleted successfully.

- GatewayConfigView — A GatewayConfig defines a configuration for proxying API requests through the credential gateway. It specifies the target endpoint and how credentials should be applied.
  - `id` string, required — The unique identifier of the GatewayConfig.
  - `account_id` string, nullable — The account ID that owns this config.
  - `name` string, required — The human-readable name of the GatewayConfig. Unique per account (or globally for system configs).
  - `endpoint` string, required — The target endpoint URL (e.g., 'https://api.anthropic.com').
  - `auth_mechanism` AuthMechanismView, required — Defines how credentials are applied to HTTP requests when proxying through the gateway.
    - `type` string, required — The type of authentication mechanism: 'header', 'bearer'.
    - `key` string, nullable — For 'header' type: the header name (e.g., 'x-api-key').
  - `description` string, nullable — Optional description for this gateway configuration.
  - `create_time_ms` integer, required — Creation time of the GatewayConfig (Unix timestamp in milliseconds).

## Other responses

- `400` — Bad request. Config is in use by active devboxes.
- `401` — Unauthorized. Invalid or missing authentication.
- `403` — Forbidden. Account does not have devbox capability.
- `404` — GatewayConfig not found.
- `500` — Internal server error.

## Changes

- **2026-01-30** `debd1f9a9d59` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/runloopai/apis/runloop-api/changes/v1/gateway-configs/:id/delete/post.md)

---

[API](https://skmtc.dev/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.dev/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runloopai/runloop-api/revisions/c8d61a0c8b88/schema)
