Create presigned URL for request file upload to S3

Generates a presigned URL for uploading a file to S3. This endpoint handles deduplication by checking if a file with the same MD5 hash already exists.

Headers

x-api-keystringRequired

Request

This endpoint expects an object.
toolkit_slugstringRequired

Slug of the app where this file belongs to. Example: “image-processing”

tool_slugstringRequired

Slug of the action where this file belongs to. Example: “resize-image”

filenamestringRequired

Name of the original file. Example: “photo.jpg”

mimetypestringRequired

Mime type of the original file. Example: “image/jpeg”

md5stringRequired

MD5 hash of the file for deduplication and integrity verification. Example: “d41d8cd98f00b204e9800998ecf8427e”

Response

Successfully created upload URL for request file
existingobject
OR
newobject
OR
updateobject

Errors