---
title: "Delete an API-key credential"
method: DELETE
path: "/v1/credentials/api-key/{credentialId}"
tags: ["Credentials"]
---

# Delete an API-key credential

`DELETE /v1/credentials/api-key/{credentialId}`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/credentials/api-key/{credentialId}`
- Auth: HTTP bearer

Removes the connection, all child EndpointConfigs, and the API key from Keychain.

## Response `200`

Deleted

- OkResponse
  - `ok` true, required

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
