---
title: "Tell Ratchet you are still working"
method: POST
path: "/v1/effects/{effectId}/heartbeat"
tags: ["Effects"]
---

# Tell Ratchet you are still working

`POST /v1/effects/{effectId}/heartbeat`

## Request

- Base URL: `https://ratchetgate.com`
- URL: `https://ratchetgate.com/v1/effects/{effectId}/heartbeat`
- Auth: HTTP bearer

Extends a lease you still hold. Use it for work that may outrun its lease: keep the lease short so a real crash is caught quickly, and heartbeat while you are alive. An expired or superseded lease cannot be revived — by then the outcome is already recorded as unknown, and erasing that would defeat the point.

## Path parameters

- `effectId` string, required

## Request body

- object
  - `lease_token` string, required
  - `extend_seconds` integer: Fresh lease length from now. Clamped to the policy maximum.

## Response `200`

Default Response

- object

## Other responses

- `400`: Invalid request.
- `401`: Missing or invalid API key.
- `402`: Insufficient prepaid credit.
- `403`: Scope, policy, or budget refusal.
- `404`: Not found.
- `409`: Conflicting state or idempotency-key reuse.
- `413`: Payload too large.
- `429`: Rate limit exceeded.

---

[API](https://skmtc.dev/ratchetgate/apis/ratchet-api.md) · [All operations](https://skmtc.dev/ratchetgate/apis/ratchet-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ratchetgate/apis/ratchet-api/revisions/5712f33c692f?raw)
