Objects
AnswerResponse
Section titled “AnswerResponse”| Field | Type | Required | Notes |
|---|---|---|---|
answer |
string | yes | |
citations |
array of Citation | yes | |
answered |
boolean | yes | False when no source supports the answer |
source |
"generated" | "pinned" | "escalation" | "no_sources" |
yes | |
chunks |
array of RetrievedChunk | yes | |
used_memories |
array of UsedMemory | yes | |
query_log_id |
string (uuid) | yes | |
latency_ms |
integer | yes | |
conversation_id |
string (uuid) | null | yes | Send it with the next question to ask a follow-up. Null without end_user_id |
standalone_query |
string | null | yes | The follow-up rewritten as a question that stands on its own; null for a conversation’s first question |
Citation
Section titled “Citation”| Field | Type | Required | Notes |
|---|---|---|---|
number |
integer | yes | |
chunk_id |
string (uuid) | yes | |
document_id |
string (uuid) | yes | |
document_title |
string | yes | |
page_from |
integer | null | yes | |
page_to |
integer | null | yes |
ConversationMessage
Section titled “ConversationMessage”| Field | Type | Required | Notes |
|---|---|---|---|
role |
"user" | "assistant" |
yes | |
text |
string | yes | min length 1; max length 4000 |
Document
Section titled “Document”| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
title |
string | yes | |
status |
"queued" | "processing" | "ready" | "failed" |
yes | |
source_type |
"file" | "url" |
yes | |
source_uri |
string | yes | |
content_type |
string | null | yes | |
bytes |
integer | null | yes | |
pages |
integer | null | yes | |
error |
string | null | yes | |
warnings |
array of string | yes | |
metadata |
object | yes | |
end_user_id |
string | null | yes | |
created_at |
string (date-time) | yes | |
updated_at |
string (date-time) | yes |
DocumentList
Section titled “DocumentList”| Field | Type | Required | Notes |
|---|---|---|---|
data |
array of Document | yes | |
next_cursor |
string | null | yes |
ErasureCounts
Section titled “ErasureCounts”| Field | Type | Required | Notes |
|---|---|---|---|
documents |
integer | yes | |
chunks |
integer | yes | |
memories |
integer | yes | |
messages |
integer | yes | |
query_logs |
integer | yes |
ErasureResult
Section titled “ErasureResult”| Field | Type | Required | Notes |
|---|---|---|---|
erased |
boolean | yes | |
counts |
ErasureCounts | yes |
Memory
Section titled “Memory”| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
end_user_id |
string | yes | |
fact |
string | yes | |
category |
"goal" | "preference" | "condition" | "history" | "other" |
yes | |
superseded_by |
string (uuid) | null | yes | |
created_at |
string (date-time) | yes | |
updated_at |
string (date-time) | yes |
MemoryExtractionQueued
Section titled “MemoryExtractionQueued”| Field | Type | Required | Notes |
|---|---|---|---|
status |
"queued" |
yes | |
message_ids |
array of string (uuid) | yes |
MemoryList
Section titled “MemoryList”| Field | Type | Required | Notes |
|---|---|---|---|
data |
array of Memory | yes |
RecalledMemory
Section titled “RecalledMemory”| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
fact |
string | yes | |
category |
"goal" | "preference" | "condition" | "history" | "other" |
yes | |
created_at |
string (date-time) | yes | |
score |
number | yes |
RetrieveResponse
Section titled “RetrieveResponse”| Field | Type | Required | Notes |
|---|---|---|---|
chunks |
array of RetrievedChunk | yes | |
memories |
array of RecalledMemory | yes | The end user’s most relevant facts; empty without end_user_id |
standalone_query |
string | null | no | What was searched for when the query was a follow-up in a conversation |
RetrievedChunk
Section titled “RetrievedChunk”| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
document_id |
string (uuid) | yes | |
document_title |
string | yes | |
text |
string | yes | |
section_title |
string | null | yes | |
page_from |
integer | null | yes | |
page_to |
integer | null | yes | |
score |
number | yes | |
metadata |
object | yes |
UsageByProject
Section titled “UsageByProject”| Field | Type | Required | Notes |
|---|---|---|---|
project_id |
string (uuid) | null | yes | |
type |
string | yes | |
qty |
integer | yes |
UsageCounter
Section titled “UsageCounter”| Field | Type | Required | Notes |
|---|---|---|---|
used |
integer | yes | |
included |
integer | yes |
UsageResponse
Section titled “UsageResponse”| Field | Type | Required | Notes |
|---|---|---|---|
plan |
"try" | "build" | "scale" |
yes | |
period_start |
string (date-time) | yes | |
period_end |
string (date-time) | yes | |
overage_billing |
boolean | yes | |
pages |
UsageCounter | yes | |
queries |
UsageCounter | yes | |
overage_usd |
string | yes | |
spending_cap_usd |
string | yes | |
by_project |
array of UsageByProject | yes |
UsedMemory
Section titled “UsedMemory”| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
fact |
string | yes | |
category |
"goal" | "preference" | "condition" | "history" | "other" |
yes | |
created_at |
string (date-time) | yes | |
score |
number | yes | |
cited |
boolean | yes | Whether the answer cited this fact as [Mn] |