---
title: "Delete a BYOK credential"
method: DELETE
path: "/ai-gateway/byok-credentials/{credentialId}"
tags: ["ai-gateway"]
---

# Delete a BYOK credential

`DELETE /ai-gateway/byok-credentials/{credentialId}`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/ai-gateway/byok-credentials/{credentialId}`
- Auth: HTTP bearer

Delete a BYOK credential (soft delete) and its model mappings

## Path parameters

- `credentialId` string, required: The unique ID of the credential to delete

## Query parameters

- `ownerId` string
- `userId` string: The ID of the user performing this action, used for Activity-log attribution.
- `teamId` string
- `slug` string

## Response `204`

- unknown

## Other responses

- `400`: One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource.
- `404`
- `410`
- `500`

## Changes

- **2026-10-27** `ef8042371d97`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/ai-gateway/byok-credentials/:credentialId/delete.md)

---

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