API endpoint:
https://botwriter.org/api/v1/chats
Пример запроса:
curl --location --request GET 'https://botwriter.org/api/v1/chats' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_byname для Имя. По умолчанию: name.favoritesort_byid для Дата создания, name для Имя. По умолчанию: id.sortdesc для Нисходящий, asc для Восходящий. По умолчанию: desc.per_page10, 25, 50, 100. По умолчанию: 10.API endpoint:
https://botwriter.org/api/v1/chats/{id}
Пример запроса:
curl --location --request GET 'https://botwriter.org/api/v1/chats/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
https://botwriter.org/api/v1/chats
Пример запроса:
curl --location --request POST 'https://botwriter.org/api/v1/chats' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}' \ --data-urlencode 'description={description}'
namebehaviorAPI endpoint:
https://botwriter.org/api/v1/chats/{id}
Пример запроса:
curl --location --request PUT 'https://botwriter.org/api/v1/chats/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
namebehaviorfavoriteAPI endpoint:
https://botwriter.org/api/v1/chats/{id}
Пример запроса:
curl --location --request DELETE 'https://botwriter.org/api/v1/chats/{id}' \ --header 'Authorization: Bearer {api_key}'