New Media
Insufficient Credit
Not Found
Validation Error
{- "data": {
- "id": "workflow-id-12345",
- "title": "My Animated Video",
- "description": "Animated overlay video with background",
- "visibility_status": "1",
- "model": "vim_new_year_2026",
- "options": {
- "aspect_ratio": "16:9",
- "pipeline_mode": "video"
}, - "primary_user_id": "user@example.com",
- "customer_id": "customer-id",
- "processing_status": "success",
- "progress_percentage": 100,
- "completions": [
- {
- "result": [
], - "flow": "crop_to_content"
}, - {
- "result": [
], - "flow": "replace_alpha_with_gray"
}, - {
- "result": [
], - "flow": "upscale"
}, - {
- "result": [
], - "flow": "create_media"
}, - {
- "result": [
], - "flow": "video_overlay"
}
], - "result": [
], - "media_result": [
- {
- "updated_at": "2025-04-11 18:42:51+00:00",
- "size": 411634,
}
], - "created_at": "2025-04-11 18:33:59.780864+00:00",
- "updated_at": "2025-04-11 18:43:47.510893+00:00"
}
}Workflow Object
Not Found
Validation Error
{- "data": {
- "id": "workflow-id-12345",
- "title": "My Animated Video",
- "description": "Animated overlay video with background",
- "visibility_status": "1",
- "model": "vim_new_year_2026",
- "options": {
- "aspect_ratio": "16:9",
- "pipeline_mode": "video"
}, - "primary_user_id": "user@example.com",
- "customer_id": "customer-id",
- "processing_status": "success",
- "progress_percentage": 100,
- "completions": [
- {
- "result": [
], - "flow": "crop_to_content"
}, - {
- "result": [
], - "flow": "replace_alpha_with_gray"
}, - {
- "result": [
], - "flow": "upscale"
}, - {
- "result": [
], - "flow": "create_media"
}, - {
- "result": [
], - "flow": "video_overlay"
}
], - "result": [
], - "media_result": [
- {
- "updated_at": "2025-04-11 18:42:51+00:00",
- "size": 411634,
}
], - "created_at": "2025-04-11 18:33:59.780864+00:00",
- "updated_at": "2025-04-11 18:43:47.510893+00:00"
}
}Update a workflow. You can update one or more of the following fields:
Updated Workflow Object
Bad Request
Not Found
Validation Error
{- "data": {
- "id": "workflow-id-12345",
- "title": "My Animated Video",
- "description": "Animated overlay video with background",
- "visibility_status": "1",
- "model": "vim_new_year_2026",
- "options": {
- "aspect_ratio": "16:9",
- "pipeline_mode": "video"
}, - "primary_user_id": "user@example.com",
- "customer_id": "customer-id",
- "processing_status": "success",
- "progress_percentage": 100,
- "completions": [
- {
- "result": [
], - "flow": "crop_to_content"
}, - {
- "result": [
], - "flow": "replace_alpha_with_gray"
}, - {
- "result": [
], - "flow": "upscale"
}, - {
- "result": [
], - "flow": "create_media"
}, - {
- "result": [
], - "flow": "video_overlay"
}
], - "result": [
], - "media_result": [
- {
- "updated_at": "2025-04-11 18:42:51+00:00",
- "size": 411634,
}
], - "created_at": "2025-04-11 18:33:59.780864+00:00",
- "updated_at": "2025-04-11 18:43:47.510893+00:00"
}
}Delete a workflow and its associated S3 files.
Deleted Workflow Object
Not Found
Validation Error
{- "data": {
- "id": "workflow-id-12345",
- "title": "My Animated Video",
- "description": "Animated overlay video with background",
- "visibility_status": "1",
- "model": "vim_new_year_2026",
- "options": {
- "aspect_ratio": "16:9",
- "pipeline_mode": "video"
}, - "primary_user_id": "user@example.com",
- "customer_id": "customer-id",
- "processing_status": "success",
- "progress_percentage": 100,
- "completions": [
- {
- "result": [
], - "flow": "crop_to_content"
}, - {
- "result": [
], - "flow": "replace_alpha_with_gray"
}, - {
- "result": [
], - "flow": "upscale"
}, - {
- "result": [
], - "flow": "create_media"
}, - {
- "result": [
], - "flow": "video_overlay"
}
], - "result": [
], - "media_result": [
- {
- "updated_at": "2025-04-11 18:42:51+00:00",
- "size": 411634,
}
], - "created_at": "2025-04-11 18:33:59.780864+00:00",
- "updated_at": "2025-04-11 18:43:47.510893+00:00"
}
}Log customer script errors to S3. Errors are organized by customer_id and weekly period. Logs reset every week, with all errors for a week stored in a single file.
Request body should contain:
Error logged successfully
Bad Request
Validation Error
{- "data": {
- "message": "Error logged successfully",
- "log_path": "customer-error-logs/customer_id/errors-2024-W15.log",
}
}