GuideLab API

Get a presigned PUT URL for uploading a bundle zip

Returns a presigned R2 upload URL for a bundle zip (max 250MB). The returned durable session ID is passed to analyze/execute; the storage key remains server-controlled. Lab owners only.

POST
/data-bundle/import/presign

Returns a presigned R2 upload URL for a bundle zip (max 250MB). The returned durable session ID is passed to analyze/execute; the storage key remains server-controlled. Lab owners only.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/data-bundle/import/presign" \  -H "Content-Type: application/json" \  -d '{    "fileName": "string",    "size": 1  }'
{  "uploadUrl": "string",  "sessionId": "string",  "uploadContentType": "string"}
Empty
Empty
Empty
Empty