נקודת גישה ל API:
http://tochen.supertech.co.il/api/v1/chats
דוגמת בקשה:
curl --location --request GET 'http://tochen.supertech.co.il/api/v1/chats' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
עבור שם. Defaults to: name
.favorite
sort_by
id
עבור תאריך יצירה, name
עבור שם. Defaults to: id
.sort
desc
עבור בסדר יורד, asc
עבור בסדר עולה. Defaults to: desc
.per_page
10
, 25
, 50
, 100
. Defaults to: 10
.נקודת גישה ל API:
http://tochen.supertech.co.il/api/v1/chats/{id}
דוגמת בקשה:
curl --location --request GET 'http://tochen.supertech.co.il/api/v1/chats/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
נקודת גישה ל API:
http://tochen.supertech.co.il/api/v1/chats
דוגמת בקשה:
curl --location --request POST 'http://tochen.supertech.co.il/api/v1/chats' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}' \ --data-urlencode 'description={description}'
name
behavior
נקודת גישה ל API:
http://tochen.supertech.co.il/api/v1/chats/{id}
דוגמת בקשה:
curl --location --request PUT 'http://tochen.supertech.co.il/api/v1/chats/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
name
behavior
favorite
נקודת גישה ל API:
http://tochen.supertech.co.il/api/v1/chats/{id}
דוגמת בקשה:
curl --location --request DELETE 'http://tochen.supertech.co.il/api/v1/chats/{id}' \ --header 'Authorization: Bearer {api_key}'