Skip to main content
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

X-API-Key
string
header
required

Response

200 - application/json

Success

account
object
required
commitments
object[]
required
counts
object
required
edges
object[]
required
exportedAt
string<date-time>
required
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))$
facts
object[]
required
format
string
required
Allowed value: "3ngram.account-export.v1"
llmUsage
object[]
required
memories
object[]
required
memoryEvents
object[]
required
proposals
object[]
required
scopes
object[]
required
subscriptions
object[]
required
userBudgets
object[]
required