Prerequisites
- A BIZ MORI API key (get one here)
- An image file to protect (
jpg,jpeg,png, orwebp)
Step 1: Create an order
Choose your preferred input mode:- Upload Mode
- URL Mode
Create an order and receive presigned S3 URLs for uploading your files.Response:
Step 2: Upload files (Upload Mode only)
PUT your file to the presigneduploadUrl from Step 1. This is a direct S3 upload — no Authorization header needed.
cURL
Presigned URLs expire after a set time. If yours has expired, use the Refresh URLs endpoint to generate new ones.
Step 3: Confirm the order (Upload Mode only)
After uploading all files, call confirm to start processing:Step 4: Check order status
Poll the order or use webhooks to receive a push notification when processing completes.| Status | Meaning |
|---|---|
pending | Waiting for file upload |
inProgress | Processing |
complete | Ready for download |
failed | Processing failed |
Step 5: Download the result
Oncestatus is complete, fetch the download URL:
downloadUrl is a presigned S3 URL valid for 1 hour. Download the protected file directly from this URL.