پایانه API:
https://ai.mr-web.ir/api/v1/chats
مثال درخواست:
curl --location --request GET 'https://ai.mr-web.ir/api/v1/chats' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_byname.favoritesort_byid.sortdesc.per_page10, 25, 50, 100. مقدار پیش فرض: 10.پایانه API:
https://ai.mr-web.ir/api/v1/chats/{id}
مثال درخواست:
curl --location --request GET 'https://ai.mr-web.ir/api/v1/chats/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
پایانه API:
https://ai.mr-web.ir/api/v1/chats
مثال درخواست:
curl --location --request POST 'https://ai.mr-web.ir/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پایانه API:
https://ai.mr-web.ir/api/v1/chats/{id}
مثال درخواست:
curl --location --request PUT 'https://ai.mr-web.ir/api/v1/chats/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
namefavoriteپایانه API:
https://ai.mr-web.ir/api/v1/chats/{id}
مثال درخواست:
curl --location --request DELETE 'https://ai.mr-web.ir/api/v1/chats/{id}' \ --header 'Authorization: Bearer {api_key}'