Get a presigned URL for direct upload to S3.
The client should:
- Call this endpoint to get a presigned URL
- PUT the file directly to the uploadUrl
- Use the resourceId in subsequent API calls
POST
/uploads/presign
curl \
--request POST 'http://api.example.com/uploads/presign' \
--header "Content-Type: application/json" \
--data '{"contentType":"image/jpeg","purpose":"tryon_photo"}'
Request examples
{
"contentType": "image/jpeg",
"purpose": "tryon_photo"
}
Response examples (200)
{
"resourceId": "string",
"uploadUrl": "string",
"fields": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"maxSize": 42,
"expiresAt": "2026-05-04T09:42:00Z"
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}