---
title: "Cancel Subscription Login"
method: POST
path: "/secrets/{secret_id}/login-attempts/{attempt_id}/cancel"
tags: ["Secrets"]
---

# Cancel Subscription Login

`POST /secrets/{secret_id}/login-attempts/{attempt_id}/cancel`

## Path parameters

- `secret_id` string, uuid, required
- `attempt_id` string, required

## Response `200`

Successful Response

- SubscriptionLoginAttemptResponse — One device login attempt, as a browser sees it. Never carries the credential.
  - `attempt_id` string, required
  - `state` string, required
  - `user_code` string, nullable
  - `verification_uri` string, nullable
  - `expires_at` string, nullable
  - `poll_after_ms` integer, nullable
  - `error` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-11** `d737e09b0d4e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/secrets/:secret_id/login-attempts/:attempt_id/cancel/post.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/72f2feba8ccb?raw)
