cURL
curl --request POST \ --url https://api.example.com/s3/upload-url \ --header 'Content-Type: application/json' \ --data ' { "mimeType": "<string>", "size": 123 } '
{ "url": "https://example-bucket.s3.amazonaws.com/path/to/file.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&...", "s3ObjectId": "123e4567-e89b-12d3-a456-426614174000" }
The MIME type of the object
The size of the object
Returns a presigned URL and S3 object ID for uploading a file
The presigned URL to upload the file to
"https://example-bucket.s3.amazonaws.com/path/to/file.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&..."
The created S3 object record
"123e4567-e89b-12d3-a456-426614174000"