curl --request POST \
--url https://api.getenso.ai/workflows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Send Slack on invoice raised",
"trigger": "invoice.raised",
"steps": [
{}
]
}
'{
"status": "success",
"message": "Success",
"data": {}
}Create a new automation workflow (e.g. invoice-sent trigger, Slack notifications).
curl --request POST \
--url https://api.getenso.ai/workflows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Send Slack on invoice raised",
"trigger": "invoice.raised",
"steps": [
{}
]
}
'{
"status": "success",
"message": "Success",
"data": {}
}JWT bearer token obtained from POST /auth/system-login using your client credentials.