Full reference for the Priostack BPMN 2.0 workflow execution API.
curl -sX POST https://priostack.com/api/signup \
-H 'Content-Type: application/json' \
-d '{"email":"you@company.com"}'
curl -sX POST https://priostack.com/api/v1/process-definitions \
-H "Authorization: Bearer ps_your_key" \
-F "files=@my-process.bpmn"
curl -sX POST https://priostack.com/api/v1/process-instances \
-H "Authorization: Bearer ps_your_key" \
-H 'Content-Type: application/json' \
-d '{"bpmnProcessId":"my-process","variables":{"orderId":42}}'
curl -sX POST https://priostack.com/api/v1/jobs/activate \
-H "Authorization: Bearer ps_your_key" \
-H 'Content-Type: application/json' \
-d '{"type":"send-email","maxJobsToActivate":10}'
# Open in your browser and log in with your API key:
https://priostack.com/dashboard
# Or generate a session token first:
curl -sX POST https://priostack.com/api/token \
-H 'Content-Type: application/json' \
-d '{"api_key":"ps_your_key"}'
curl -sX POST https://priostack.com/api/keys/rotate \
-H 'Content-Type: application/json' \
-d '{"old_key":"ps_old...","new_key":"ps_new..."}'