curl --request POST \
--url https://api.open.cx/workflows/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"trigger_type": "manual-trigger",
"workflow_blocks": [
"<unknown>"
]
}
'{
"valid": true,
"issues": [
{
"step_id": "<string>",
"message": "<string>"
}
],
"action_types_used": [
"<string>"
]
}Validate workflow blocks without creating a workflow. Returns validation issues and the list of action types used. Use this before creating or updating a workflow to catch errors early.
curl --request POST \
--url https://api.open.cx/workflows/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"trigger_type": "manual-trigger",
"workflow_blocks": [
"<unknown>"
]
}
'{
"valid": true,
"issues": [
{
"step_id": "<string>",
"message": "<string>"
}
],
"action_types_used": [
"<string>"
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Trigger type to validate against
manual-trigger, ai-trigger, cron-trigger, form-trigger, webhook, contact-created, phone-call-started, phone-call-finished, ticket-created, ticket-reassigned, ticket-resolved, ticket-handoff, pre-ticket-handoff, ticket-tag-added, ticket-inactive, sequence-completed, csat-score-submit, prohibited-topic-detected, sla-first-reply-breached, sla-next-reply-breached, sla-resolution-breached, voice-call-transferred, pre-voice-call-transfer Workflow blocks to validate
Was this page helpful?