remagicaDocs home

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

WhatWhere the URL isScope
A generation's filesoutputs[].url on GET /generations/{generationId}generations:read
A Library item's filesversions[].files[].url on GET /library/items/{itemId}library:read
A clipvideoUrl, posterUrl and wordsUrl on GET /clip-jobs/{jobId}clips:read
A clip exportvideoUrl on GET /clips/{clipId}/exports/{exportId}clips:read
A workflow resultoutputs of each result on GET /workflows/{workflowId} or GET /workflow-runs/{runId}workflows:read
Any file by keyPOST /files/urls with its keysuploads: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.zip

Clip 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.

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.

On this page