curl -X POST "https://api.submagic.co/v1/projects/550e8400-e29b-41d4-a716-446655440000/export" \
-H "x-api-key: sk-your-api-key-here" \
-H "Content-Type: application/json"
curl -X POST "https://api.submagic.co/v1/projects/550e8400-e29b-41d4-a716-446655440000/export" \
-H "x-api-key: sk-your-api-key-here" \
-H "Content-Type: application/json" \
-d '{
"fps": 30,
"width": 1920,
"height": 1080,
"webhookUrl": "https://yoursite.com/webhook/export-complete"
}'
const exportProject = async (projectId) => {
const response = await fetch(
`https://api.submagic.co/v1/projects/${projectId}/export`,
{
method: "POST",
headers: {
"x-api-key": "sk-your-api-key-here",
"Content-Type": "application/json",
},
}
);
const result = await response.json();
console.log("Export started:", result.message);
return result;
};
// Usage
const result = await exportProject("550e8400-e29b-41d4-a716-446655440000");
const exportProjectWithOptions = async (projectId, options = {}) => {
const response = await fetch(
`https://api.submagic.co/v1/projects/${projectId}/export`,
{
method: "POST",
headers: {
"x-api-key": "sk-your-api-key-here",
"Content-Type": "application/json",
},
body: JSON.stringify(options),
}
);
const result = await response.json();
console.log("Export started:", result.message);
return result;
};
// Usage with options
const exportOptions = {
fps: 30,
width: 1920,
height: 1080,
webhookUrl: "https://yoursite.com/webhook/export-complete",
};
const result = await exportProjectWithOptions(
"550e8400-e29b-41d4-a716-446655440000",
exportOptions
);
import requests
def export_project(project_id):
url = f'https://api.submagic.co/v1/projects/{project_id}/export'
headers = {
'x-api-key': 'sk-your-api-key-here',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
result = response.json()
print(f"Export started: {result.get('message')}")
return result
# Usage
result = export_project('550e8400-e29b-41d4-a716-446655440000')
import requests
import json
def export_project_with_options(project_id, options=None):
url = f'https://api.submagic.co/v1/projects/{project_id}/export'
headers = {
'x-api-key': 'sk-your-api-key-here',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers, json=options)
result = response.json()
print(f"Export started: {result.get('message')}")
return result
# Usage with options
export_options = {
'fps': 30,
'width': 1920,
'height': 1080,
'webhookUrl': 'https://yoursite.com/webhook/export-complete'
}
result = export_project_with_options(
'550e8400-e29b-41d4-a716-446655440000',
export_options
)
{
"message": "Export started successfully",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"status": "exporting"
}
{
"error": "NOT_FOUND",
"message": "Project doesn't exist or doesn't belong to user"
}
{
"error": "BAD_REQUEST",
"message": "Project not ready for export"
}
{
"error": "BAD_REQUEST",
"message": "Invalid fps value. Must be between 1 and 60"
}
{
"error": "INTERNAL_SERVER_ERROR",
"message": "Export failed to start"
}
API Reference
Export Project
Trigger the rendering/export process for a completed project to generate the final video
POST
/
v1
/
projects
/
{id}
/
export
curl -X POST "https://api.submagic.co/v1/projects/550e8400-e29b-41d4-a716-446655440000/export" \
-H "x-api-key: sk-your-api-key-here" \
-H "Content-Type: application/json"
curl -X POST "https://api.submagic.co/v1/projects/550e8400-e29b-41d4-a716-446655440000/export" \
-H "x-api-key: sk-your-api-key-here" \
-H "Content-Type: application/json" \
-d '{
"fps": 30,
"width": 1920,
"height": 1080,
"webhookUrl": "https://yoursite.com/webhook/export-complete"
}'
const exportProject = async (projectId) => {
const response = await fetch(
`https://api.submagic.co/v1/projects/${projectId}/export`,
{
method: "POST",
headers: {
"x-api-key": "sk-your-api-key-here",
"Content-Type": "application/json",
},
}
);
const result = await response.json();
console.log("Export started:", result.message);
return result;
};
// Usage
const result = await exportProject("550e8400-e29b-41d4-a716-446655440000");
const exportProjectWithOptions = async (projectId, options = {}) => {
const response = await fetch(
`https://api.submagic.co/v1/projects/${projectId}/export`,
{
method: "POST",
headers: {
"x-api-key": "sk-your-api-key-here",
"Content-Type": "application/json",
},
body: JSON.stringify(options),
}
);
const result = await response.json();
console.log("Export started:", result.message);
return result;
};
// Usage with options
const exportOptions = {
fps: 30,
width: 1920,
height: 1080,
webhookUrl: "https://yoursite.com/webhook/export-complete",
};
const result = await exportProjectWithOptions(
"550e8400-e29b-41d4-a716-446655440000",
exportOptions
);
import requests
def export_project(project_id):
url = f'https://api.submagic.co/v1/projects/{project_id}/export'
headers = {
'x-api-key': 'sk-your-api-key-here',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
result = response.json()
print(f"Export started: {result.get('message')}")
return result
# Usage
result = export_project('550e8400-e29b-41d4-a716-446655440000')
import requests
import json
def export_project_with_options(project_id, options=None):
url = f'https://api.submagic.co/v1/projects/{project_id}/export'
headers = {
'x-api-key': 'sk-your-api-key-here',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers, json=options)
result = response.json()
print(f"Export started: {result.get('message')}")
return result
# Usage with options
export_options = {
'fps': 30,
'width': 1920,
'height': 1080,
'webhookUrl': 'https://yoursite.com/webhook/export-complete'
}
result = export_project_with_options(
'550e8400-e29b-41d4-a716-446655440000',
export_options
)
{
"message": "Export started successfully",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"status": "exporting"
}
{
"error": "NOT_FOUND",
"message": "Project doesn't exist or doesn't belong to user"
}
{
"error": "BAD_REQUEST",
"message": "Project not ready for export"
}
{
"error": "BAD_REQUEST",
"message": "Invalid fps value. Must be between 1 and 60"
}
{
"error": "INTERNAL_SERVER_ERROR",
"message": "Export failed to start"
}
Export Project
Triggers the rendering/export process for a completed project. This starts the video generation process asynchronously with customizable output parameters.This endpoint requires authentication and has enhanced rate limits for
API-generated projects. The export process is asynchronous - use webhooks or
polling to track completion.
Authentication
Path Parameters
Request Body (Optional)
All parameters are optional. If not provided, the system uses optimal defaults based on the project’s original video metadata.Prerequisites
Before exporting a project, ensure:- Project is transcribed: Must have words data available
- Project is not uploading: Cannot be in “uploading” status
- Project ownership: Must belong to the authenticated user
- API-generated project: Must be created via API
Response
Error Responses
A project Iris edited renders Iris’s latest version (see Message
Iris). Its
200 response is { "message", "success", "irisVersion" }, with the version being rendered.Webhook Notifications
If you provide awebhookUrl, the system will send a POST request to your URL when export completes,
including export details and download URL in the notification.
Export Status Tracking
After triggering an export:- Monitor Progress: Call
GET /v1/projects/{id}to check export progress - Check Download URL: The
downloadUrlanddirectUrlfields will be populated once rendering is complete
curl -X POST "https://api.submagic.co/v1/projects/550e8400-e29b-41d4-a716-446655440000/export" \
-H "x-api-key: sk-your-api-key-here" \
-H "Content-Type: application/json"
curl -X POST "https://api.submagic.co/v1/projects/550e8400-e29b-41d4-a716-446655440000/export" \
-H "x-api-key: sk-your-api-key-here" \
-H "Content-Type: application/json" \
-d '{
"fps": 30,
"width": 1920,
"height": 1080,
"webhookUrl": "https://yoursite.com/webhook/export-complete"
}'
const exportProject = async (projectId) => {
const response = await fetch(
`https://api.submagic.co/v1/projects/${projectId}/export`,
{
method: "POST",
headers: {
"x-api-key": "sk-your-api-key-here",
"Content-Type": "application/json",
},
}
);
const result = await response.json();
console.log("Export started:", result.message);
return result;
};
// Usage
const result = await exportProject("550e8400-e29b-41d4-a716-446655440000");
const exportProjectWithOptions = async (projectId, options = {}) => {
const response = await fetch(
`https://api.submagic.co/v1/projects/${projectId}/export`,
{
method: "POST",
headers: {
"x-api-key": "sk-your-api-key-here",
"Content-Type": "application/json",
},
body: JSON.stringify(options),
}
);
const result = await response.json();
console.log("Export started:", result.message);
return result;
};
// Usage with options
const exportOptions = {
fps: 30,
width: 1920,
height: 1080,
webhookUrl: "https://yoursite.com/webhook/export-complete",
};
const result = await exportProjectWithOptions(
"550e8400-e29b-41d4-a716-446655440000",
exportOptions
);
import requests
def export_project(project_id):
url = f'https://api.submagic.co/v1/projects/{project_id}/export'
headers = {
'x-api-key': 'sk-your-api-key-here',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers)
result = response.json()
print(f"Export started: {result.get('message')}")
return result
# Usage
result = export_project('550e8400-e29b-41d4-a716-446655440000')
import requests
import json
def export_project_with_options(project_id, options=None):
url = f'https://api.submagic.co/v1/projects/{project_id}/export'
headers = {
'x-api-key': 'sk-your-api-key-here',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers, json=options)
result = response.json()
print(f"Export started: {result.get('message')}")
return result
# Usage with options
export_options = {
'fps': 30,
'width': 1920,
'height': 1080,
'webhookUrl': 'https://yoursite.com/webhook/export-complete'
}
result = export_project_with_options(
'550e8400-e29b-41d4-a716-446655440000',
export_options
)
{
"message": "Export started successfully",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"status": "exporting"
}
{
"error": "NOT_FOUND",
"message": "Project doesn't exist or doesn't belong to user"
}
{
"error": "BAD_REQUEST",
"message": "Project not ready for export"
}
{
"error": "BAD_REQUEST",
"message": "Invalid fps value. Must be between 1 and 60"
}
{
"error": "INTERNAL_SERVER_ERROR",
"message": "Export failed to start"
}
Tip: After triggering an export, use the Get
Project endpoint to monitor the export progress.
The
downloadUrl and directUrl fields will be populated once the rendering
is complete.Important: The export process is asynchronous. The API will return
immediately after starting the export, but the actual video rendering happens
in the background. Use webhooks or polling to track completion status.

