Workflow (Legacy)

Create Workflow

SecurityAPIKeyHeader
Request
Request Body schema: multipart/form-data
title
string (Title)
Default: ""
description
string (Description)
Default: ""
visibility_status
string (Visibility Status)
Default: "1"

Visibility Status:

Value Status
"0" Private
"1" Unlisted
"2" Public
image_files
Array of strings <binary> (Image Files)
Default: []

Images to upload. ...

image_urls
Array of strings (Image URLs)
Default: []

If you upload image files, this field will be ignored.

template_id
string (Template ID)
Default: "vim_new_year_2026"

Template ID of the workflow. ...

options
string (Options)
Default: "{}"

Json string of options

event_id
string (Event ID)
Default: "no_event"

Event ID of the workflow. ..

Responses
200

New Media

402

Insufficient Credit

404

Not Found

422

Validation Error

post/workflow
Request samples
Response samples
application/json
{}

Get Workflow Status

SecurityAPIKeyHeader
Responses
200

Workflow Object

404

Not Found

422

Validation Error

get/workflow/{workflow_id}
Request samples
Response samples
application/json
{}

Update Workflow

Update a workflow. You can update one or more of the following fields:

  • title: Workflow title
  • description: Workflow description
  • visibility_status: Visibility status ("0" for private, "1" for unlisted, "2" for public)
  • rating: Rating value (string)
  • delivered_at: Timestamp for when workflow was delivered (if None or not provided, current timestamp will be used when setting delivered_at)
SecurityAPIKeyHeader
Request
Request Body schema: application/json
required
property name*
additional property
any
Responses
200

Updated Workflow Object

400

Bad Request

404

Not Found

422

Validation Error

put/workflow/{workflow_id}
Request samples
Response samples
application/json
{}

Delete Workflow

Delete a workflow and its associated S3 files.

SecurityAPIKeyHeader
Responses
200

Deleted Workflow Object

404

Not Found

422

Validation Error

delete/workflow/{workflow_id}
Request samples
Response samples
application/json
{}

Log Customer Script Error

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_message (required): Error message from customer script
  • context (optional): Additional context information (e.g., workflow_id, script_name, etc.)
SecurityAPIKeyHeader
Request
Request Body schema: application/json
required
property name*
additional property
any
Responses
200

Error logged successfully

400

Bad Request

422

Validation Error

post/workflow/error-log
Request samples
Response samples
application/json
{}