---
title: "Get Sync Upload Url"
method: POST
path: "/api/v1/workspaces/{workspace_id}/sync/upload-url"
tags: ["workspaces"]
---

# Get Sync Upload Url

`POST /api/v1/workspaces/{workspace_id}/sync/upload-url`

Generate a presigned URL for uploading a sync bundle.

Bundle types:
- base_ref: Full bundle of base branch (keyed by SHA)
- head_ref: Incremental from base to HEAD (keyed by SHA)
- checkpoint: Incremental from HEAD to checkpoint (keyed by ID)

## Path parameters

- `workspace_id` string, required

## Request body

- SyncUploadUrlRequest — Request for a presigned upload URL (legacy).
  - `bundle_type` 'base_ref' | 'head_ref' | 'checkpoint', required
  - `sha` string, nullable
  - `checkpoint_id` string, nullable

## Response `200`

Successful Response

- SyncUploadUrlResponse — Response containing presigned upload URL (legacy).
  - `upload_url` string, required
  - `expires_at` string, date-time, required
  - `storage_key` string, required

## Other responses

- `422` — Validation Error

---

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