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

# Push Subscription Login

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

## Path parameters

- `secret_id` string, uuid, required

## Request body

- SubscriptionLoginPushRequest — A refreshed login a run pushes back, with the lineage it was given.
  - `login` object, required
  - `version` integer, required
  - `generation` integer, required

## Response `200`

Successful Response

- SubscriptionLoginPushResponse — The push outcome, plus the current login when the run was on an old generation. Handing the login back on a stale answer is what lets the runner recover in one hop instead of asking for the connection again.
  - `version` integer, required
  - `generation` integer, required
  - `updated` boolean, required
  - `stale` boolean
  - `login` object, nullable
  - `reason` 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/subscription-login/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)
