Create Campaign Step
Add a step to a campaign
Required scope: campaigns:write
AuthorizationBearer <luso8_sk_live_<40 characters>>A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.
campaign_id*Campaign Idapplication/json- body
Schema for creating a campaign step.
Keywords (step_type, channel, condition_type, review_status) are
matched ignoring case, and a blank id is no id.
review_status lets a client that just wrote the copy itself save the
step as reviewed in one call (the detail page's step dialog does this).
Only pending / reviewed are meaningful here; generated / edited
are derived server-side. Leave it unset for AI / template-created steps
so they still go through human review before launch.
name*Namedescription?string|nullstep_type*StepType"message""ai_message""wait""condition""ai_agent""webhook""update_contact""add_to_list""remove_from_list""end"order*Orderchannel?|nullsubject?string|nullcontent?string|nullcontent_html?string|nulltemplate_id?string|nullagent_id?string|nullagent_config?|nullai_message_config?|nullwait_duration?integer|nullwait_unit?string|nullwait_until?|nullcondition_type?|nullcondition_config?|nullcondition_timeout?integer|nullnext_step_id?string|nulltrue_branch_step_id?string|nullfalse_branch_step_id?string|nullaction_config?|nullwebhook_url?string|nullwebhook_method?|"POST"webhook_headers?|nullwebhook_payload?|nullis_active?Is Activetrueskip_if_contacted?Skip If Contactedfalseretry_on_failure?Retry On Failuretruemax_retries?Max Retries3include_signature?Include Signaturetruetrigger_workflow_id?string|nullab_test_enabled?Ab Test Enabledfalseab_variants?array<>|nullreview_status?|nullSuccessful Response
application/json- response
Schema for campaign step response
name*Namedescription?string|nullstep_type*StepType"message""ai_message""wait""condition""ai_agent""webhook""update_contact""add_to_list""remove_from_list""end"order*Orderchannel?|nullsubject?string|nullcontent?string|nullcontent_html?string|nulltemplate_id?string|nullagent_id?string|nullagent_config?|nullai_message_config?|nullwait_duration?integer|nullwait_unit?string|nullwait_until?|nullcondition_type?|nullcondition_config?|nullcondition_timeout?integer|nullnext_step_id?string|nulltrue_branch_step_id?string|nullfalse_branch_step_id?string|nullaction_config?|nullwebhook_url?string|nullwebhook_method?|"POST"webhook_headers?|nullwebhook_payload?|nullis_active?Is Activetrueskip_if_contacted?Skip If Contactedfalseretry_on_failure?Retry On Failuretruemax_retries?Max Retries3include_signature?Include Signaturetruetrigger_workflow_id?string|nullab_test_enabled?Ab Test Enabledfalseab_variants?array<>|nullid*Idcampaign_id*Campaign Idtotal_executed?Total Executed0total_success?Total Success0total_failed?Total Failed0review_status?StepReviewStatusPer-step review state for the generate-copy → review → launch flow.
"pending""pending""generated""reviewed""edited"reviewed_by?string|nullreviewed_at?|nullgenerated_at?|nullgeneration_job_id?string|nullcreated_at*Created Atdate-timeupdated_at?|nullcurl -X POST 'https://api.luso8.rexplore.ai/api/v1/campaigns/string/steps' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "step_type": "message", "order": 0}'{ "name": "string", "description": "string", "step_type": "message", "order": 0, "channel": "email", "subject": "string", "content": "string", "content_html": "string", "template_id": "string", "agent_id": "string", "agent_config": {}, "ai_message_config": {}, "wait_duration": 0, "wait_unit": "string", "wait_until": {}, "condition_type": "email_opened", "condition_config": {}, "condition_timeout": 0, "next_step_id": "string", "true_branch_step_id": "string", "false_branch_step_id": "string", "action_config": {}, "webhook_url": "string", "webhook_method": "POST", "webhook_headers": { "property1": "string", "property2": "string" }, "webhook_payload": {}, "is_active": true, "skip_if_contacted": false, "retry_on_failure": true, "max_retries": 3, "include_signature": true, "trigger_workflow_id": "string", "ab_test_enabled": false, "ab_variants": [ {} ], "id": "string", "campaign_id": "string", "total_executed": 0, "total_success": 0, "total_failed": 0, "review_status": "pending", "reviewed_by": "string", "reviewed_at": "2019-08-24T14:15:22Z", "generated_at": "2019-08-24T14:15:22Z", "generation_job_id": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}