API Reference
Download the caller's complete data archive (GDPR Art. 20 portability)
GET
/
api
/
v1
/
export
Download the caller's complete data archive (GDPR Art. 20 portability)
curl --request GET \
--url https://api.3ngram.ai/api/v1/export \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.3ngram.ai/api/v1/export"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.3ngram.ai/api/v1/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://api.3ngram.ai/api/v1/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.3ngram.ai/api/v1/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.3ngram.ai/api/v1/export")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.3ngram.ai/api/v1/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account": {
"createdAt": "2023-11-07T05:31:56Z",
"email": "jsmith@example.com",
"emailVerifiedAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z"
},
"commitments": [
{
"createdAt": "2023-11-07T05:31:56Z",
"dueAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"nextSurfacingAt": "2023-11-07T05:31:56Z",
"owner": "<string>",
"recurrence": "<unknown>",
"resolvedAt": "2023-11-07T05:31:56Z",
"status": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"counts": {
"commitments": 4503599627370495,
"edges": 4503599627370495,
"factProposals": 4503599627370495,
"facts": 4503599627370495,
"llmUsage": 4503599627370495,
"memories": 4503599627370495,
"memoryEvents": 4503599627370495,
"proposals": 4503599627370495,
"scopes": 4503599627370495,
"userBudgets": 4503599627370495
},
"edges": [
{
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"edgeType": "<string>",
"fromId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"exportedAt": "2023-11-07T05:31:56Z",
"factProposals": [
{
"confidence": 123,
"createdAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryType": "<string>",
"predicate": "<string>",
"rationale": "<string>",
"status": "<string>",
"subject": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z",
"value": "<string>"
}
],
"facts": [
{
"confidence": 123,
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"predicate": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"subject": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z",
"value": "<string>"
}
],
"format": "3ngram.account-export.v1",
"llmUsage": [
{
"costUsd": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inputTokens": 4503599627370495,
"model": "<string>",
"operation": "<string>",
"outputTokens": 4503599627370495
}
],
"memories": [
{
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryType": "<string>",
"project": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"scope": "<string>",
"status": "<string>",
"tags": [
"<string>"
],
"topic": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
}
],
"memoryEvents": [
{
"actorKind": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"eventKind": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": "<unknown>"
}
],
"profile": {
"aiTools": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"referralSource": "<string>",
"role": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"useCase": "<string>"
},
"proposals": [
{
"createdAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z",
"edgeType": "<string>",
"fromId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryType": "<string>",
"rationale": "<string>",
"similarity": 123,
"status": "<string>",
"toId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"retrievalPolicy": {
"defaultScope": "<string>",
"mode": "off",
"updatedAt": "2023-11-07T05:31:56Z"
},
"scopes": [
{
"aliases": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"userBudgets": [
{
"capUsdOverride": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"periodEnd": "2023-11-07T05:31:56Z",
"periodStart": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}Authorizations
apiKeysessionBearer
Response
200 - application/json
Success
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Show child attributes
Show child attributes
Show child attributes
Show child attributes
Allowed value:
"3ngram.account-export.v1"Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Download the caller's complete data archive (GDPR Art. 20 portability)
curl --request GET \
--url https://api.3ngram.ai/api/v1/export \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.3ngram.ai/api/v1/export"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.3ngram.ai/api/v1/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://api.3ngram.ai/api/v1/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.3ngram.ai/api/v1/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.3ngram.ai/api/v1/export")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.3ngram.ai/api/v1/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account": {
"createdAt": "2023-11-07T05:31:56Z",
"email": "jsmith@example.com",
"emailVerifiedAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z"
},
"commitments": [
{
"createdAt": "2023-11-07T05:31:56Z",
"dueAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"nextSurfacingAt": "2023-11-07T05:31:56Z",
"owner": "<string>",
"recurrence": "<unknown>",
"resolvedAt": "2023-11-07T05:31:56Z",
"status": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"counts": {
"commitments": 4503599627370495,
"edges": 4503599627370495,
"factProposals": 4503599627370495,
"facts": 4503599627370495,
"llmUsage": 4503599627370495,
"memories": 4503599627370495,
"memoryEvents": 4503599627370495,
"proposals": 4503599627370495,
"scopes": 4503599627370495,
"userBudgets": 4503599627370495
},
"edges": [
{
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"edgeType": "<string>",
"fromId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"exportedAt": "2023-11-07T05:31:56Z",
"factProposals": [
{
"confidence": 123,
"createdAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryType": "<string>",
"predicate": "<string>",
"rationale": "<string>",
"status": "<string>",
"subject": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z",
"value": "<string>"
}
],
"facts": [
{
"confidence": 123,
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"predicate": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"subject": "<string>",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z",
"value": "<string>"
}
],
"format": "3ngram.account-export.v1",
"llmUsage": [
{
"costUsd": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inputTokens": 4503599627370495,
"model": "<string>",
"operation": "<string>",
"outputTokens": 4503599627370495
}
],
"memories": [
{
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryType": "<string>",
"project": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"scope": "<string>",
"status": "<string>",
"tags": [
"<string>"
],
"topic": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
}
],
"memoryEvents": [
{
"actorKind": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"eventKind": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payload": "<unknown>"
}
],
"profile": {
"aiTools": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"referralSource": "<string>",
"role": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"useCase": "<string>"
},
"proposals": [
{
"createdAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z",
"edgeType": "<string>",
"fromId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memoryType": "<string>",
"rationale": "<string>",
"similarity": 123,
"status": "<string>",
"toId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"retrievalPolicy": {
"defaultScope": "<string>",
"mode": "off",
"updatedAt": "2023-11-07T05:31:56Z"
},
"scopes": [
{
"aliases": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"userBudgets": [
{
"capUsdOverride": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"periodEnd": "2023-11-07T05:31:56Z",
"periodStart": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}