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

# Start Subscription Login

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

## Path parameters

- `secret_id` string, uuid, 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/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)
