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.
This section covers two Video Production integration options:
- Shuffll Video Production API — For full programmatic control over the video creation process.
- Embedded creation — Offer a guided video-creation experience with workspace-specific configuration and server-side credential handling.
For API users, there are two different approaches depending on how much control you need:
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.
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 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| Feature | Polling | Webhook |
|---|---|---|
| Granular progress tracking | Yes | No |
| Minimal API calls | No | Yes |
| Requires a public server endpoint | No | Yes |
| Best for high-volume automation | No | Yes |
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.
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.
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);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" }
}'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.
- Project Creation — Define the idea, create a script, and structure a storyline.
- Video Generation — Turn the storyline into a full video using AI-driven media.
- Enhancement — Add branding, subtitles, and optimize audio automatically.
- Export — Finalize and retrieve the downloadable video.
- Using Templates — Control the scene structure, media sources, fonts, and AI flexibility.
| Feature | API Integration | iFrame Integration |
|---|---|---|
| Customization | Full control over every step | Pre-built, ready-to-use UI |
| Setup | Server-side API integration | Workspace configuration and a supported browser-session integration |
| Automation | Fully automatable | Guided creation |
| Best for | Developers and automation | Platforms offering video creation as a service |