Skip to main content
POST
Create command

Авторизації

Authorization
string
header
обов'язково

API token from the Zenedu dashboard

Параметри шляху

bot
integer
обов'язково

Bot ID

Тіло

application/json
name
string
обов'язково

Command name without slash, cannot be start

Maximum string length: 255
Pattern: ^[a-z0-9_]+$
description
string
обов'язково
Maximum string length: 255
action
enum<string>
обов'язково

Command action. Special actions (manage subscriptions, manage affiliate program) are accepted as well

Доступні опції:
send_step,
send_funnel_step,
product_navigation,
funnel_navigation,
add_to_product,
add_to_funnel,
manage_subscriptions,
manage_affiliate_program
settings
object | null

Action settings

Відповідь

Command created

data
object