Get system configuration
Returns current system settings (model names, API base URLs, context windows, concurrency settings). No API keys or secrets are exposed.
Get system configuration › Responses
System configuration
openai_modelPrimary LLM model name
openai_api_basePrimary LLM API base URL
extraction_modelEntity extraction model name
extraction_api_baseExtraction model API base URL
extraction_max_contextMax context window tokens for entity extraction
relationship_modelRelationship extraction model name
relationship_api_baseRelationship model API base URL
relationship_max_contextMax context window tokens for relationship analysis
concurrent_relationsConcurrent per-chunk relationship extractions per document
parallel_relationship_batchesRelationship analysis batches processed in parallel
vision_model_availablevision_modelvision_api_basevision_max_concurrentembedding_modelembedding_dimensionembedding_api_baseembedding_send_dimensionsUpdate runtime settings
Update admin-editable runtime settings. Overrides are persisted (over the env defaults) and take effect immediately for new work without a restart. Only provided fields are changed. Returns the full, updated system configuration. Admin-only. The experimental ingestion_injection_scan field is rejected with 400 unless ENABLE_INGESTION_INJECTION_SCAN=true is set on the instance.
Update runtime settings › Request Body
ingestion_injection_scanEnable/disable the LLM prompt-injection scan on ingested documents (experimental — rejected with 400 unless the instance sets ENABLE_INGESTION_INJECTION_SCAN=true)
prompt_guardEnable/disable the query-time prompt-guard classifier gate (costs one extra query per guarded ask)
Update runtime settings › Responses
Updated system configuration
System reset
Selectively delete data from the system. This is a destructive operation that cannot be undone. When documents are deleted, associated data is also cleaned up: merge history (deduplication audit trail), system metadata (staleness timestamps), and all graph data (entities, relationships, communities).
System reset › Request Body
delete_documentsDelete all documents, chunks, entities, relationships, communities, merge history, and system metadata
delete_uploaded_filesDelete uploaded files from disk
delete_custom_inputsDelete custom input files from disk
delete_collectionsDelete all non-default collections
delete_api_keysDelete all API keys (dangerous — defaults to false)
System reset › Responses
System reset completed
messageSummary message of what was deleted
documents_deletedNumber of documents deleted
entities_removedNumber of entities removed
communities_removedNumber of communities removed
merge_history_deletedNumber of merge history records deleted
system_meta_deletedNumber of system metadata records deleted
collections_deletedNumber of collections deleted
api_keys_deletedNumber of API keys deleted
uploaded_files_deletedNumber of uploaded files deleted
custom_inputs_deletedNumber of custom input files deleted
processing_cancelledNumber of active processing tasks cancelled
Start library export
Start a background task that exports the entire library (documents, knowledge graph, embeddings, communities, collections, and all metadata) as a ZIP64 archive. Only one export or import can run at a time.
Start library export › Responses
Export task started
task_idTask ID for polling progress
statusmessageImport library from export archive
Upload a library export ZIP and start a background import task. Two modes are available:
- clean (default): Requires the target instance to be empty
- replace: Automatically wipes all existing data before importing
The import validates the archive structure, checks embedding model compatibility, and restores all nodes, relationships, and files.
query Parameters
modeImport mode
Import library from export archive › Responses
Import task started
task_idTask ID for polling progress
statusmessageStart a chunked import upload session
Open a chunked upload session for a library export ZIP. Use this
instead of the single-request /api/admin/import when uploading
through reverse proxies with body-read timeouts (e.g. Traefik v3
defaults to 60s): each chunk is a short independent request.
The web UI always uses this flow.
Start a chunked import upload session › Request Body
total_sizeTotal ZIP size in bytes
filenameStart a chunked import upload session › Responses
Upload session created
upload_idreceivedUpload one chunk of an import archive
Append raw bytes at the given offset. Offsets must be contiguous — on mismatch (e.g. a retried chunk that already landed) the response is 409 with the server's current byte count so the client can resync.
path Parameters
upload_idquery Parameters
offsetByte offset this chunk starts at
Upload one chunk of an import archive › Responses
Chunk appended
receivedTotal bytes received so far
Finish a chunked upload and start the import
Validates that all declared bytes arrived, then starts the same
background import task as /api/admin/import.
path Parameters
upload_idquery Parameters
modeFinish a chunked upload and start the import › Responses
Import task started
task_idstatusmessageInstance status (redeploy safety)
Single-call operational snapshot for deploy automation to decide whether this instance can be safely restarted/upgraded. safe_to_redeploy is false while destructible work is in flight — documents being processed/extracted, running background tasks (held in an in-memory store a restart would lose), or an active AskAI/research query (a restart kills the stream). Pending documents persist and resume after a restart, so they are reported but never block. Requires manage permission.
Instance status (redeploy safety) › Responses
Instance status snapshot
safe_to_redeployFalse while any destructible work is in flight
reasonsActive blockers; empty when safe to redeploy
processing_countDocuments currently processing/extracting (blocks redeploy)
pending_countDocuments queued (informational; resumes after restart)
failed_countDocuments in failed state
running_task_countPending/running background tasks (blocks redeploy)
Summaries of in-flight background tasks
active_query_countIn-flight AskAI/research queries (blocks redeploy)
last_query_atISO timestamp of the most recent AskAI query
last_relationship_analysis_atlast_community_detection_atlast_entity_merge_atneo4j_connectedchecked_atISO timestamp when this snapshot was taken
List API keys with usage stats
List all API keys with embedded usage statistics (total/today/week/month requests, error counts, endpoint breakdown). Admin-only.
List API keys with usage stats › Responses
API keys with stats retrieved
idnamekey_prefixpermissionsis_activecreated_atlast_used_atcreated_bycollection_scopeallowed_collectionsallowed_collection_namesGet API key usage stats
Get detailed usage statistics for a specific API key. Admin-only.
path Parameters
key_idGet API key usage stats › Responses
Usage statistics retrieved
total_requestsrequests_todayrequests_this_weekrequests_this_montherror_countlast_error_atlast_error_messageendpoint_breakdownRequest counts by endpoint category
Get API key usage history
Get daily request and error counts for an API key over the given number of days (default 30, max 365). Useful for charting usage trends. Admin-only.
path Parameters
key_idquery Parameters
daysNumber of days of history
Get API key usage history › Responses
Usage history retrieved
key_idkey_nameperiod_daysGet admin stats overview
Get aggregated statistics across all API keys for the admin dashboard: total/active key counts, request totals over multiple windows, total errors, most active key, and aggregated endpoint breakdown. Admin-only.
Get admin stats overview › Responses
Overview retrieved
total_keysactive_keystotal_requests_all_timetotal_requests_todaytotal_requests_this_weektotal_requests_this_monthtotal_errorsmost_active_keyendpoint_breakdownAggregated endpoint usage across all keys