Moltum's public API lets you do from your own tools what you'd otherwise do by hand in the panel: an automation, an agency dashboard or a Discord bot sends a video link, Moltum makes the video, and a webhook lets you know when it's ready. This page is a quick overview; for every field and example, see the full API reference.

Creating an API key

  1. Go to Settings → API & webhook (/settings/api).
  2. Under API key, give the key a name (e.g. "My automation tool").
  3. Click Create key.

Once it's created, use Show to reveal it and Copy to put it on your clipboard. Below it you'll see the key's name, when it was created and when it was last used. You get one key per account, and it's tied to your channel.

  • Refresh: Generates a new key; the old one stops working right away.
  • Delete: Removes the key completely.

Note: Don't share your key or embed it in code that runs in the browser. If you think it has leaked, refresh it immediately.

Authentication and basics

  • Base URL: https://moltum.io/api/v1
  • Send your key on every request in the Authorization: Bearer <API key> header.
  • Request and response bodies are JSON. Always send a body with POST requests, {} if it's empty.
  • Rate limit: 120 requests per minute, 20 job creations per minute.

Errors come back with error and message fields. The ones you'll see most: 401 (wrong or deleted key), 403 plan_required (your plan doesn't include the API or publishing), 402 quota_exceeded (no video hours left this period) and 429 (rate limited).

Main endpoints

Endpoint What it does
GET /me Account, channel, remaining quota, connected YouTube accounts
GET /jobs Jobs (paginated, ?status=ready)
POST /jobs Create a job from a video link
GET /jobs/{id} Job status, outputs, chapters, ad markers
POST /jobs/{id}/revisions Regenerate with a comment
POST /jobs/{id}/cancel Cancel the job
GET /jobs/{id}/export/{xml|fcpxml|edl} Project file (Premiere, DaVinci, EDL)
POST /jobs/{id}/publish Upload or schedule on YouTube
GET /publications YouTube uploads

Jobs created through the API follow the same rules as jobs created in the panel: your channel rules apply, the source length counts against your quota, on AI revisions the first is free and later ones use 20% of the source length (at least 15 minutes) of your quota; fixing things in the editor and upgrading quality don't use any, and canceled jobs get their quota back. To upload to YouTube, connect your YouTube account on the Publishing page in the panel first (see Publishing to YouTube).

A quick test:

curl -X POST https://moltum.io/api/v1/jobs \
  -H "Authorization: Bearer $MOLTUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source_url": "https://www.twitch.tv/videos/123", "target_min": 20, "target_max": 30}'

curl https://moltum.io/api/v1/jobs/<id> -H "Authorization: Bearer $MOLTUM_API_KEY"

Setting up a webhook

Only the channel owner can set up the webhook.

  1. In the Webhook section on the same page, enter a public URL that starts with https://.
  2. Click Save.
  3. Copy the Signing secret that appears and store it on your server.
  4. Click Send test to send a ping event to your URL; the result shows up right next to the button.

You can change the secret with Regenerate signing secret. To turn the webhook off, clear the URL field and click Save.

Moltum sends JSON to your URL for these events:

Event When
job.ready The video is ready
job.failed The job couldn't be completed
publication.published Uploaded to YouTube (live or scheduled)
publication.failed The YouTube upload failed

The body is always { event, sent_at, data }. The event name is also sent in the X-Moltum-Event header.

Verifying the signature

Every request carries an X-Moltum-Signature header: the HMAC-SHA256 of the raw body using your signing secret, hex-encoded. Verify it before you act on the request. In PHP:

$ok = hash_equals(
    hash_hmac('sha256', file_get_contents('php://input'), $secret),
    $_SERVER['HTTP_X_MOLTUM_SIGNATURE'] ?? ''
);

A few things to keep in mind:

  • Respond with a 2xx within 5 seconds; do any slow work afterwards.
  • Webhooks aren't retried and redirects aren't followed. If you miss one, fetch results with GET /jobs?status=ready.

Plans

The API and webhooks are available on paid plans. On the free plan, the API & webhook page shows a note that your plan doesn't include them, and you can't create a key. Compare plans in Plans and quota.

Can't find what you're looking for?

Write to us and we will sort it out together.

Contact us