Ingest a ChatGPT export
curl --request POST \
--url https://connect.tryverso.ai/api/ingest-export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"appId": "app_yourapp",
"connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversations": [
{}
]
}
'import requests
url = "https://connect.tryverso.ai/api/ingest-export"
payload = {
"appId": "app_yourapp",
"connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversations": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
appId: 'app_yourapp',
connectionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
conversations: [{}]
})
};
fetch('https://connect.tryverso.ai/api/ingest-export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://connect.tryverso.ai/api/ingest-export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'appId' => 'app_yourapp',
'connectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'conversations' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://connect.tryverso.ai/api/ingest-export"
payload := strings.NewReader("{\n \"appId\": \"app_yourapp\",\n \"connectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"conversations\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://connect.tryverso.ai/api/ingest-export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"appId\": \"app_yourapp\",\n \"connectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"conversations\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://connect.tryverso.ai/api/ingest-export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"appId\": \"app_yourapp\",\n \"connectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"conversations\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"inserted": 123,
"updated": 123,
"unchanged": 123,
"dropped": 123,
"droppedIds": [
"<string>"
],
"total": 123
}{
"error": "Connection not found"
}{
"error": "Connection not found"
}{
"error": "Connection not found"
}{
"error": "Connection not found"
}{
"error": "Connection not found"
}Endpoints
Ingest a ChatGPT export
Imports conversations from a ChatGPT data export (the objects found in
conversations.json) into an existing connection, without a browser
session. Conversations are normalized like live-synced ones, then
upserted: new ones are inserted, existing ones are updated only when the
export carries a newer update_time, the rest are left unchanged.
Fires data.imported when at least one conversation was inserted or
updated. Not rate limited.
POST
/
api
/
ingest-export
Ingest a ChatGPT export
curl --request POST \
--url https://connect.tryverso.ai/api/ingest-export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"appId": "app_yourapp",
"connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversations": [
{}
]
}
'import requests
url = "https://connect.tryverso.ai/api/ingest-export"
payload = {
"appId": "app_yourapp",
"connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversations": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
appId: 'app_yourapp',
connectionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
conversations: [{}]
})
};
fetch('https://connect.tryverso.ai/api/ingest-export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://connect.tryverso.ai/api/ingest-export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'appId' => 'app_yourapp',
'connectionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'conversations' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://connect.tryverso.ai/api/ingest-export"
payload := strings.NewReader("{\n \"appId\": \"app_yourapp\",\n \"connectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"conversations\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://connect.tryverso.ai/api/ingest-export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"appId\": \"app_yourapp\",\n \"connectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"conversations\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://connect.tryverso.ai/api/ingest-export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"appId\": \"app_yourapp\",\n \"connectionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"conversations\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"inserted": 123,
"updated": 123,
"unchanged": 123,
"dropped": 123,
"droppedIds": [
"<string>"
],
"total": 123
}{
"error": "Connection not found"
}{
"error": "Connection not found"
}{
"error": "Connection not found"
}{
"error": "Connection not found"
}{
"error": "Connection not found"
}Authorizations
Your API key (vsk_…), issued at onboarding. Keep it server-side.
Body
application/json
Response
Import finished.
Conversations the database refused even after cleaning (normally 0). They are not imported.
The provider ids of the dropped conversations.
Conversations in the request.