---
title: "Cancel Connect Attempt"
method: DELETE
path: "/gateways/mcps/endpoints/{endpoint_id}/connect/attempts/{attempt_id}"
tags: ["Gateway: MCP"]
---

# Cancel Connect Attempt

`DELETE /gateways/mcps/endpoints/{endpoint_id}/connect/attempts/{attempt_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/gateways/mcps/endpoints/{endpoint_id}/connect/attempts/{attempt_id}`
- Auth: API key in header `Authorization`

Cancel one pending consent attempt. Its callback then writes nothing.

Idempotent: an attempt already settled, cancelled or swept is left as it is.

## Path parameters

- `endpoint_id` string, uuid, required
- `attempt_id` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-18** `722c7cc3556b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/gateways/mcps/endpoints/:endpoint_id/connect/attempts/:attempt_id/delete.md)

---

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