Create an upload URL
Needs a key withuploads:write
Returns a presigned URL for uploading one media file straight to object storage, so large videos never pass through the API.
Upload the file with PUT uploadUrl, sending the returned headers and the raw bytes as the body, before expiresAt. Then pass key to POST /clip-jobs.
Requires scope uploads:write.
apiKeyx-api-key<token>An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.
Idempotency-Key?stringMakes the request safe to retry: send a unique value (a UUID, say). The same request sent again with the same key within 24 hours gets the first one's response back, and nothing runs or is charged twice. Reusing a key for a different request, or while the first is still running, is 409 CONFLICT. A request that fails frees its key.
1 <= length <= 255application/json- body
The file you are about to upload.
contentType*stringMIME type of the file: any video/*, audio/* or image/* type, or a PDF or Word (.docx) brand file for POST /brand-kits/from-file. The upload PUT must send exactly this Content-Type.
^((video|audio|image)\/[\w.+-]+|application\/pdf|application\/vnd\.openxmlformats-officedocument\.wordprocessingml\.document)$filename*stringOriginal file name. It is sanitised and becomes the last segment of the storage key.
1 <= length <= 255size*integerFile size in bytes. At most 5363466240 (5 GiB minus 5 MiB, the single-request upload limit).
0 < value <= 5363466240The presigned upload URL and how to use it.
application/json- response
Where and how to upload the file.
expiresAt*stringWhen uploadUrl stops working (15 minutes after issue).
date-timeheaders*Send exactly these headers with the PUT.
key*stringStorage key of the upload: uploads/<organizationId>/<uuid>/<filename>. Pass it as sourceKey to POST /clip-jobs once the PUT has finished.
method*unknownHTTP method for the upload.
uploadUrl*stringPresigned object-storage URL. PUT the raw file bytes here; they go straight to storage, not through this API.
uricurl -X POST 'https://api.remagica.com/api/v1/uploads' \ -H 'Content-Type: application/json' \ -d '{ "contentType": "video/mp4", "filename": "keynote.mp4", "size": 734003200}'{ "expiresAt": "2026-09-27T12:15:00.000Z", "headers": { "Content-Type": "video/mp4" }, "key": "uploads/Uq4pY2m0JmHnL1mR/0b6f3c8e-6f1a-4c52-9d61-6c1f2d9f6a10/keynote.mp4", "method": "PUT", "uploadUrl": "https://storage.example.com/remagica/uploads/…/keynote.mp4?X-Amz-Signature=…"}