Downloads and exports
Where to find download links for generations, Library items, clips and workflow files.
Everything you make is a file in your workspace's storage. The API hands you signed download URLs for them, and each comes with the read scope of its resource.
Signed URLs
| What | Where the URL is | Scope |
|---|---|---|
| A generation's files | outputs[].url on GET /generations/{generationId} | generations:read |
| A Library item's files | versions[].files[].url on GET /library/items/{itemId} | library:read |
| A clip | videoUrl, posterUrl and wordsUrl on GET /clip-jobs/{jobId} | clips:read |
| A clip export | videoUrl on GET /clips/{clipId}/exports/{exportId} | clips:read |
| A workflow result | outputs of each result on GET /workflows/{workflowId} or GET /workflow-runs/{runId} | workflows:read |
| Any file by key | POST /files/urls with its keys | uploads:write |
Signed URLs expire (clip links after an hour). Don't store them: store the storage key or the object's id, and fetch a fresh URL when you need one.
Workflow zips
A workflow's files download as zips, streamed, with workflows:read:
GET /api/v1/workflows/{workflowId}/groups/{groupId}/download: every file of a Section (group).GET /api/v1/workflows/{workflowId}/nodes/{nodeId}/download: every result one node has made.
curl -L https://api.remagica.com/api/v1/workflows/WORKFLOW_ID/nodes/NODE_ID/download \
-H "x-api-key: $REMAGICA_API_KEY" \
-o results.zipClip exports
A clip job's clips are finished files you can download straight away. To get a different version of a clip, with another caption style, hook or corrected words, re-export it: that renders a new file in seconds, and the original stays as it was.
Share links
To share a file with someone outside your workspace, PUT /asset-shares makes a public share link for it, and GET /asset-shares reads it back. Both need library:share.