personal_connections
authorizeChatGPT
POST
/connections/chatgpt/authorizeProvide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer YOUR_API_KEY
Request Body
Example:
{
"connection_id": "string"
}
Code Examples
curl -X POST "/db/v1/connections/chatgpt/authorize" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"connection_id": "string"
}'const response = await fetch('/db/v1/connections/chatgpt/authorize', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"connection_id": "string"
})
});
const data = await response.json();fetch('/db/v1/connections/chatgpt/authorize', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"connection_id": "string"
})
})
.then(response => response.json())
.then(data => console.log(data));import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY'
}
response = requests.post(
'/db/v1/connections/chatgpt/authorize',
headers=headers,
json={
"connection_id": "string"
}
)
data = response.json()package main
import (
"bytes"
"encoding/json"
"net/http"
)
func main() {
body := []byte(`{
"connection_id": "string"
}`)
req, _ := http.NewRequest("POST", "/db/v1/connections/chatgpt/authorize", bytes.NewBuffer(body))
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
}Responses
{
"attempt_id": "string",
"authorization_url": "string",
"expires_at": 0
}No response body
No response body
getChatGPTAttempt
GET
/connections/chatgpt/attempts/{attempt_id}Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer YOUR_API_KEY
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
attempt_id | string | path | Yes |
Code Examples
curl -X GET "/db/v1/connections/chatgpt/attempts/{attempt_id}" \
-H "Authorization: Bearer YOUR_API_KEY"const response = await fetch('/db/v1/connections/chatgpt/attempts/{attempt_id}', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();fetch('/db/v1/connections/chatgpt/attempts/{attempt_id}', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY'
}
response = requests.get('/db/v1/connections/chatgpt/attempts/{attempt_id}', headers=headers)
data = response.json()package main
import (
"bytes"
"encoding/json"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "/db/v1/connections/chatgpt/attempts/{attempt_id}", nil)
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
}Responses
{
"status": "pending",
"connection_id": "string",
"error": "string"
}No response body
No response body
listChatGPTAccounts
GET
/connections/chatgpt/accountsProvide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer YOUR_API_KEY
Code Examples
curl -X GET "/db/v1/connections/chatgpt/accounts" \
-H "Authorization: Bearer YOUR_API_KEY"const response = await fetch('/db/v1/connections/chatgpt/accounts', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();fetch('/db/v1/connections/chatgpt/accounts', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY'
}
response = requests.get('/db/v1/connections/chatgpt/accounts', headers=headers)
data = response.json()package main
import (
"bytes"
"encoding/json"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "/db/v1/connections/chatgpt/accounts", nil)
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
}Responses
{
"accounts": [
{
"connection_id": "string",
"email": "string",
"label": "string",
"connected": true,
"plan_enabled": true
}
]
}No response body
No response body
listChatGPTModels
GET
/connections/{connection_id}/chatgpt/modelsProvide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer YOUR_API_KEY
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
connection_id | string | path | Yes |
Code Examples
curl -X GET "/db/v1/connections/{connection_id}/chatgpt/models" \
-H "Authorization: Bearer YOUR_API_KEY"const response = await fetch('/db/v1/connections/{connection_id}/chatgpt/models', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();fetch('/db/v1/connections/{connection_id}/chatgpt/models', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY'
}
response = requests.get('/db/v1/connections/{connection_id}/chatgpt/models', headers=headers)
data = response.json()package main
import (
"bytes"
"encoding/json"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "/db/v1/connections/{connection_id}/chatgpt/models", nil)
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
}Responses
{}No response body
No response body
disconnectChatGPT
POST
/connections/{connection_id}/chatgpt/disconnectProvide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer YOUR_API_KEY
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
connection_id | string | path | Yes |
Code Examples
curl -X POST "/db/v1/connections/{connection_id}/chatgpt/disconnect" \
-H "Authorization: Bearer YOUR_API_KEY"const response = await fetch('/db/v1/connections/{connection_id}/chatgpt/disconnect', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();fetch('/db/v1/connections/{connection_id}/chatgpt/disconnect', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY'
}
response = requests.post('/db/v1/connections/{connection_id}/chatgpt/disconnect', headers=headers)
data = response.json()package main
import (
"bytes"
"encoding/json"
"net/http"
)
func main() {
req, _ := http.NewRequest("POST", "/db/v1/connections/{connection_id}/chatgpt/disconnect", nil)
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
}Responses
{
"revocation_confirmed": true
}No response body
No response body