Перейти к содержимому

Получить настройки публичной формы

POST
/club/leads.form.get
curl --request POST \
--url https://api.tride.ru/club/leads.form.get \
--header 'Content-Type: application/json' \
--data '{ "token": "<токен>" }'

Передайте публичный token из настроек формы. Порядок подключения.

Media typeapplication/json
object
token
required
string

Example

{
"token": "<токен>"
}

При ошибке сервер возвращает поле error.

Media typeapplication/json
Any of:
object
form
object
name
fields
Array
consent_text
string
consent_source
string
success_text
string
redirect_url
string
theme
object
clubs
Array
captcha
object

Example generated

{
"form": {
"name": "example",
"fields": [
"example"
],
"consent_text": "example",
"consent_source": "example",
"success_text": "example",
"redirect_url": "example",
"theme": {},
"clubs": [
"example"
],
"captcha": {}
}
}