Moltum API (v1)
Create jobs, fetch results and upload to YouTube from your own tools: an automation, an agency dashboard or a Discord bot.
- Base URL:
https://moltum.io/api/v1 - Auth:
Authorization: Bearer <API key>. Create the key under Settings → API & webhook. The key belongs to your channel. - Request and response bodies are JSON. Always send a body with POST requests (
{}if empty). - Rate limit: 120 requests per minute, 20 job creations per minute.
- The API is available on paid plans.
Errors
{ "error": "quota_exceeded", "message": "You've used up this month's stream hours." }
| HTTP | error |
Meaning |
|---|---|---|
| 401 | unauthorized |
Wrong or deleted key |
| 403 | plan_required |
Your plan doesn't include the API (or publishing) |
| 402 | quota_exceeded |
No stream hours left this period |
| 404 | not_found |
Job not found |
| 409 | not_ready |
Job isn't ready yet |
| 422 | — | Validation error (see errors) |
| 429 | — | Rate limited |
Endpoints
GET /me
Account, channel, plan, remaining quota (seconds; null = unlimited) and connected YouTube accounts.
POST /jobs
Creates a job from a stream link. Your channel rules (music, transitions, sponsors, censoring…) apply.
{
"source_url": "https://www.twitch.tv/videos/2283746123", // Twitch, Kick or YouTube (required)
"title": "Boss night", // optional
"prompt": "Focus on the funny moments", // optional: editing request
"target_min": 20, "target_max": 30, // minutes; defaults to channel rules
"quality": "full_1080p60", // hd_720p | full_1080p60 (legacy preview_480p is accepted and rendered at 720p)
"shorts": true, "shorts_count": 0, // 0 = automatic
"captions": true
}
Returns 201 and the job object (below). If team approval is on and the key belongs to an editor, the job waits as pending_approval.
GET /jobs
Paginated: ?status=ready&per_page=20&page=2. Response { data: [...], meta: { page, per_page, total, last_page } }. The list omits outputs; use GET /jobs/{id} for details.
GET /jobs/{id}
{
"id": "9f0c2c1e-…",
"title": "Boss night",
"status": "ready", // queued | pending_approval | downloading | transcribing | analyzing | editing | rendering | ready | failed | canceled
"progress": 100,
"phase": null, // "fixing": a small fix from the final quality check is being applied and the video is being re-rendered (progress is this round's own progress and may go down)
"stage": null,
"revision": 1,
"source": { "type": "url", "platform": "twitch", "url": "…", "duration_seconds": 10800 },
"quality": "full_1080p60",
"error": null,
"panel_url": "https://moltum.io/jobs/9f0c2c1e-…",
"created_at": "…", "finished_at": "…",
"outputs": [
{ "id": 51, "kind": "main", "key": "main", "title": "…", "preview_url": "…", "download_url": "…", "thumbnail_url": "…",
"duration_seconds": 1830, "width": 1920, "height": 1080, "size_bytes": 1830000000 },
{ "id": 52, "kind": "short", "key": "short-1", "title": "1 HP left", "download_url": "…", "duration_seconds": 41, "width": 1080, "height": 1920 },
{ "id": 55, "kind": "thumbnail", "key": "thumb-1", "download_url": "…" }
],
"youtube": { "title": "…", "description": "…", "tags": ["…"], "title_suggestions": ["…"] },
"chapters": [ { "time": "00:00", "title": "Intro" } ],
"ad_markers": [ { "time": "00:08:13:11", "seconds": 493.4, "label": "…" } ],
"summary": "…"
}
download_url links are long-lived but not permanent; if you want to keep the files, download them once the job is ready.
POST /jobs/{id}/revisions
{ "message": "Cut the first 5 minutes, make the boss fight longer" } → the job is regenerated as a new revision. The first revision per job is free; later ones use 20% of the stream length (at least 15 minutes) of quota, or return 402 quota_exceeded if there isn't enough. Only for ready jobs.
POST /jobs/{id}/cancel
Cancels a queued or running job; the quota is refunded.
GET /jobs/{id}/export/{format}
The edit as a project file: xml (Premiere Pro), fcpxml (DaVinci Resolve, Final Cut Pro), edl (any editor). Clips reference the stream file by name; relink it in your editor.
POST /jobs/{id}/publish
Uploads or schedules a ready job on a connected YouTube account. Connect the account first on the Publish page in the panel.
{
"account_id": 3, // optional; defaults to the first connected account (GET /me)
"main": true, // long video
"all_shorts": true, // or "short_ids": [52, 53]
"title": "…", "description": "…", "tags": ["valorant"], // empty = AI suggestion + chapters
"privacy": "public", // public | unlisted | private
"publish_at": "2026-11-02T18:00:00+03:00", // optional: schedule (at least 15 min ahead)
"shorts_daily": true, "shorts_time": "18:00" // release one short per day
}
Returns 201: { data: [ publication objects ] }. Uploading runs in the background; you get a publication.published webhook when it's done.
GET /publications
YouTube uploads (filter with ?job_id=).
{ "id": 7, "job_id": "9f0c…", "output_id": 51, "platform": "youtube", "kind": "main",
"status": "published", // queued | uploading | processing | published | scheduled | failed | canceled
"title": "…", "privacy": "public", "publish_at": null, "url": "https://youtu.be/…", "error": null }
Webhook
Enter an https:// URL under Settings → API & webhook. Events:
event |
When | data |
|---|---|---|
job.ready |
Video is ready | job object |
job.failed |
Job couldn't be completed | job object |
publication.published |
Uploaded to YouTube (live or scheduled) | publication object |
publication.failed |
YouTube upload failed | publication object |
ping |
"Send test" button | — |
POST /your-endpoint
Content-Type: application/json
X-Moltum-Event: job.ready
X-Moltum-Signature: 5f2c… (HMAC-SHA256(body, signing secret), hex)
{ "event": "job.ready", "sent_at": "2026-10-27T12:00:00+03:00", "data": { … } }
Verify the signature (PHP):
$ok = hash_equals(hash_hmac('sha256', file_get_contents('php://input'), $secret), $_SERVER['HTTP_X_MOLTUM_SIGNATURE'] ?? '');
Respond with 2xx within 5 seconds. Webhooks aren't retried; fetch anything you missed with GET /jobs?status=ready.