Skip to main content
POST
Create funnel step

Authorizations

Authorization
string
header
required

API token from the Zenedu dashboard

Path Parameters

bot
integer
required

Bot ID

product
integer
required

Funnel ID

Body

application/json
type
enum<string>
required

Step type. A task step automatically gets a task submission button (type: task), named in the bot's language — you don't add it yourself.

Available options:
message,
lesson,
task,
question,
poll,
quiz
name
string
required
Maximum string length: 255
text
string | null
active
boolean
task_autocheck
boolean

Task steps only: accept a submitted task automatically and advance the student immediately, instead of waiting for manual review.

custom_field_id
integer | null
sending_time
object
menu_time
object

When the step becomes available in the bot menu

settings
object
options
object[]

Poll or quiz options

Required array length: 2 - 12 elements
telegram_file_ids
integer[]

IDs of files registered via POST /api/v1/bot/{bot}/telegram-files to attach to this step (photos, videos, documents, etc.). The given set replaces the current attachments entirely. Only files you uploaded that are not yet attached to anything are accepted — an already-attached, non-existent, or another user's id returns 422 (telegram_file_ids: Not found). Omit the field or send an empty array to leave attachments unchanged; null is rejected with 422. To remove an attachment, use DELETE …/steps/{step}/attachments/{file}.

Response

Step created

data
object