Skip to content
Last updated

Shuffll Video Production API workflows

The Shuffll Video Production API turns prompts, scripts, articles, templates, or prepared media into video projects. Follow creation, enhancement, and export from your application. For campaign workflows and AI assistant connections, start with Shuffll Engage API and MCP. See which API to use for endpoints and credentials.

Integration Options

This section covers two Video Production integration options:

  1. Shuffll Video Production API — For full programmatic control over the video creation process.
  2. Embedded creation — Offer a guided video-creation experience with workspace-specific configuration and server-side credential handling.

API Approaches

For API users, there are two different approaches depending on how much control you need:

1. Full Sequence: Step-by-Step Control

Use separate API calls for each stage:

  • Create Project → Poll Creation Status → Poll Enhancement Status → Trigger Export → Poll Export Status
  • Ideal for applications requiring custom processing, additional editing, or detailed progress tracking.

2. AutoEnhance + AutoExport with Webhooks: Full Automation

Use a single API call to create a project and let Shuffll handle everything automatically.

  • toAutoEnhance: true — post-production (branding, subtitles, audio) runs automatically after creation.
  • toAutoExport: true — export runs automatically after enhancement completes.
  • webhook — Shuffll calls your URL when the export is ready; no polling needed.
  • Ideal for high-volume automation.

Polling vs. Webhook Workflow

Polling workflow:

  POST /auth/project/create (toAutoEnhance: true, toAutoExport: false)
       ↓
  GET  /auth/project/{id}/create/status   ← poll until status = DONE
       ↓
  GET  /auth/project/{id}/edit/status/enhance  ← poll until isDone = true
       ↓
  POST /auth/project/{id}/edit/export
       ↓
  GET  /auth/project/{id}/edit/status/export  ← poll until isDone = true
       ↓
  Retrieve urls.uploadPath

Webhook workflow (toAutoEnhance + toAutoExport):

  POST /auth/project/create  (set toAutoEnhance, toAutoExport, webhook)
       ↓
  Wait for webhook POST to your server
       ↓
  Retrieve urls.uploadPath from webhook payload

Polling vs. Webhooks Comparison

FeaturePollingWebhook
Granular progress trackingYesNo
Minimal API callsNoYes
Requires a public server endpointNoYes
Best for high-volume automationNoYes

Choose polling if you need full control, custom logic, or manual review at each stage. Choose webhooks if you want hands-free, fully automated video creation.

Webhook Payload

When your export completes, Shuffll sends a POST to your webhook URL with the following body:

{
  "type": "export",
  "payload": {
    "projectId": "6947b539cc95ea68854bb523",
    "projectName": "How AI is transforming the marketing industry",
    "urls": {
      "uploadPath": "https://cdn.shuffll.com/.../video.mp4",
      "dashPath": "https://cdn.shuffll.com/.../manifest.mpd"
    },
    "additionalParams": {}
  }
}

Use additionalParams in your create request to embed any metadata you want echoed back in the webhook payload.

Webhook Handling Example (Node.js)

const express = require("express");
const app = express();
app.use(express.json());

app.post("/webhooks/shuffll", (req, res) => {
  const { type, payload } = req.body;

  if (type === "export") {
    console.log(`Video ready: ${payload.urls.uploadPath}`);
    // store payload.urls.uploadPath for the user
  }

  res.sendStatus(200);
});

app.listen(3000);

AutoEnhance + AutoExport Example (cURL)

curl -X POST "https://api.shuffll.com/api/v1/auth/project/create" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "How AI is transforming the marketing industry",
    "language": { "code": "en" },
    "recordingType": "ai-voice",
    "videoLength": 0.5,
    "toAutoEnhance": true,
    "toAutoExport": true,
    "webhook": "https://yourserver.com/webhooks/shuffll",
    "additionalParams": { "userId": "usr_123" }
  }'

Troubleshooting

Webhook not receiving calls?

  • Ensure the URL is publicly accessible (not localhost).
  • Check that your server returns HTTP 200 promptly; Shuffll may retry on failure.

Polling hitting rate limits?

  • Use exponential backoff — start at 5 seconds between polls, double after each miss.
  • Consider switching to webhooks for high-volume use cases.

The Full Video Creation Process

  1. Project Creation — Define the idea, create a script, and structure a storyline.
  2. Video Generation — Turn the storyline into a full video using AI-driven media.
  3. Enhancement — Add branding, subtitles, and optimize audio automatically.
  4. Export — Finalize and retrieve the downloadable video.
  5. Using Templates — Control the scene structure, media sources, fonts, and AI flexibility.

iFrame vs. API

FeatureAPI IntegrationiFrame Integration
CustomizationFull control over every stepPre-built, ready-to-use UI
SetupServer-side API integrationWorkspace configuration and a supported browser-session integration
AutomationFully automatableGuided creation
Best forDevelopers and automationPlatforms offering video creation as a service