Skip to main content
POST
/
v1
/
workflow
Execute workflow
curl --request POST \
  --url https://api.illuminalab.com/v1/workflow/ \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "workflow_name": "<string>",
  "message": {
    "id": "<string>",
    "role": "system",
    "parts": [
      {
        "type": "<string>",
        "text": "<string>"
      }
    ],
    "content": "",
    "createdAt": "<string>",
    "metadata": {
      "workflowName": "<string>",
      "agentName": "<string>",
      "runId": "<string>"
    }
  },
  "thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "resource_id": "<string>",
  "metadata": {}
}
'
"<string>"

Headers

authorization
string
required

Body

workflow_name
string
required

Name of the workflow to execute (e.g., 'trinus-chat-workflow')

Minimum string length: 1
message
object
required

User message in IlluminaUIMessage format with parts array

thread_id
string<uuid>
required

UUID of the conversation thread

resource_id
string
required

Unique resource identifier (min 10 chars, no whitespace)

Minimum string length: 10
metadata
object

Optional key-value metadata for workflow configuration

Response

Server-Sent Events stream following the AI SDK UI Message protocol. Format: 'event: \ndata: \n\n' for each event.

Server-Sent Events stream following the AI SDK UI Message protocol. Format: 'event: \ndata: \n\n' for each event.