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://3ngram-server-production.up.railway.app/api/v1/export \
--header 'X-API-Key: <api-key>'{
"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,
"facts": 4503599627370495,
"llmUsage": 4503599627370495,
"memories": 4503599627370495,
"memoryEvents": 4503599627370495,
"proposals": 4503599627370495,
"scopes": 4503599627370495,
"subscriptions": 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",
"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": "<string>",
"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>"
}
],
"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"
}
],
"scopes": [
{
"aliases": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"subscriptions": [
{
"createdAt": "2023-11-07T05:31:56Z",
"graceEndsAt": "2023-11-07T05:31:56Z",
"grandfathered": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"stripeCustomerId": "<string>",
"stripeSubscriptionId": "<string>",
"tier": "<string>",
"trialEndsAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"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
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
Dashboard search continuation with identity-only hits
Previous
Currently-valid facts, with optional bi-temporal time travel (mirrors the MCP get_facts tool)
Next
⌘I
Download the caller's complete data archive (GDPR Art. 20 portability)
curl --request GET \
--url https://3ngram-server-production.up.railway.app/api/v1/export \
--header 'X-API-Key: <api-key>'{
"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,
"facts": 4503599627370495,
"llmUsage": 4503599627370495,
"memories": 4503599627370495,
"memoryEvents": 4503599627370495,
"proposals": 4503599627370495,
"scopes": 4503599627370495,
"subscriptions": 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",
"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": "<string>",
"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>"
}
],
"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"
}
],
"scopes": [
{
"aliases": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"subscriptions": [
{
"createdAt": "2023-11-07T05:31:56Z",
"graceEndsAt": "2023-11-07T05:31:56Z",
"grandfathered": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"stripeCustomerId": "<string>",
"stripeSubscriptionId": "<string>",
"tier": "<string>",
"trialEndsAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"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"
}
]
}