SnozeDevelopers
API referenceLegacy imports

Create a multipart upload target for a legacy bundle

Validates the requested upload and returns the storage handles an operator needs to upload a legacy bundle archive in parts. Platform admins only, over a Clerk session with a verified email; an upload request that fails validation is rejected before any storage object is created.

POST
/v1/admin/legacy-imports/uploads

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Request Body

application/json
  1. body
fileName*string
size*number
sha256*string
partSize?number|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/admin/legacy-imports/uploads' \  -H 'Content-Type: application/json' \  -d '{  "fileName": "string",  "size": 0,  "sha256": "string"}'
Example Response
{  "data": {    "uploadId": "string",    "objectKey": "string",    "partSize": 0,    "parts": [      {        "partNumber": 0,        "url": "string",        "expiresAt": "string"      }    ],    "completionUrl": "string",    "expiresAt": "string"  }}