Промостраницы
GET https://dots.by/api/splash-pages/
curl --request GET \
--url 'https://dots.by/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dots.by/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
| Параметры | Подробнее | Описание |
|---|---|---|
| search | Необязательно Строка | Поисковая строка. |
| search_by | Необязательно Строка | Поле для поиска. Допустимые значения: name. |
| datetime_field | Необязательно Строка | Допустимые значения: datetime, last_datetime |
| datetime_start | Необязательно Строка | Начальная дата и время отбора в формате Y-m-d H:i:s. |
| datetime_end | Необязательно Строка | Конечная дата и время отбора в формате Y-m-d H:i:s. |
| order_by | Необязательно Строка | Поле для сортировки. Допустимые значения: splash_page_id, datetime, last_datetime, name. |
| order_type | Необязательно Строка | Порядок сортировки: ASC — по возрастанию, DESC — по убыванию. |
| page | Необязательно Целое число | Номер страницы результатов. По умолчанию — 1. |
| results_per_page | Необязательно Целое число | Количество результатов на странице. Допустимые значения: 10, 25, 50, 100, 250, 500, 1000. По умолчанию — 25. |
{
"data": [
{
"id": 1,
"user_id": 1,
"name": "Example",
"title": "Example",
"description": "Example",
"link_unlock_seconds": "Example",
"auto_redirect": true,
"settings": [],
"last_datetime": null,
"datetime": "2026-12-01 20:10:15"
}
],
"meta": {
"page": 1,
"total_pages": 1,
"results_per_page": 25,
"total_results": 1
},
"links": {
"first": "https://dots.by/api/splash-pages?page=1",
"last": "https://dots.by/api/splash-pages?page=1",
"next": null,
"prev": null,
"self": "https://dots.by/api/splash-pages?page=1"
}
}
GET https://dots.by/api/splash-pages/{splash_page_id}
curl --request GET \
--url 'https://dots.by/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dots.by/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"user_id": 1,
"name": "Example",
"title": "Example",
"description": "Example",
"link_unlock_seconds": "Example",
"auto_redirect": true,
"settings": [],
"last_datetime": null,
"datetime": "2026-12-01 20:10:15"
}
}
POST https://dots.by/api/splash-pages
| Параметры | Подробнее | Описание |
|---|---|---|
| name | Обязательно Строка | - |
| title | Необязательно Строка | - |
| logo | Необязательно Файл | - |
| favicon | Необязательно Файл | - |
| opengraph | Необязательно Файл | - |
| description | Необязательно Строка | - |
| secondary_button_name | Необязательно Строка | - |
| secondary_button_url | Необязательно Строка | - |
| custom_css | Необязательно Строка | - |
| custom_js | Необязательно Строка | - |
| ads_header | Необязательно Строка | - |
| ads_footer | Необязательно Строка | - |
| link_unlock_seconds | Необязательно Целое число | - |
| auto_redirect | Необязательно Логическое значение | - |
curl --request POST \
--url 'https://dots.by/api/projects' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Sample splash page' \
--form 'title=Custom splash page title' \
--form 'description=Custom splash page description' \
--url 'https://dots.by/api/projects' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Sample splash page' \
--form 'title=Custom splash page title' \
--form 'description=Custom splash page description' \
{
"data": {
"id": 1,
"user_id": 1,
"name": "Example",
"title": "Example",
"description": "Example",
"link_unlock_seconds": "Example",
"auto_redirect": true,
"settings": [],
"last_datetime": null,
"datetime": "2026-12-01 20:10:15"
}
}
POST https://dots.by/api/splash-pages/{splash_page_id}
| Параметры | Подробнее | Описание |
|---|---|---|
| name | Необязательно Строка | - |
| title | Необязательно Строка | - |
| logo | Необязательно Файл | - |
| favicon | Необязательно Файл | - |
| opengraph | Необязательно Файл | - |
| description | Необязательно Строка | - |
| secondary_button_name | Необязательно Строка | - |
| secondary_button_url | Необязательно Строка | - |
| custom_css | Необязательно Строка | - |
| custom_js | Необязательно Строка | - |
| ads_header | Необязательно Строка | - |
| ads_footer | Необязательно Строка | - |
| link_unlock_seconds | Необязательно Целое число | - |
| auto_redirect | Необязательно Логическое значение | - |
curl --request POST \
--url 'https://dots.by/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Sample splash page' \
--form 'title=Custom splash page title' \
--form 'description=Custom splash page description' \
--url 'https://dots.by/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Sample splash page' \
--form 'title=Custom splash page title' \
--form 'description=Custom splash page description' \
{
"data": {
"id": 1,
"user_id": 1,
"name": "Example",
"title": "Example",
"description": "Example",
"link_unlock_seconds": "Example",
"auto_redirect": true,
"settings": [],
"last_datetime": null,
"datetime": "2026-12-01 20:10:15"
}
}
DELETE https://dots.by/api/splash-pages/{splash_page_id}
curl --request DELETE \
--url 'https://dots.by/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dots.by/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \