Skip to main content
POST
Extend a live lease

Authorizations

Authorization
string
header
required

The opaque agt_r token minted when the runner enrols (POST /v1/runners)

Path Parameters

lease_id
string
required

UUIDv7 of the lease.

Body

application/json

POST /v1/runners/me/leases/{lease_id}/renew request.

Cumulative token counts for the run so far, never deltas. Only the difference since the last renewal is charged, so a retry that re-sends the same totals charges nothing new.

cached_input_tokens
integer<int32>
required

Cumulative cache-read tokens.

Required range: x >= 0
input_tokens
integer<int32>
required

Cumulative prompt tokens.

Required range: x >= 0
output_tokens
integer<int32>
required

Cumulative completion tokens.

Required range: x >= 0

Response

OK

POST /v1/runners/me/leases/{lease_id}/renew reply.

The authoritative new kill deadline. A non-200 means stop renewing and kill the child — the run is over.

lease_expires_at
integer<int64>
required

Epoch milliseconds of the new deadline.