---
title: "Extend a desktop session (get more upload URLs)"
method: POST
path: "/v1/desktop/sessions/:id/extend"
tags: ["Desktop"]
---

# Extend a desktop session (get more upload URLs)

`POST /v1/desktop/sessions/:id/extend`

## Request

- Base URL: `https://api.quillhub.ai`
- URL: `https://api.quillhub.ai/v1/desktop/sessions/:id/extend`
- Auth: HTTP bearer

Returns the next batch of 30 presigned PUT URLs starting from `next_seq`. Call this when 25 of the current 30 URLs have been consumed. Idempotent — calling with the same `next_seq` regenerates valid URLs for the same keys.

## Path parameters

- `id` string, required

## Request body

- object
  - `next_seq` integer, required: First sequence number in the new batch.

## Response `200`

New upload URLs.

- object
  - `upload_urls` object[], required
    - `seq` integer, required
    - `presigned_url` string, uri, required
    - `key` string, required

## Other responses

- `401`: Unauthenticated.
- `404`: Session not found.
- `410`: Session already finalized or FAILED.

---

[API](https://skmtc.dev/quillhub/apis/quillhub-public-api.md) · [All operations](https://skmtc.dev/quillhub/apis/quillhub-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quillhub/apis/quillhub-public-api/revisions/5bd42ee9d967?raw)
