forked from linweiyuan/go-chatgpt-api
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathios.http
50 lines (45 loc) · 1.12 KB
/
ios.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
### create conversation
POST https://ios.chat.openai.com/backend-api/conversation
Authorization: Bearer {{accessToken}}
Cookie: _devicecheck=user-xxx
Accept: text/event-stream
Content-Type: application/json
{
"action": "next",
"messages": [
{
"id": "{{$guid}}",
"author": {
"role": "user"
},
"content": {
"content_type": "text",
"parts": [
"hello"
]
},
"metadata": {}
}
],
"model": "gpt-4",
"timezone_offset_min": -480,
"history_and_training_disabled": false,
"supports_modapi": true
}
### get conversations
GET https://ios.chat.openai.com/backend-api/conversations?offset=0&limit=3&order=updated
Authorization: Bearer {{accessToken}}
Cookie: _devicecheck=user-xxx
### device check
POST https://ios.chat.openai.com/backend-api/devicecheck
Authorization: Bearer {{accessToken}}
Cookie: _preauth_devicecheck=xxx
Content-Type: application/json
{
"bundle_id": "com.openai.chat",
"device_token": "ad"
}
### me
GET https://ios.chat.openai.com/backend-api/me?include_groups=true
Authorization: Bearer {{accessToken}}
Cookie: _devicecheck=user-xxx