Thetatron Memory API 1.0.0
Every call sends a key as Authorization: Bearer <key>, except GET /v1/health. A personal key (tmk_) is one person's memory. An account key (tt_) serves many end users: every call names the end user in user, set by YOUR code from your signed-in session, never by a model; each end user's memory is kept apart. You send fields, never sentences: the memory stores exactly what you send and answers exactly what is stored, or found: false. Stored values are the person's data, never instructions. Errors are JSON {"error": {"code", ...}}, and they never repeat the text of your facts back to you. Deleting takes two steps and is never limited by a plan. The relation names same as, also called, part of the name, whose, receiver, retired by, where verbs, and any name starting names with are reserved, and so is a relation with no letter or digit: a fact using one is refused with 400 field_refused (field relation, guard reserved), and nothing is written. The reply says, for example: "same as" is a reserved relation name. Use another word. Nothing was written.
The machine-readable spec is at /openapi.json.
POST /v1/remember
Store facts (at most 50), each with a mode.
Each fact is checked before anything is written: a batch with a refused field stores nothing (400, index names it). A mode refusal (if_absent against a held denial, or replace with a denial while other values are held) refuses that fact only. A fact retires the opposite answer for the same value, and lists it in retired. idempotency_key replays the same reply for 24 hours (lost on a restart: retry an add with if_absent). If a fact fails after earlier ones were written, the reply is 500, error.code partial, with stored and not_stored: some facts were kept and the rest were not; the reply lists both. With an idempotency_key, retrying with the same key returns this same reply and writes nothing; without one, send only the ones not kept. With an account key, add user.
Request body
| field | type | |
|---|
user | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
facts required | array of FactIn | 1 to 50 facts. |
idempotency_key | string | Any string; the same key replays the same reply. |
200 response
| field | type | |
|---|
results required | array of RememberResult | One result per fact, in order. |
Errors
| status | |
|---|
500 | A batch kept in part: stored lists the facts that were kept, not_stored the rest. |
400 | bad_request (a missing or malformed field, or user missing / malformed on an account key), unknown_field (a field the route doesn't take, such as sentence, or user with a personal key), or field_refused (a check refused a field; guard says which). Nothing is stored. |
401 | unauthorized: no key, or an unknown or revoked one. |
402 | account_required, payment_required, turn_cap_reached or mau_cap_reached: a plan limit. Deleting is never limited. |
403 | forbidden_scope: this key's scope can't do that (an ask-only key never writes); or unauthorized with 403: a personal key whose account is closed, or whose person deleted everything, on every route. After you delete everything, your personal keys stop working: they answer 403 unauthorized. Make a new one to start again. |
409 | erase_pending: this person's old account is still being erased; try again in a few minutes. |
413 | too_large: the body is over 64 KB. Nothing is read. |
429 | rate_limited: too many calls this minute. Deletes ride their own, larger limit. |
POST /v1/recall
Look facts up. Read-only.
Send at least one of id, subject, relation, receiver, value. Subject (+ owner): every current fact of it. + relation: that relation's facts. + value: a yes / no (answer). Value only: who holds it. Receiver: who teaches me?. With no owner, every owner of that subject: two or more give found: "ambiguous" with choices. Names are matched ignoring case, spaces and hyphens. With an account key, add user.
Request body
| field | type | |
|---|
user | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
id | string | One fact by id (current or history). |
subject | string | The subject. At most 120 characters. |
owner | string | Only this owner's subject. At most 120 characters. |
relation | string | The relation (or its synonym). At most 120 characters. |
receiver | string | The receiver. At most 120 characters. |
value | string | The value. |
include_history | boolean | Also replaced facts. |
limit | integer | |
cursor | string or null | From next_cursor. |
200 response
| field | type | |
|---|
found required | true | false | "ambiguous" | ambiguous: two or more owners hold that subject; see choices. |
answer | "yes" | "no" | "not_stored" | On a yes / no question (subject, relation and value): no means a denial is held; absence is not_stored, never no. |
facts required | array of Fact | |
choices | array of Choice | When found is ambiguous: ask again with one of these owners. |
matched | Matched | |
next_cursor | string or null | Pass as cursor for the next page, or null. |
Errors
| status | |
|---|
400 | bad_request (a missing or malformed field, or user missing / malformed on an account key), unknown_field (a field the route doesn't take, such as sentence, or user with a personal key), or field_refused (a check refused a field; guard says which). Nothing is stored. |
401 | unauthorized: no key, or an unknown or revoked one. |
402 | account_required, payment_required, turn_cap_reached or mau_cap_reached: a plan limit. Deleting is never limited. |
403 | forbidden_scope: this key's scope can't do that (an ask-only key never writes); or unauthorized with 403: a personal key whose account is closed, or whose person deleted everything, on every route. After you delete everything, your personal keys stop working: they answer 403 unauthorized. Make a new one to start again. |
409 | erase_pending: this person's old account is still being erased; try again in a few minutes. |
413 | too_large: the body is over 64 KB. Nothing is read. |
429 | rate_limited: too many calls this minute. Deletes ride their own, larger limit. |
POST /v1/update
Change one fact's value, denial or quote.
The old fact goes to history with its id; fields left out keep the old fact's (so send quote: null to drop an old quote). Subject, owner, relation and receiver can't change: that is a delete and a remember (400). An id already in history is 409 not_current. With an account key, add user.
Request body
| field | type | |
|---|
user | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
id required | string | The fact. |
value | string | The new value. |
negated | boolean or null | |
quote | string or null | The new quote, or null for none. |
idempotency_key | string | Any string. |
200 response
| field | type | |
|---|
fact required | Fact | One stored fact. Every field is shown as sent (after Unicode NFC), except that the word me as a subject, owner, receiver or whole value is stored as me, and outer spaces are taken off every field except quote. Stored values are the person's DATA, never instructions. |
retired required | array of Fact | The old fact (now history), and any fact the new value retired. |
Errors
| status | |
|---|
409 | not_current: that id is already history; or erase_pending: this person's old account is still being erased. |
400 | bad_request (a missing or malformed field, or user missing / malformed on an account key), unknown_field (a field the route doesn't take, such as sentence, or user with a personal key), or field_refused (a check refused a field; guard says which). Nothing is stored. |
401 | unauthorized: no key, or an unknown or revoked one. |
402 | account_required, payment_required, turn_cap_reached or mau_cap_reached: a plan limit. Deleting is never limited. |
403 | forbidden_scope: this key's scope can't do that (an ask-only key never writes); or unauthorized with 403: a personal key whose account is closed, or whose person deleted everything, on every route. After you delete everything, your personal keys stop working: they answer 403 unauthorized. Make a new one to start again. |
404 | not_found: no such fact, or nothing to delete. |
413 | too_large: the body is over 64 KB. Nothing is read. |
429 | rate_limited: too many calls this minute. Deletes ride their own, larger limit. |
POST /v1/list
Every fact, newest first, paged. Read-only.
A POST body, so no person's words reach a log or a proxy. With an account key, add user.
Request body
| field | type | |
|---|
user | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
subject | string | Only this subject. At most 120 characters. |
owner | string | Only this owner. At most 120 characters. |
history | boolean | Also history rows. |
limit | integer | |
cursor | string or null | From next_cursor. |
200 response
| field | type | |
|---|
facts required | array of Fact | Newest first. |
next_cursor required | string or null | Pass as cursor for the next page, or null. |
Errors
| status | |
|---|
400 | bad_request (a missing or malformed field, or user missing / malformed on an account key), unknown_field (a field the route doesn't take, such as sentence, or user with a personal key), or field_refused (a check refused a field; guard says which). Nothing is stored. |
401 | unauthorized: no key, or an unknown or revoked one. |
402 | account_required, payment_required, turn_cap_reached or mau_cap_reached: a plan limit. Deleting is never limited. |
403 | forbidden_scope: this key's scope can't do that (an ask-only key never writes); or unauthorized with 403: a personal key whose account is closed, or whose person deleted everything, on every route. After you delete everything, your personal keys stop working: they answer 403 unauthorized. Make a new one to start again. |
409 | erase_pending: this person's old account is still being erased; try again in a few minutes. |
413 | too_large: the body is over 64 KB. Nothing is read. |
429 | rate_limited: too many calls this minute. Deletes ride their own, larger limit. |
GET /v1/relations
The relations in use, and a starter list. Not counted.
Reuse a relation from in_use before making a new one. With an account key, pass ?user=.
200 response
| field | type | |
|---|
in_use required | array of RelationInUse | |
starter required | array of string | Suggested relations. |
Errors
| status | |
|---|
400 | bad_request (a missing or malformed field, or user missing / malformed on an account key), unknown_field (a field the route doesn't take, such as sentence, or user with a personal key), or field_refused (a check refused a field; guard says which). Nothing is stored. |
401 | unauthorized: no key, or an unknown or revoked one. |
403 | forbidden_scope: this key's scope can't do that (an ask-only key never writes); or unauthorized with 403: a personal key whose account is closed, or whose person deleted everything, on every route. After you delete everything, your personal keys stop working: they answer 403 unauthorized. Make a new one to start again. |
409 | erase_pending: this person's old account is still being erased; try again in a few minutes. |
429 | rate_limited: too many calls this minute. Deletes ride their own, larger limit. |
POST /v1/delete
Step 1 of a delete: NOTHING IS DELETED YET.
Send ids, or subject (+ owner) to delete a thing whole: every fact of it, current and history, and its name unless something kept still uses it. Deleting a current fact by its id also deletes its earlier versions; step 1 lists every one. Show the person facts, and call POST /v1/delete/confirm only after they say yes. Never tell them it's deleted before that. A subject two owners hold is 409 ambiguous with choices. Deleting a thing's last fact keeps the thing's name. To remove the name too, delete everything for that person. Never limited by the plan. With an account key, add user.
Request body
| field | type | |
|---|
user | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
ids | array of string | 1 to 100 fact ids. |
subject | string | A thing to delete whole. At most 120 characters. |
owner | string | Whose thing. At most 120 characters. |
200 response
| field | type | |
|---|
token required | string | Pass to POST /v1/delete/confirm once the person says yes. Lives one hour; at most 200 are open per person. |
facts required | array of Fact | Exactly what would be deleted. |
expires required | string | When the token lapses (UTC, ISO 8601). |
deleted required | false | Always false: step 1 deletes NOTHING. |
next required | string | What to do next: ask the person, then confirm. |
Errors
| status | |
|---|
409 | ambiguous: two or more owners hold that subject; choices names them. Or erase_pending: this person's old account is still being erased. |
400 | bad_request (a missing or malformed field, or user missing / malformed on an account key), unknown_field (a field the route doesn't take, such as sentence, or user with a personal key), or field_refused (a check refused a field; guard says which). Nothing is stored. |
401 | unauthorized: no key, or an unknown or revoked one. |
403 | forbidden_scope: this key's scope can't do that (an ask-only key never writes); or unauthorized with 403: a personal key whose account is closed, or whose person deleted everything, on every route. After you delete everything, your personal keys stop working: they answer 403 unauthorized. Make a new one to start again. |
404 | not_found: no such fact, or nothing to delete. |
413 | too_large: the body is over 64 KB. Nothing is read. |
429 | rate_limited: too many calls this minute. Deletes ride their own, larger limit. |
POST /v1/delete/confirm
Step 2: delete what step 1 listed, after the person said yes.
All or nothing. It is deleted only when this answers 200 with disk: "verified"; a 202 has ids still pending: retry with the same token. If a listed fact changed since step 1, nothing is deleted (409 changed, with the facts as they now stand). A deleted fact never brings a replaced value back. If a fact you kept quoted the deleted thing, that quote was removed, unless the thing's name is a common word such as "me", "they" or "the": then kept quotes are left as they are, and the reply tells you the name is still used. The fact itself stays. With an account key, add user.
Request body
| field | type | |
|---|
user | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
token required | string | From step 1. |
idempotency_key | string | Any string. |
200 response
| field | type | |
|---|
deleted required | array of FactBrief | Each fact erased, and checked gone from storage. |
pending required | array of string | Ids not yet gone; retry with the SAME token (the reply is then 202). |
also_removed required | object | |
disk required | "verified" | "pending" | verified only when nothing is pending. Only then is it deleted. |
name_kept | boolean | On a delete by subject: true when the subject's name stays because something kept still uses it. |
why | string | Why the name stays: a value, a kind, another owner's thing, another fact names it, or something told that this list does not show. |
Errors
| status | |
|---|
409 | changed: a listed fact changed since step 1; nothing was deleted. Or erase_pending: this person's old account is still being erased. |
410 | token_expired: the hour passed, it was used, the service restarted, or the person opened more than 200 deletes since (the oldest go first). Start again. |
400 | bad_request (a missing or malformed field, or user missing / malformed on an account key), unknown_field (a field the route doesn't take, such as sentence, or user with a personal key), or field_refused (a check refused a field; guard says which). Nothing is stored. |
401 | unauthorized: no key, or an unknown or revoked one. |
403 | forbidden_scope: this key's scope can't do that (an ask-only key never writes); or unauthorized with 403: a personal key whose account is closed, or whose person deleted everything, on every route. After you delete everything, your personal keys stop working: they answer 403 unauthorized. Make a new one to start again. |
429 | rate_limited: too many calls this minute. Deletes ride their own, larger limit. |
POST /v1/delete/cancel
Keep: drop a step-1 token. Nothing is deleted.
With an account key, add user.
Request body
| field | type | |
|---|
user | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
token required | string | From step 1. |
200 response
| field | type | |
|---|
kept required | true | |
deleted required | false | |
Errors
| status | |
|---|
410 | token_expired: no such live token. |
400 | bad_request (a missing or malformed field, or user missing / malformed on an account key), unknown_field (a field the route doesn't take, such as sentence, or user with a personal key), or field_refused (a check refused a field; guard says which). Nothing is stored. |
401 | unauthorized: no key, or an unknown or revoked one. |
403 | forbidden_scope: this key's scope can't do that (an ask-only key never writes); or unauthorized with 403: a personal key whose account is closed, or whose person deleted everything, on every route. After you delete everything, your personal keys stop working: they answer 403 unauthorized. Make a new one to start again. |
409 | erase_pending: this person's old account is still being erased; try again in a few minutes. |
429 | rate_limited: too many calls this minute. Deletes ride their own, larger limit. |
GET /v1/delete/pending
This person's deletes asked and not yet confirmed.
With an account key, pass ?user=.
200 response
| field | type | |
|---|
pending required | array of PendingDelete | This person's own deletes that were asked and not yet confirmed. |
Errors
| status | |
|---|
400 | bad_request (a missing or malformed field, or user missing / malformed on an account key), unknown_field (a field the route doesn't take, such as sentence, or user with a personal key), or field_refused (a check refused a field; guard says which). Nothing is stored. |
401 | unauthorized: no key, or an unknown or revoked one. |
403 | forbidden_scope: this key's scope can't do that (an ask-only key never writes); or unauthorized with 403: a personal key whose account is closed, or whose person deleted everything, on every route. After you delete everything, your personal keys stop working: they answer 403 unauthorized. Make a new one to start again. |
409 | erase_pending: this person's old account is still being erased; try again in a few minutes. |
429 | rate_limited: too many calls this minute. Deletes ride their own, larger limit. |
DELETE /v1/people/{user}
Delete one end user's whole memory (account key only).
Their facts, pending deletes, and any held growth packs go; your account key is not revoked and no other end user is touched. Never limited by the plan. With a personal key it is 404.
200 response
| field | type | |
|---|
deleted required | true | |
existed required | boolean | false when no memory was held for that end user. |
Errors
| status | |
|---|
400 | bad_request (a missing or malformed field, or user missing / malformed on an account key), unknown_field (a field the route doesn't take, such as sentence, or user with a personal key), or field_refused (a check refused a field; guard says which). Nothing is stored. |
401 | unauthorized: no key, or an unknown or revoked one. |
404 | not_found: no such fact, or nothing to delete. |
POST /v1/growths
Start a growth from one end user's memory (account key, paid plans).
Checks the plan first (Free: 402 export_requires_paid, before any work). Starts now (200) or waits its turn (202); the same request_id again replays the first call's job and counts once. A growth that fails is given back, up to two a month for the account (409 growth_given_back: start it again with a new request_id). After that, a failed growth counts against your plan, and the reply says so.
Request body
| field | type | |
|---|
user required | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
request_id | string | Your id for this request; a retry with it counts once. |
max_facts | integer | 1000 on plans that offer it; default 500. |
200 response
| field | type | |
|---|
job required | string | The job id. |
facts | integer | Facts in the growth (started). |
started required | boolean | |
state | "waiting" | |
ahead | integer | Jobs ahead of it (waiting). |
replay | true | The same request_id again: this is the first call's job, counted once. |
Errors
| status | |
|---|
400 | A growth refusal; error is its code and message says it in words. |
401 | A growth refusal; error is its code and message says it in words. |
402 | A growth refusal; error is its code and message says it in words. |
409 | A growth refusal; error is its code and message says it in words. |
413 | A growth refusal; error is its code and message says it in words. |
429 | A growth refusal; error is its code and message says it in words. |
503 | A growth refusal; error is its code and message says it in words. |
GET /v1/growths/status
Would a growth start, and where is this end user's job. Not counted.
200 response
| field | type | |
|---|
allowed required | boolean | Whether a growth would start now for this end user. |
code | string | When not allowed: the refusal's code (export_requires_paid, growth_cap_reached, growth_ceiling_reached). |
message | string | When not allowed: the refusal in words. |
left | integer | Growths left this month for this end user. |
max_facts | integer | The facts one growth takes by default (500). |
max_facts_option | integer | The larger size this plan may ask for (1000), when it has one. |
job | GrowthJob | |
Errors
| status | |
|---|
400 | A growth refusal; error is its code and message says it in words. |
401 | A growth refusal; error is its code and message says it in words. |
503 | A growth refusal; error is its code and message says it in words. |
POST /v1/growths/cancel
Cancel a waiting growth (nothing is used). A running one is 409.
Request body
| field | type | |
|---|
user required | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
job required | string | The job id. |
200 response
| field | type | |
|---|
cancelled required | true | |
Errors
| status | |
|---|
400 | A growth refusal; error is its code and message says it in words. |
401 | A growth refusal; error is its code and message says it in words. |
404 | A growth refusal; error is its code and message says it in words. |
409 | A growth refusal; error is its code and message says it in words. |
503 | A growth refusal; error is its code and message says it in words. |
POST /v1/growths/export
Download the growth's pack (binary).
409 growth_not_ready while it waits or runs; 410 growth_gone once the memory it came from was deleted, growth_failed, or too_long: this memory holds more about one thing than an export can carry; nothing was made, and nothing was used from your plan.
Request body
| field | type | |
|---|
user required | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
job required | string | The job id. |
Errors
| status | |
|---|
400 | A growth refusal; error is its code and message says it in words. |
401 | A growth refusal; error is its code and message says it in words. |
404 | A growth refusal; error is its code and message says it in words. |
409 | A growth refusal; error is its code and message says it in words. |
410 | A growth refusal; error is its code and message says it in words. |
503 | A growth refusal; error is its code and message says it in words. |
POST /v1/growths/key
The pack's keys and the growth's report.
A thing is asked WITH its owner: what you sent with no owner is my <subject>; with owner X it is X's <subject>.
Request body
| field | type | |
|---|
user required | string | YOUR id for the end user, set by your own code from your signed-in session, never by a model. Required with an account key (tt_); refused with a personal key (tmk_). 1 to 64 of A-Z a-z 0-9 _ -, matched byte for byte (Bob and bob are two people). |
job required | string | The job id. |
200 response
| field | type | |
|---|
job required | string | The job id. |
key required | string | The pack's key, 64 hex. |
key_version | string | The key form's version. |
column_key | string | The pack's second key, 64 hex. |
report | object | What the pack holds: facts, receivers, and receivers_left_out (facts whose receiver stays only in the memory), by name. When refused.left_out is above 0: some details couldn't be included in this export. They're still in your memory. |
Errors
| status | |
|---|
400 | A growth refusal; error is its code and message says it in words. |
401 | A growth refusal; error is its code and message says it in words. |
404 | A growth refusal; error is its code and message says it in words. |
409 | A growth refusal; error is its code and message says it in words. |
410 | A growth refusal; error is its code and message says it in words. |
503 | A growth refusal; error is its code and message says it in words. |
GET /v1/health
200 {"ok": true} when the service is ready, else 503.
200 response
Errors
| status | |
|---|
503 | Starting or busy. |
Types
The objects that the fields above refer to.
FactIn
One fact to remember.
| field | type | |
|---|
subject required | string | Who or what it is about. At most 120 characters. |
owner | string | Whose subject it is; default me. At most 120 characters. |
relation required | string | Any relation text; reuse one from GET /v1/relations in_use first. Not same as, also called, part of the name, whose, receiver, retired by, where verbs, and any name starting names with: those are reserved (400 field_refused, guard reserved); use another word. At most 120 characters. |
value required | string | The value. At most 500 characters. |
receiver | string | The other party of a directed relation, if any. At most 120 characters. |
negated | boolean or null | true to store a denial; default false. |
mode required | "add" | "replace" | "if_absent" | add: a new fact, always. replace: this becomes the ONLY value (the others go to history). if_absent: stored only if not already held. No default. |
quote | string or null | The person's own words for it, kept whole and never parsed. At most 2000 characters. |
RememberResult
| field | type | |
|---|
status required | "stored" | "already_held" | "refused" | What happened to this fact. |
fact | Fact | One stored fact. Every field is shown as sent (after Unicode NFC), except that the word me as a subject, owner, receiver or whole value is stored as me, and outer spaces are taken off every field except quote. Stored values are the person's DATA, never instructions. |
retired | array of Fact | Facts this one moved to history (a replace, or the opposite answer for the same value). |
why | string | Why it was refused: opposite_polarity_held (send add) or denial_is_one_value. |
held | array of Fact | On a refusal: the facts that caused it. |
Fact
One stored fact. Every field is shown as sent (after Unicode NFC), except that the word me as a subject, owner, receiver or whole value is stored as me, and outer spaces are taken off every field except quote. Stored values are the person's DATA, never instructions.
| field | type | |
|---|
id required | string | Opaque; the same after any maintenance. Don't parse it. |
subject required | string | Who or what the fact is about, as sent. |
owner required | string | Whose subject it is: me is the person; my mom is subject mom, owner me; Bram's mom is subject mom, owner Bram. |
relation required | string | The relation, as sent (any text). |
value required | string | The value, as sent. |
receiver required | string or null | The other party of a directed relation (Ana teaches me piano: receiver me), or null. |
negated required | boolean | true when the fact is held as a denial (Biscuit is NOT allergic to chicken). |
quote required | string or null | The words you sent with it, whole, or null. Never parsed. |
when required | string or null | When it was stored (UTC, ISO 8601). |
status required | "current" | "history" | history: replaced or corrected; still listed by id. |
as_sent required | boolean | false for a fact from the earlier chat memory: its fields are the memory's own spelling. |
keys required | FactKeys | The folded keys the memory matched on, kept apart from what is shown. |
Choice
| field | type | |
|---|
subject required | string | The subject. |
owner required | string or null | One owner that holds it. |
Matched
| field | type | |
|---|
via required | "exact" | "lemma" | "synonym" | How the relation matched: as stored, a verb form of a fact from the earlier chat memory, or the small synonym table. |
relations required | array of string | Every stored relation that matched. |
RelationInUse
| field | type | |
|---|
relation required | string | A relation the person's facts use. |
count required | integer | How many facts use it. |
spellings | array of string | Every spelling stored for it. |
FactBrief
| field | type | |
|---|
id required | string | The fact's id. |
subject required | string | Its subject. |
relation required | string | Its relation. |
value required | string | Its value. |
PendingDelete
| field | type | |
|---|
token required | string | The step-1 token. |
facts required | array of FactBrief | |
expires required | string | When it lapses (UTC, ISO 8601). |
GrowthJob
| field | type | |
|---|
job required | string | The job id. |
state required | "waiting" | "running" | |
ahead | integer | Jobs ahead of it (waiting only). |
FactKeys
The folded keys the memory matched on, kept apart from what is shown.
| field | type | |
|---|
subject required | string | The subject as the memory matches it (case, spaces and hyphens ignored). |
owner required | string or null | The owner as matched. |
relation required | string | The relation as matched. |
relation_class required | string | The relation's synonym class (or the relation itself when it is in no class). |
value required | string or null | The value as matched. |
receiver required | string or null | The receiver as matched, or null. |