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

# Get Base Ref Upload Url

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

Get presigned upload URL for base ref bundle.

Returns:
- upload_url: Presigned URL (null if bundle already exists)
- already_exists: Whether the bundle already exists

The base ref bundle is keyed by SHA for deduplication.

## Path parameters

- `workspace_id` string, required

## Request body

- BaseRefUploadUrlRequest — Request for a presigned upload URL for base ref bundle.
  - `sha` string, required

## Response `200`

Successful Response

- BaseRefUploadUrlResponse — Response containing presigned upload URL for base ref. upload_url is null if the bundle already exists (deduplicated).
  - `upload_url` string, nullable, required
  - `storage_key` string, required
  - `already_exists` boolean, 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)
