---
title: "Queue Extend Lease"
method: POST
path: "/api/v1.msgs.queue.extend-lease"
tags: ["Msgs"]
---

# Queue Extend Lease

`POST /api/v1.msgs.queue.extend-lease`

Extends the lease on in-flight messages.

Consumers that need more processing time can call this before the lease expires to prevent the
message from being re-delivered to another consumer.

## Request body

- MsgQueueExtendLeaseIn
  - `namespace` string, nullable
  - `topic` string, required
  - `consumer_group` string, required
  - `msg_ids` string[], required
  - `lease_duration_ms` integer

## Response `200`

- MsgQueueExtendLeaseOut

## Other responses

- `400`
- `401`
- `403`
- `422`

## Changes

- **2026-04-14** `7f5edfb12f87` — 1 breaking
  - the `namespace` request property's minLength was increased from `0` to `1`
- **2026-04-14** `14bcce06404b` — 1 breaking, 1 warning
  - added the pattern `^[a-zA-Z0-9\-/_.=+]+$` to the request property `namespace`
  - the `namespace` request property's maxLength was set to `256`
- **2026-04-03** `9f2a9374494d` — 1 info
  - endpoint added
- **2026-03-31** `f62be26d2a53` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/svix/apis/diom-api/changes/api/v1.msgs.queue.extend-lease/post.md)

---

[API](https://skmtc.dev/svix/apis/diom-api.md) · [All operations](https://skmtc.dev/svix/apis/diom-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/svix/diom-api/revisions/2027bc3fbcfb/schema)
