personal_connections#

authorizeChatGPT#

POST/connections/chatgpt/authorize

Provide 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"
}'

Responses#

{
  "attempt_id": "string",
  "authorization_url": "string",
  "expires_at": 0
}

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#

NameTypeLocationRequiredDescription
attempt_idstringpathYes

Code Examples#

curl -X GET "/db/v1/connections/chatgpt/attempts/{attempt_id}" \
    -H "Authorization: Bearer YOUR_API_KEY"

Responses#

{
  "status": "pending",
  "connection_id": "string",
  "error": "string"
}

listChatGPTAccounts#

GET/connections/chatgpt/accounts

Provide 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"

Responses#

{
  "accounts": [
    {
      "connection_id": "string",
      "email": "string",
      "label": "string",
      "connected": true,
      "plan_enabled": true
    }
  ]
}

listChatGPTModels#

GET/connections/{connection_id}/chatgpt/models

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer YOUR_API_KEY

Parameters#

NameTypeLocationRequiredDescription
connection_idstringpathYes

Code Examples#

curl -X GET "/db/v1/connections/{connection_id}/chatgpt/models" \
    -H "Authorization: Bearer YOUR_API_KEY"

Responses#

{}

disconnectChatGPT#

POST/connections/{connection_id}/chatgpt/disconnect

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer YOUR_API_KEY

Parameters#

NameTypeLocationRequiredDescription
connection_idstringpathYes

Code Examples#

curl -X POST "/db/v1/connections/{connection_id}/chatgpt/disconnect" \
    -H "Authorization: Bearer YOUR_API_KEY"

Responses#

{
  "revocation_confirmed": true
}