Конечная точка API:
https://upstat.link/api/v1/websites
Пример запроса:
curl --location --request GET 'https://upstat.link/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
domain
для Домен. По умолчанию: domain
.favorite
sort_by
id
для Дата создания, domain
для Домен. По умолчанию: id
.sort
desc
для По убыванию, asc
для По возрастанию. По умолчанию: desc
.per_page
10
, 25
, 50
, 100
. По умолчанию: 10
.Конечная точка API:
https://upstat.link/api/v1/websites/{id}
Пример запроса:
curl --location --request GET 'https://upstat.link/api/v1/websites/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
Конечная точка API:
https://upstat.link/api/v1/websites
Пример запроса:
curl --location --request POST 'https://upstat.link/api/v1/websites' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'domain={domain}'
domain
privacy
0
для Публичный, 1
для Приватный, 2
для Пароль. По умолчанию: 0
.password
privacy
установленным на 2
.email
0
для Отключено, 1
для Включено. По умолчанию: 0
.exclude_bots
0
для Отключено, 1
для Включено. По умолчанию: 1
.exclude_params
exclude_ips
Конечная точка API:
https://upstat.link/api/v1/websites/{id}
Пример запроса:
curl --location --request PUT 'https://upstat.link/api/v1/websites/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
privacy
0
для Публичный, 1
для Приватный, 2
для Пароль.password
privacy
установленным на 2
.email
0
для Отключено, 1
для Включено.exclude_bots
0
для Отключено, 1
для Включено.exclude_params
exclude_ips
favorite
Конечная точка API:
https://upstat.link/api/v1/websites/{id}
Пример запроса:
curl --location --request DELETE 'https://upstat.link/api/v1/websites/{id}' \ --header 'Authorization: Bearer {api_key}'