Skip to main content
POST
/
api
/
v1
/
workflows
/
{slug}
/
{version}
/
runs
Create and trigger a workflow run
curl --request POST \
  --url https://promptjuggler.com/api/v1/api/v1/workflows/{slug}/{version}/runs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "inputs": {},
  "thread": null,
  "priority": "normal",
  "environment": null
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "thread": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

Workflow Handle

version
integer
required

Specific version or tag

Body

application/json
inputs
object
required
thread
string<uuid> | null
priority
enum<string>
default:normal
Available options:
onsite,
normal,
low
environment
string | null

Response

Workflow run created

id
string<uuid>
required

Workflow run ID

thread
string<uuid>
required

Thread ID for multi-turn runs