File size: 3,203 Bytes
f16d50c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
### login
POST {{baseUrl}}/chatgpt/login
Content-Type: application/json

{
  "username": "{{username}}",
  "password": "{{password}}"
}

### get conversations
GET {{baseUrl}}/chatgpt/backend-api/conversations?offset=0&limit=3&order=updated
Authorization: Bearer {{accessToken}}

### get conversation
GET {{baseUrl}}/chatgpt/backend-api/conversation/id
Authorization: Bearer {{accessToken}}

### create conversation
POST {{baseUrl}}/chatgpt/backend-api/conversation
Authorization: Bearer {{accessToken}}
Content-Type: application/json
Accept: text/event-stream

{
  "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
}

### get models
GET {{baseUrl}}/chatgpt/backend-api/models?history_and_training_disabled=false
Authorization: Bearer {{accessToken}}

### check account
GET {{baseUrl}}/chatgpt/backend-api/accounts/check
Authorization: Bearer {{accessToken}}

### check account v4
GET {{baseUrl}}/chatgpt/backend-api/accounts/check/v4-2023-04-27
Authorization: Bearer {{accessToken}}

### get settings beta features
GET {{baseUrl}}/chatgpt/backend-api/settings/beta_features
Authorization: Bearer {{accessToken}}

### get conversation limit (no need to pass access token)
GET {{baseUrl}}/chatgpt/public-api/conversation_limit
Authorization: Bearer {{accessToken}}

### get models with pandora enabled
GET {{baseUrl}}/api/models?history_and_training_disabled=false
Authorization: Bearer {{accessToken}}

### share link to chat
POST {{baseUrl}}/chatgpt/backend-api/share/create
Authorization: Bearer {{accessToken}}
Content-Type: application/json

{
	"current_node_id": "9020711b-3dcf-4705-82ac-46b5af30fc7b",
	"conversation_id": "74c406dd-a2e8-477a-b420-90ed57a55bf9",
	"is_anonymous": false
}

### copy link
PATCH {{baseUrl}}/chatgpt/backend-api/share/{share_id}
Authorization: Bearer {{accessToken}}
Content-Type: application/json

{
	"share_id": "49cd2432-d084-4ab7-8549-4ee18046812b",
	"highlighted_message_id": null,
	"title": "Summarize Request and Response 11122",
	"is_public": false,
	"is_visible": false,
	"is_anonymous": true
}

### continue shared conversation
POST {{baseUrl}}/chatgpt/backend-api/conversation
Authorization: Bearer {{accessToken}}
Content-Type: application/json

{
	"action": "next",
	"messages": [{
		"id": "{{$guid}}",
		"author": {
			"role": "user"
		},
		"content": {
			"content_type": "text",
			"parts": [
        "hello again"
      ]
		},
		"metadata": {}
	}],
	"continue_from_shared_conversation_id": "this is the share_id",
	"parent_message_id": "this is the current_node_id",
	"model": "text-davinci-002-render-sha",
	"timezone_offset_min": -480,
	"history_and_training_disabled": false,
	"arkose_token": null
}

### get plugins
GET {{baseUrl}}/chatgpt/backend-api/aip/p?offset=0&limit=250&statuses=approved
Authorization: Bearer {{accessToken}}

### get payment url
GET {{baseUrl}}/chatgpt/backend-api/payments/customer_portal
Authorization: Bearer {{accessToken}}