2021-07-05
1curl -X POST https://withpersona.com/api/v1/workflows/workflow-id/trigger \2 -H "Authorization: <apiKey>" \3 -H "Content-Type: application/json" \4 -d '{}'
1{2 "data": {3 "type": "workflow-run",4 "id": "wfr_3JqAR9ddLRVZLK5z4yD8oeHB",5 "attributes": {6 "status": "in_progress",7 "created-at": "2022-08-08T18:55:44.910Z",8 "completed-at": {}9 },10 "relationships": {11 "workflow-version": {12 "data": {13 "type": "workflow-version",14 "id": "wfv_DkWeGvK9wojQnubF8ABHzJRQ"15 }16 },17 "workflow": {18 "data": {19 "type": "workflow",20 "id": "wfl_3VghhbvDc7UuUNT8uZrqZjsk"21 }22 },23 "creator": {24 "data": {}25 }26 }27 }28}
Create a new Workflow Run.
Note: The payload is arbitrary and defined by the Workflow version trigger schema.