Skip to main content
POST
/
api
/
lakehouse
/
upload-url
Generate Upload Urls
curl --request POST \
  --url https://api.merchantops.ai/api/lakehouse/upload-url \
  --header 'Content-Type: application/json' \
  --data '
{
  "files": [
    {}
  ],
  "auto_process": false,
  "brand_key": "<string>",
  "brand_name": "<string>",
  "document_category": "product"
}
'
{
  "job_id": "<string>",
  "uploads": [
    {}
  ]
}

Headers

authorization
string | null
X-Organization-ID
string | null

Cookies

stytch_session
string | null

Body

application/json

Request to generate presigned upload URLs.

files
Files · object[]
required

List of files: [{'filename': str, 'file_size': int}]

auto_process
boolean
default:false

Auto-process documents without HITL review (Phase 8)

brand_key
string | null

Brand key for pricing documents (required when document_category='pricing')

brand_name
string | null

Brand display name (e.g. 'New Balance'). Used when creating new brands.

document_category
string | null
default:product

Category of document: 'product' or 'pricing'

Response

Successful Response

Response with presigned upload URLs.

job_id
string
required
uploads
Uploads · object[]
required