נקודת גישה ל API:
http://tochen.supertech.co.il/api/v1/messages
דוגמת בקשה:
curl --location --request GET 'http://tochen.supertech.co.il/api/v1/messages' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_bymessage עבור הודעה. Defaults to: message.chat_idroleuser עבור משתמש, assistant עבור מסייע.sort_byid עבור תאריך יצירה. Defaults to: id.sortdesc עבור בסדר יורד, asc עבור בסדר עולה. Defaults to: desc.per_page10, 25, 50, 100. Defaults to: 10.נקודת גישה ל API:
http://tochen.supertech.co.il/api/v1/messages
דוגמת בקשה:
curl --location --request POST 'http://tochen.supertech.co.il/api/v1/messages' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}' \ --data-urlencode 'description={description}'
namechat_idroleuser עבור משתמש, assistant עבור מסייע.