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

# Fetch Connect Attempt

`GET /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`

How one consent attempt stands.

The sheet asks when the popup closes or the wait runs out without a message from
the callback page, which is how a result posted to an opener that is gone, or to
an origin the app is not on, still reaches the person.

## Path parameters

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

## Response `200`

Successful Response

- MCPConnectAttemptResponse
  - `count` integer
  - `attempt` MCPOAuthAttemptOutcome: What the browser is told about one attempt it started. `claimed` reads as `pending`, and a pending attempt past its expiry as `cancelled`: the browser only needs to know whether to keep waiting, and how it ended.
    - `id` string, uuid, required
    - `status` 'pending' | 'claimed' | 'connected' | 'failed' | 'cancelled', required: Where one attempt stands. `claimed` is the moment between the callback taking the attempt and it writing an outcome, while the code is exchanged. The browser reads it as still pending.
    - `error` string, nullable

## Other responses

- `404`: The attempt is not found.
- `422`: Validation Error

## Changes

- **2026-10-21** `1d98cd0e4892`: 1 info
  - added the non-success response with the status `404`
- **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/get.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)
