API端点:
https://api.xn--gpt-u68dy61b.com/api/v1/chats
要求实例:
curl --location --request GET 'https://api.xn--gpt-u68dy61b.com/api/v1/chats' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
为 姓名. 默认为: name
.favorite
sort_by
id
为 创建日期, name
为 姓名. 默认为: id
.sort
desc
为 降序, asc
为 升序. 默认为: desc
.per_page
10
, 25
, 50
, 100
. 默认为: 25
.API端点:
https://api.xn--gpt-u68dy61b.com/api/v1/chats/{id}
要求实例:
curl --location --request GET 'https://api.xn--gpt-u68dy61b.com/api/v1/chats/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API端点:
https://api.xn--gpt-u68dy61b.com/api/v1/chats
要求实例:
curl --location --request POST 'https://api.xn--gpt-u68dy61b.com/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://api.xn--gpt-u68dy61b.com/api/v1/chats/{id}
要求实例:
curl --location --request PUT 'https://api.xn--gpt-u68dy61b.com/api/v1/chats/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
name
favorite
API端点:
https://api.xn--gpt-u68dy61b.com/api/v1/chats/{id}
要求实例:
curl --location --request DELETE 'https://api.xn--gpt-u68dy61b.com/api/v1/chats/{id}' \ --header 'Authorization: Bearer {api_key}'