PATCH
/v1/projects/{projectId}/branches/{branchId}/alchemy-state/leaseHeartbeat Alchemy deploy lease⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
Extends the unexpired deploy lease addressed by the Alchemy-State-Lease-Id header from now. A missing, replaced, or expired lease returns 404 — the lost-lease signal; an expired lease can never be revived.
Parameters
projectIdstringpathrequiredbranchIdstringpathrequiredalchemy-state-lease-idstringheaderrequiredDeploy-lease id returned by the lease acquire endpoint. Addresses the lease on heartbeat and release, and authorizes every state operation.
Request body
application/json
object
ttlSecondsintegerRequested lease TTL in seconds. Default 60, clamped to [30, 300].
{
"ttlSeconds": 0
}Responses
object
dataobjectrequiredShow child attributes
expiresAtstringrequiredLease expiry as an ISO-8601 timestamp.
leaseIdstringrequiredCapability token for the deploy lease. Send it in the Alchemy-State-Lease-Id header with every state operation; do not log it.
{
"data": {
"expiresAt": "string",
"leaseId": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}