remagicaDocs home
API referenceClip jobs

Get a clip job

GET
/clip-jobs/{jobId}

Needs a key withclips:read

Returns one of your jobs. progress says what it is doing (stage, percent, a short message, clips rendered so far and, while rendering, a rough ETA). Once status is completed, clips lists every clip with a videoUrl and posterUrl to download. While the job is queued or processing, poll every 5 seconds or so (progress changes at each stage and after each clip, every few seconds to a minute), or stream GET /clip-jobs/{jobId}/events instead.

Requires scope clips:read.

Authorization

apiKey
headerx-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.

Path Parameters

jobId*string

Id returned by POST /clip-jobs.

Length1 <= length <= 128

Response Body

The job with its clips.

application/json
  1. response

A clip job with its clips and download links.

completedAt*|

When the job completed; null until then (and for failed jobs).

createdAt*string

When the job was created.

Formatdate-time
error*|

Why the job failed. On a completed job with no clips it can also explain why (e.g. the video is shorter than the chosen clipLength); otherwise null.

id*string

Job id.

options*

Render options. Each is optional and has a sensible default.

progress*

Live progress of the job. Poll GET /clip-jobs/{jobId} every 5 seconds or so, or stream GET /clip-jobs/{jobId}/events.

sourceKey*string

The upload the job cuts: uploads/<organizationId>/<uuid>/<filename>.

status*string

Where the job is:

  • queued: accepted, waiting for a worker.
  • processing: a worker is cutting clips.
  • completed: done; clips holds the results.
  • failed: gave up after retries; error says why.
Value in"queued""processing""completed""failed"
updatedAt*string

When the job last changed.

Formatdate-time
clips*array<>

Finished clips in order; empty until the job is completed.

createdByUserId*|

Id of the user who started the job; null when it was started with an API key or that user was deleted.

organizationId*string

Id of the workspace that owns the job (yours).

Example Request
curl -X GET 'https://api.remagica.com/api/v1/clip-jobs/5f0c2a4e-1d7b-4b9e-8a3c-2e6f9d1b7c40'
Example Response
{  "completedAt": "2026-09-27T12:00:00.000Z",  "createdAt": "2026-09-27T12:00:00.000Z",  "error": null,  "id": "5f0c2a4e-1d7b-4b9e-8a3c-2e6f9d1b7c40",  "options": {    "aspectRatio": "9:16",    "captionStyle": {      "font": {        "size": 48      },      "preset": "karaoke"    },    "captions": true,    "clipLength": "s30_59",    "facecam": "top",    "fps": 60,    "hook": true,    "hookStyle": "pill",    "maxMinutes": 10,    "resolution": "720p"  },  "progress": {    "clipsDone": 2,    "clipsTotal": 6,    "etaSeconds": 95,    "message": "Rendering clip 3 of 6",    "percent": 55.7,    "stage": "rendering",    "stageStartedAt": "2026-09-27T12:00:52.000Z",    "startedAt": "2026-09-27T12:00:04.000Z",    "updatedAt": "2026-09-27T12:01:40.000Z"  },  "sourceKey": "uploads/Uq4pY2m0JmHnL1mR/0b6f3c8e-6f1a-4c52-9d61-6c1f2d9f6a10/keynote.mp4",  "status": "processing",  "updatedAt": "2026-09-27T12:00:00.000Z",  "clips": [    {      "cleanVideoKey": "jobs/5f0c2a4e-1d7b-4b9e-8a3c-2e6f9d1b7c40/clips/0/video.mp4",      "cleanVideoUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.mp4",      "createdAt": "2026-09-27T12:00:00.000Z",      "durationSeconds": 42.5,      "endSeconds": 175.2,      "hookText": "Nobody tells you this about pricing",      "id": "9d2e7a61-3b0f-4c1e-b5a8-7f4d2c6e1a93",      "index": 0,      "jobId": "5f0c2a4e-1d7b-4b9e-8a3c-2e6f9d1b7c40",      "layout": "track",      "posterKey": "jobs/5f0c2a4e-1d7b-4b9e-8a3c-2e6f9d1b7c40/clips/0/poster.jpg",      "posterUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.jpg",      "score": 87,      "startSeconds": 132.7,      "title": "Why most startups underprice",      "videoKey": "jobs/5f0c2a4e-1d7b-4b9e-8a3c-2e6f9d1b7c40/clips/0/clip.mp4",      "videoUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.mp4",      "wordsKey": "jobs/5f0c2a4e-1d7b-4b9e-8a3c-2e6f9d1b7c40/clips/0/words.json",      "wordsUrl": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"    }  ],  "createdByUserId": "Uq4pY2m0JmHnL1mR",  "organizationId": "5b0c1e7a-3f7d-4d8e-9d7a-2f1c9a4e6b21"}