Skip to main content
POST
/
openapi
/
task
/
create
Create workflow task
curl --request POST \
  --url https://platform.neza.video/api/openapi/task/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workflowId": 1024,
  "nodeInfoList": [
    {
      "nodeId": 16,
      "fieldName": "positive_prompt",
      "fieldValue": "hyper realistic portrait"
    }
  ]
}
'
{
  "task_id": "<string>",
  "status": "<string>",
  "queue_position": 123,
  "extra_params": {},
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Create an API key inside the Neza console and pass it as a Bearer token.

Body

application/json
workflowId
integer
required

ID of a workflow that belongs to your account.

nodeInfoList
object[]
required

Response

Task enqueued

task_id
string
required

Unique identifier for the created task.

status
string
required

Initial status of the task (for example pending or processing).

queue_position
integer<int32> | null

Position of the task inside the queue when available.

extra_params
object

Metadata that was attached to the task (workflow ID, webapp ID, etc.).

message
string

Optional scheduler message.