Skip to content

Objects

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
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
Field Type Required Notes
role "user" | "assistant" yes
text string yes min length 1; max length 4000
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
Field Type Required Notes
data array of Document yes
next_cursor string | null yes
Field Type Required Notes
documents integer yes
chunks integer yes
memories integer yes
messages integer yes
query_logs integer yes
Field Type Required Notes
erased boolean yes
counts ErasureCounts yes
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
Field Type Required Notes
status "queued" yes
message_ids array of string (uuid) yes
Field Type Required Notes
data array of Memory yes
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
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
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
Field Type Required Notes
project_id string (uuid) | null yes
type string yes
qty integer yes
Field Type Required Notes
used integer yes
included integer yes
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
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]