API reference

Every HTTP route, MCP tool, query op, semurg command, SDK call and refusal of the Semurg node, read from the code of the published release r11.173.20261116.3006727, never hand-written. The blog's how-to guides show them in use.

HTTP routes

Route descriptions are not generated yet: docs/openapi.json is not in the published release r11.173.20261116.3006727 yet (mix semurg.openapi).

/.well-known/oauth-authorization-server

MethodPathMCP tool
GET/.well-known/oauth-authorization-server

/.well-known/oauth-protected-resource

MethodPathMCP tool
GET/.well-known/oauth-protected-resource
GET/.well-known/oauth-protected-resource/v1/mcp

/api/contact

MethodPathMCP tool
POST/api/contact

/api/health

MethodPathMCP tool
GET/api/health

/api/version

MethodPathMCP tool
GET/api/version

/oauth/authorize

MethodPathMCP tool
GET/oauth/authorize
POST/oauth/authorize

/oauth/register

MethodPathMCP tool
POST/oauth/register

/oauth/token

MethodPathMCP tool
POST/oauth/token

/v1/analytics

MethodPathMCP tool
GET/v1/analytics/catalog
POST/v1/analytics/run

/v1/chat

MethodPathMCP tool
POST/v1/chat/completions

/v1/cluster

MethodPathMCP tool
GET/v1/cluster/agents
GET/v1/cluster/conveyor
GET/v1/cluster/customs
POST/v1/cluster/customs/land
POST/v1/cluster/dr
POST/v1/cluster/model_pull
GET/v1/cluster/nodes
POST/v1/cluster/nodes/join-token
POST/v1/cluster/nodes/reinstate
POST/v1/cluster/nodes/remove
GET/v1/cluster/nodes/{fp}
POST/v1/cluster/reconcile
GET/v1/cluster/update
POST/v1/cluster/update
GET/v1/cluster/update/status
GET/v1/cluster/util
GET/v1/cluster/witness

/v1/comms

MethodPathMCP tool
POST/v1/comms/bind_address
POST/v1/comms/inbox
POST/v1/comms/read
POST/v1/comms/send
POST/v1/comms/thread

/v1/embeddings

MethodPathMCP tool
POST/v1/embeddings

/v1/ingest

MethodPathMCP tool
POST/v1/ingest

/v1/keys

MethodPathMCP tool
POST/v1/keys/models

/v1/licence

MethodPathMCP tool
GET/v1/licence
POST/v1/licence/activate
POST/v1/licence/buy
POST/v1/licence/fetch

/v1/marketplace

MethodPathMCP tool
GET/v1/marketplace/{kinds}/{key}

/v1/mcp

MethodPathMCP tool
DELETE/v1/mcp
GET/v1/mcp
POST/v1/mcp

/v1/memory

MethodPathMCP tool
POST/v1/memory/audit
POST/v1/memory/context
POST/v1/memory/delete_user
POST/v1/memory/document
POST/v1/memory/export
POST/v1/memory/forget
POST/v1/memory/import
POST/v1/memory/recall
POST/v1/memory/relate
POST/v1/memory/remember
GET/v1/memory/status

/v1/messages

MethodPathMCP tool
POST/v1/messages
POST/v1/messages/count_tokens

/v1/models

MethodPathMCP tool
GET/v1/models
GET/v1/models/{id}

/v1/objects

MethodPathMCP tool
DELETE/v1/objects/{id}
GET/v1/objects/{id}
PUT/v1/objects/{id}

/v1/provider

MethodPathMCP tool
GET/v1/provider/openrouter/models

/v1/query

MethodPathMCP tool
POST/v1/query

/v1/rag

MethodPathMCP tool
POST/v1/rag/chat
GET/v1/rag/health

/v1/rerank

MethodPathMCP tool
POST/v1/rerank

/v1/status

MethodPathMCP tool
GET/v1/status

/v1/trial

MethodPathMCP tool
GET/v1/trial
POST/v1/trial

/v1/unlock

MethodPathMCP tool
POST/v1/unlock/verify

/v1/whoami

MethodPathMCP tool
GET/v1/whoami

MCP tools

  • memory_context:
  • memory_document:
  • memory_export:
  • memory_forget:
  • memory_import:
  • memory_recall:
  • memory_relate:
  • memory_remember:
  • memory_status:

Query ops (POST /v1/query, the op field)

aggregate, connector_egress, connector_ingest, connectors, credential_delete, credential_list, credential_put, delete_documents, delete_passages, delete_rows, fetch, geo_put, geo_within, histogram, hybrid_ingest, hybrid_query, index_documents, insert_rows, job, job_cancel, keys_reset, keys_status, licence_verify, marketplace_catalogue, marketplace_install, marketplace_remove, marketplace_show, marketplace_status, marketplace_update, neighbour_ids, oauth_grants, oauth_revoke, object_delete, object_get, object_put, read_rows, resolve, search, similar, stream_count, stream_produce, stream_read, term_docs, term_postings, traverse, ts_ingest, ts_latest, vector_search, vector_top_k

The semurg command on a node

  • semurg admin
  • semurg arena
  • semurg bench
  • semurg cluster
  • semurg join
  • semurg licence
  • semurg license
  • semurg marketplace
  • semurg model
  • semurg seed
  • semurg stop
  • semurg uninstall
  • semurg update

SDK calls, per client

  • Python (clients/python/semurg/client.py): audit, close, cluster_util, comms_bind_address, comms_inbox, comms_read, comms_send, comms_thread, context, conveyor_report, delete_user, document, export, export_all, fetch, fetch_batch, forget, health, histogram, import_records, ingest, ingest_vectors, licence, memory_status, node_status, nodes, query, recall, relate, remember, resolve, search, similar, status, vector_search, vector_top_k, version, witness
  • Go (clients/go/semurg/client.go): ClusterUtil, CommsBindAddress, CommsInbox, CommsRead, CommsSend, CommsThread, Context, ConveyorReport, DeleteUser, Document, Export, Fetch, FetchBatch, Forget, Health, Histogram, ImportRecords, Ingest, IngestVectors, IngestWith, Licence, MemoryStatus, NodeStatus, Nodes, Query, Recall, Relate, Remember, Resolve, Search, Similar, Status, VectorSearch, VectorTopK, Version, Witness
  • Java (clients/java/src/main/java/io/semurg/client/SemurgClient.java): atp, baseUrl, context, deleteUser, document, export, fetch, fetchBatch, forget, health, histogram, importRecords, ingest, ingestVectors, memoryStatus, query, recall, relate, remember, resolve, search, similar, status, transport, vectorSearch, vectorTopK, version, ws
  • C# (clients/csharp/Semurg.Client/SemurgClient.cs): Atp, ClusterUtil, Context, ConveyorReport, DeleteUser, Document, Export, Fetch, FetchBatch, Forget, Health, Histogram, ImportRecords, Ingest, IngestVectors, Licence, MemoryStatus, NodeStatus, Nodes, Query, Recall, Relate, Remember, Resolve, Search, SemurgClient, Similar, Status, VectorSearch, VectorTopK, Version, Witness, Ws
  • F# (clients/fsharp/Semurg.Client.FSharp/Client.fs): answeredIndexed, arr, atpEndpoint, baseUrl, bits, body, config, connect, connectAuth, context, create, d, deleteUser, dispose, document, export, fetch, fetchBatch, forget, health, histogram, importRecords, ingest, ingestVectors, ingestWith, joinMessage, memoryStatus, node, o, off, ok, packed, payload, private, query, raw, recall, relate, remember, resolve, search, similar, socketUrl, status, svc, transport, vectorSearch, vectorTopK, vectorTopKEf, version, withTimeout, withToken, withTransport, withUser
  • Elixir (clients/elixir/lib/semurg/client.ex): agents, aggregate, aggregate_column, cluster_util, comms_bind_address, comms_inbox, comms_read, comms_send, comms_thread, connector_egress, connector_ingest, connectors, context, conveyor_report, credential_delete, credential_list, credential_put, customs_land, customs_status, delete_documents, delete_passages, delete_rows, delete_user, document, dr, error, export, fetch, fetch_batch, forget, geo_put, geo_within, health, histogram, hybrid_ingest, hybrid_query, import_records, index_documents, ingest, ingest_containers, ingest_vectors, insert_rows, job, job_cancel, keys_reset, keys_status, licence, licence_verify, marketplace_catalogue, marketplace_install, marketplace_remove, marketplace_show, marketplace_status, marketplace_update, memory_status, model_keys_list, model_keys_mint, model_keys_revoke, model_keys_usage, neighbour_ids, new, node_status, nodes, oauth_grants, oauth_revoke, object_delete, object_get, object_put, object_values, query, read_rows, recall, reconcile_local_copies, relate, remember, require_indexed, resolve, search, similar, status, stream_count, stream_produce, stream_read, term_docs, term_postings, ts_ingest, ts_latest, vector_search, vector_top_k, version, with_transport, witness
  • Erlang (clients/erlang/src/semurg_client.erl): context, delete_user, document, edge, fetch, fetch_batch, forget, health, histogram, import_records, ingest, ingest_containers, ingest_vectors, memory_export, memory_status, new, query, recall, relate, remember, resolve, result, search, similar, status, vector_search, vector_top_k, version, with_transport
  • Rust (clients/rust/src/client.rs): aggregate, aggregate_column, atp_addr, comms_bind_address, comms_inbox, comms_send, comms_send_with, comms_thread, connector_egress, connector_ingest, connectors, credential_delete, credential_list, credential_put, customs_land, customs_status, decode, delete_documents, delete_passages, delete_rows, delete_user, document, dr, encode, export, fetch, fetch_batch, forget, geo_put, geo_within, health, histogram, http_connections_opened, hybrid_ingest, hybrid_query, import_records, index_documents, ingest, ingest_containers, ingest_containers_with, ingest_vectors, insecure, insert_rows, job, job_cancel, keys_reset, keys_status, licence_verify, marketplace_catalogue, marketplace_install, marketplace_remove, marketplace_show, marketplace_status, marketplace_update, memory_context, memory_status, model_keys_list, model_keys_mint, model_keys_revoke, model_keys_usage, neighbour_ids, new, oauth_grants, oauth_revoke, object_delete, object_get, object_put, prefer_atp, query, read_rows, recall, relate, remember, resolve, search, similar, status, stream_count, stream_produce, stream_read, term_docs, term_postings, transport, ts_ingest, ts_latest, vector_search, vector_top_k, vector_top_k_ef, version, with_atp_addr, with_timeout, with_token, with_transport, with_user
    Still in this client, but they call routes this release does not serve: comms_read
  • Julia (clients/julia/src/client.jl): context, document, fetch_batch, ingest, ingest_vectors, memory_export, query, recall, remember, vector_search, vector_top_k, version
  • C++ (clients/cpp/src/client.cpp): decode_json, ensure_http, fetch, fetch_batch, get_json, health, histogram, ingest, ingest_containers, ingest_vectors, memory_export, memory_import, post_json, post_json_bin, query, resolve, search, similar, status, vector_search, vector_top_k, version
  • OCaml (clients/ocaml/lib/client.ml): base_url, close, context, create, decode_json_response, delete_user, document, export, fetch, fetch_batch, forget, get, health, histogram, http_connections_opened, ids_json, import_records, ingest, ingest_vectors, memory_status, pct, post_json, query, recall, relate, remember, require_indexed, resolve, run_bin, run_json, sdk_version, search, similar, status, transport, trim_trailing_slash, vector_search, vector_top_k, version, with_transport, with_user

For pack developers: the Tier-3 path, not open yet (209 facade verbs)

The node's internal API for extension packs. It is listed so nothing is hidden; it is not yet a path a customer can use, so no guide covers it yet.

The 209 facade verbs
  • agents/0 (read)
  • append/2
  • append_edges/2
  • append_resolved/3 (write)
  • append_resolved/4 (write)
  • ask_node/5 (control)
  • belt_group_cap/0 (read)
  • belt_group_cap/1 (write)
  • belt_release/1 (write)
  • belt_reserve/1 (write)
  • belt_reserved/0 (read)
  • bind_verified/1 (open)
  • bind_verified/2 (open)
  • cell_chunk/2
  • cell_chunk/3
  • chain_blocks/3 (read)
  • chain_blocks/4 (read)
  • chunk/2
  • chunk/3
  • claim_keys/1 (read)
  • cluster_maintenance_begin/1
  • cluster_maintenance_end/0
  • cluster_state/0 (read)
  • cluster_store_open/1 (open)
  • cluster_store_open/2 (open)
  • coaccess_commit/2 (write)
  • commit_block/4 (write)
  • connector_check/3 (write)
  • connectors/0 (read)
  • credential_delete/2 (write)
  • credential_list/1 (read)
  • credential_put/2 (write)
  • customs_land/2 (write)
  • customs_read/2 (read)
  • customs_status/0 (read)
  • customs_write/3 (write)
  • derive_edge_id/3
  • destroy/1 (admin)
  • dr/2 (write)
  • durability_class/1 (read)
  • edge/4
  • edge/5
  • edge/6
  • edge_dst/1
  • edge_id/1
  • edge_src/1
  • edge_value/1
  • edge_weight/1
  • egress_connector/3 (read)
  • embed_code/1 (read)
  • engine_health/0 (read)
  • engine_loaded/0 (read)
  • engine_state/1 (read)
  • engine_vmlck_kb/0 (read)
  • fetch/2
  • fetch_batch/2
  • footprint/1 (read)
  • generation/1
  • get_layer/5 (read)
  • get_layers/5 (read)
  • graph_engine_set/1 (read)
  • graph_image_outcome/1
  • grid_engine_set/1 (read)
  • grid_lend_entry/0 (read)
  • grid_node_uses_entry/0 (read)
  • grid_read/3 (read)
  • group_by_owner/2 (read)
  • hardware_conveyor_report/0 (read)
  • hardware_core_util/0 (read)
  • hardware_disk_count/0 (read)
  • hardware_per_disk_bytes/0 (read)
  • hardware_physical_disk_bases/0 (admin)
  • hardware_stripe_roots/0 (admin)
  • hybrid_query/2 (read)
  • identity_id/2 (read)
  • ingest_connector/3 (write)
  • integrations_booted/1 (write)
  • job/1 (read)
  • job_cancel/1 (write)
  • job_subscribe/1 (read)
  • keys_reset/1 (admin)
  • keys_status/0 (admin)
  • knn_top_k/6 (read)
  • licence_activate/1 (write)
  • licence_fetch/2 (admin)
  • licence_fetch/3 (admin)
  • licence_fingerprint/0 (read)
  • licence_order/1 (admin)
  • licence_order/2 (admin)
  • licence_status/0 (read)
  • licence_verify/1 (read)
  • map_reduce_owned/4
  • map_reduce_owned/5
  • marketplace_catalogue/2 (read)
  • marketplace_install/4 (write)
  • marketplace_remove/2 (write)
  • marketplace_show/3 (read)
  • marketplace_status/4 (read)
  • marketplace_update/4 (write)
  • measured_suite_report/1 (read)
  • measured_suite_run/1 (admin)
  • memory_headroom_bytes/0
  • mesh_issue_join_token/0 (write)
  • mesh_issue_join_token/1 (write)
  • mesh_list_nodes/0 (read)
  • mesh_node_status/1 (read)
  • mesh_reinstate_node/1 (write)
  • mesh_remove_node/1 (write)
  • mesh_remove_node/2 (write)
  • mesh_status/0 (read)
  • model_pull/2
  • neighbour_ids/3 (read)
  • neighbours/2 (read)
  • node/4
  • node/5
  • node/6
  • node_attr/1
  • node_first_chunk/1
  • node_gen/1
  • node_inline/1
  • node_type_tag/1
  • node_uses/2 (read)
  • object_cells_read/2 (read)
  • object_delete/2 (write)
  • object_get/2 (read)
  • object_get/3 (read)
  • object_put/2 (write)
  • object_put/3 (write)
  • object_put_begin/4 (write)
  • object_put_begin/5 (write)
  • object_put_commit/1 (write)
  • object_put_write/2 (write)
  • object_stat/2 (read)
  • open/1 (open)
  • open/2 (open)
  • out_edges/2 (read)
  • out_edges/3 (read)
  • pack_graph/1
  • pool_entry/0 (read)
  • pool_nodes/0 (read)
  • prefix_key_lifetime_words/0
  • present_blocks/3 (read)
  • probe_blocks/3 (read)
  • put_layer/5 (write)
  • put_values/2 (write)
  • put_vectors/4 (write)
  • put_vectors/5 (write)
  • rank_node_id/3 (read)
  • rank_nodes/1 (read)
  • reachable/3 (read)
  • read_value/2 (read)
  • reconcile_local_copies/1 (write)
  • reconcile_local_copies/2 (write)
  • register_column/3 (write)
  • relocate_batch_stats/2 (write)
  • replication_pending/0
  • reset_write_timing_map/0 (write)
  • runtime_census/0 (read)
  • scan_count_cmp/4
  • scan_histogram/3
  • scan_pattern/2 (read)
  • scan_search/2 (read)
  • scan_sum_cmp/4 (read)
  • scan_text/2 (read)
  • scan_value_histogram/3
  • shard_free_bytes/1
  • stats/1 (read)
  • store_key/1 (read)
  • tail_blocks/4 (read)
  • tail_blocks/5 (read)
  • tier_stats/1 (read)
  • tombstone/2 (write)
  • tombstone_edges/2 (write)
  • top_k_hamming/3
  • top_k_hamming/4
  • top_k_l2/5 (read)
  • tp_entry/0 (read)
  • tp_exchange_all/5 (write)
  • tp_link_close/1 (write)
  • tp_link_open/2 (write)
  • tp_link_status/0 (read)
  • tp_owner/3 (read)
  • tp_owner/4 (read)
  • tp_prepare/1 (write)
  • tp_window/2 (write)
  • update_check/1
  • update_check/2
  • util_cached/0 (read)
  • util_snapshot/0 (read)
  • util_snapshot/1 (read)
  • vec/2
  • vec/3
  • vector_pieces/2
  • vector_scope/2 (read)
  • vector_slots/1 (read)
  • vector_then_walk/4
  • vector_then_walk/5
  • vectors_stored/3 (read)
  • walk/3
  • walk/4
  • walk_collect_mixed_release_refusals/0 (read)
  • walk_packed/3
  • walk_packed/4
  • write_annotate/2
  • write_annotate_degraded/2
  • write_collect/1
  • write_settle/1
  • write_settle_edgelist/1
  • write_timing_map/0 (read)

Refusals

api_v1_controller

RefusalHTTP / JSON-RPC, or the exit codeWhat it meansWhat to doSince
cluster_node_could_not_judge503cluster node did not answer in timeRetry; if it repeats, read that node's utilisation row: it is connected, but its share is slow.r11.77 or earlier
cluster_node_unavailable503cluster node unavailableBring the named roster node back: its shards answer again once it rejoins (each shard has one copy today).r11.77 or earlier
ids_empty422ids must not be emptySend at least one id in "ids".r11.77 or earlier
missing_op422missing 'op'Send "op" naming the operation (fetch, resolve, search, histogram, traverse, or another op the reference lists).r11.77 or earlier
op_args_malformed422the op is missing arguments or has arguments of the wrong typeSend the arguments the detail names for this op, with the types it names.r11.77 or earlier
op_failed422the op failedRetry once; if it repeats, report it with the detail, which quotes what the engine answered.r11.77 or earlier
param_not_integer422a numeric parameter must be an integerSend the named parameter as an integer (a JSON number or a decimal string).r11.77 or earlier
queries_b64_invalid422queries_b64 is not valid base64Base64-encode the row-major q x d little-endian f32 query matrix.r11.77 or earlier
similar_id_missing422similar needs a node idSend "id" (a u64 node id that has a stored vector) and an optional "k".r11.77 or earlier
store_process_down503store unavailableRetry shortly: the store process is restarting.r11.77 or earlier
store_timeout503store timeoutRetry; a store call ran past its bound. If it repeats, send fewer ids or seeds per call.r11.77 or earlier
store_unavailable503customer-data store unavailableRead the open failure the detail quotes and the node log's [UserStore] lines before changing SEMURG_DATA_DIR.r11.77 or earlier
too_many_ids413too many idsSplit the ids into requests of at most the maximum the detail names.r11.77 or earlier
traverse_seeds_missing422traverse needs a seeds listSend "seeds" (a list of u64 node ids) and "hops".r11.77 or earlier
unknown_op422unknown opUse one of the ops the detail lists; it suggests the nearest.r11.77 or earlier
vector_search_query_missing422vector_search needs a query stringSend "query" (the text to search for) and an optional "k".r11.77 or earlier
vector_top_k_args_missing422vector_top_k needs queries_b64, q, d and kSend queries_b64, q, d and k (and ef for the indexed answer).r11.77 or earlier

cluster_facade

RefusalHTTP / JSON-RPC, or the exit codeWhat it meansWhat to doSince
admin_capability_required403needs the admin capability (the instance owner)Call it as the instance owner (the owner's token, or on the box); a per-user token or the public sandbox cannot.r11.77 or earlier
verb_undeclared404no facade verb of this name and arity is declared, so its capability is unknown and it is not calledCall a verb the facade declares (its catalogue lists each verb with its arity and capability).r11.77 or earlier

code_door

RefusalHTTP / JSON-RPC, or the exit codeWhat it meansWhat to doSince
after_out_of_range422 / -32602`after` is not an ingested ordinalpass the `next_after` of the previous pagenext
argument_invalid422 / -32602an argument has the wrong typesee the tool's inputSchemanext
before_out_of_range422 / -32602`before` is not an ingested ordinalpass the `next_before` of the previous pagenext
blob_address_mismatch500 / -32603a stored file does not rehash to its recorded address; it is NOT servedrun `mix semurg.code.verify` on the nodenext
blob_length_mismatch500 / -32603a stored file is not the recorded length; it is NOT servedrun `mix semurg.code.verify` on the nodenext
code_owner_only403 / -32001the code history of this node is read with the node's own key, not an end-user keycall with the node's API tokennext
code_read_failed500 / -32603the code store could not answer; the reason is in `detail`retry; if it repeats, run `mix semurg.code.verify` on the nodenext
diff_binary422 / -32602that path is binary: no patch is builtread it with code_atnext
diff_too_large422 / -32602that path is too large for a patch: at most 256 KiB and 5,000 linesread it with code_at in windowsnext
limit_out_of_range422 / -32602`limit` is outside what this verb pagessee the tool text for its boundsnext
line_blame_not_built422 / -32602line-level blame is not built; blame answers per filedrop `lines`next
max_bytes_out_of_range422 / -32602`max_bytes` is outside what one call returns1 to 262,144next
nothing_ingested404 / -32602the repository's store exists but that branch was never ingestedpass the `branch` that was ingested (the default is main)next
offset_out_of_range422 / -32602`offset` is not a byte offseta non-negative integernext
patch_invalid422 / -32602`patch` must be one pathpass the path whose before / after blocks you wantnext
patch_path_unchanged422 / -32602`patch` names a path that does not change in that rangepick a path listed in `changes`next
path_invalid422 / -32602`path` is not a path this door readsa repository-relative path, no NUL byte, at most 4,096 bytesnext
path_prefix_invalid422 / -32602`path_prefix` is not a path prefix this door readsa repository-relative prefixnext
range_reversed422 / -32602`from` is not before `to`swap themnext
range_too_large422 / -32602more than 2,000 commits lie between `from` and `to`narrow the rangenext
repo_id_invalid422 / -32602`repo` is not a repository ida repository id is [a-z0-9][a-z0-9._-]{0,62}next
repo_not_ingested404 / -32602this node holds no code store for that repository; nothing was createdingest it first on an installed node: sudo semurg admin code ingest --repo <id> --path <git dir> (a node running in Docker cannot ingest: it has no git and no semurg command)next
repo_required422 / -32602`repo` is required: the repository id this node ingestedpass `repo` (lower-case letters, digits, '.', '_', '-')next
rev_ambiguous422 / -32602that commit id prefix matches more than one commitgive more hex digitsnext
rev_before_history404 / -32602that time is before the first ingested commitpass a later timenext
rev_invalid422 / -32602`rev` is not a revision this door reads: a commit id (8 hex or more), a branch, a tag, HEAD, or an ISO 8601 timepass one of thosenext
rev_unknown404 / -32602no ingested commit matches that revisioncheck the spelling; `code_status` shows the tip ingestednext
unknown_argument422 / -32602the tool does not take that argumentsend only the arguments the tool's inputSchema namesnext
unknown_verb422 / -32602this door has no such verbcall one of the verbs it listsnext

comms_door

RefusalHTTP / JSON-RPC, or the exit codeWhat it meansWhat to doSince
address_invalid422the address is not a valid name@domainUse ASCII letters, digits, `.`, `-`, `_`, `+` in the name, a plain ASCII domain, exactly one `@`, at most 254 bytes; case folds.next
address_missing422no address was sentSend `address` as `name@<cluster domain>`.next
address_taken409the address is bound to another identityChoose another address; an address binds to ONE identity and is never silently re-pointed.next
address_unknown422a recipient address is not bound on this clusterSend only to addresses bound here (the detail names the unknown ones); the recipient binds with comms_bind_address first. Nothing was sent.next
admission_could_not_judge503the write admission could not judge the node's roomRepeat the call; if it persists, read /api/health on the node.next
agent_foreign_send_needs_approval403an agent's mail to an address outside this cluster needs a person's approval, and that flow is not built yetAsk a person on this cluster to send it, or send to addresses on this cluster's own domains.next
body_missing422no message body was sentSend `body` as a non-empty string.next
body_too_large413the body is larger than one message takesKeep a body under 16 MiB; send a larger document as an attachment (a later release).next
comms_read_failed503a comms read could not be completedRepeat the call; if it persists, read /api/health on the node (the detail carries the engine's reason).next
comms_store_unavailable503the comms store could not be openedRepeat the call; if it persists, read /api/health on the node (the detail carries the refusal).next
comms_write_failed503the write could not be completedRepeat the call (binds and sends with the same content are idempotent); if it persists, read /api/health on the node.next
conversation_not_found404no conversation with this idUse a conversation id your inbox or a send answered.next
directory_unreadable503the address directory could not be readRepeat the call; if it persists, read /api/health on the node (the detail carries the engine's reason).next
domain_not_ours422the domain is not one this cluster answers forBind an address on one of the cluster's own domains (the detail lists them; the operator sets them with SEMURG_COMMS_DOMAINS, comma-separated, in the node env file; the public host PHX_HOST is the default).next
foreign_recipient_gateway_off422this node does not send mail to addresses outside its own domainsSend only to addresses on this cluster's domains, or ask the operator to switch the outbound gateway on (SEMURG_MAIL_OUT=on, once DNS, reverse DNS, port 25 and the DKIM key are ready).next
foreign_recipients_too_many422more outside addresses than one send takesSend to at most 50 addresses outside this cluster per message (a per-sender quota for larger sends is a later release).next
from_missing422a send to an address outside this cluster names no sender addressSend `from` as one of YOUR addresses on this cluster (the name@domain you bound with comms_bind_address).next
from_not_yours403`from` is not an address bound to youSend from an address you bound with comms_bind_address; an address binds to one identity, and mail is never sent as someone else.next
id_missing422a required id was not sentSend the id the detail names, as the decimal string an earlier answer gave you.next
id_not_string422an id is not a decimal stringSend ids exactly as they were answered: decimal strings, never numbers (a JSON number loses ids above 2^53).next
identity_unknown401the caller's identity could not be namedPresent an API token (Authorization: Bearer <token>).next
kind_conflict409this identity is already bound as the other kindAn identity is a user or an agent, never both; bind with the kind it already has (the detail names it).next
kind_invalid422kind is not user or agentSend `kind` as "user" (the default) or "agent".next
limit_out_of_range422limit is outside 1 to 4096Send `limit` as an integer from 1 to 4096, or omit it for the default.next
message_not_found404no message with this idUse a message id a send or a thread page answered.next
no_room507the data volume has no room for a writeFree space on the node's data volume (or add a disk), then repeat the call.next
not_a_member403you are not a member of this conversationRead only conversations you were sent to; the ids in your inbox are yours.next
page_cursor_invalid422after is not a page's nextSend `after` as the `next` the previous page answered, or omit it for the first page.next
recipients_missing422no recipient was sentSend `to` as a list of one to 4096 addresses.next
recipients_too_many422more recipients than one send takesSend to at most 4096 recipients per message (a group above that is a named conversation, a later release).next
sandbox_no_write403the public sandbox does not write commsPresent an API token (Authorization: Bearer <token>) to bind an address or send as your own identity.next
subject_too_long422the subject is not a string of at most 1024 bytesShorten the subject to 1024 bytes, or omit it.next
unknown_argument422an argument this tool does not takeSend only the keys the tool's inputSchema lists; the detail names the unknown ones and the accepted list.next
unknown_verb422unknown comms verbUse one of this door's verbs: bind_address, send, inbox, thread, read.next
user_id_invalid422user_id is not a stringSend `user_id` as a string, or omit it to act as your own identity.next

memory_door

RefusalHTTP / JSON-RPC, or the exit codeWhat it meansWhat to doSince
admission_could_not_judge503 / -32603the write admission could not judge the node's roomSend the call again in a moment; nothing was written.r11.77
attribute_invalid422 / -32602an attribute is not validSend each attribute as key: value (a string, whole number, decimal, true/false, ISO 8601 date, or date-time with its offset), {value, type} to declare it, or a list for several; the detail names the entity, the key and why. Nothing was stored.next
attribute_not_found404 / -32602attribute not found on that entity in this scopeSend the exact entity name and an attribute key it holds now (recall shows its attributes); nothing was forgotten.next
audit_owner_only403 / -32001the change log is read by the node's owner onlyRead it with the node's owner token: it names every caller, so a per-person token, an end user and the public sandbox cannot read it.next
call_deadline_exceeded503 / -32603the call did not finish inside its deadlineSend it again in a moment: remember, relate and forget are idempotent, so a repeat is safe whether or not the first was applied; split a large call; the node is busy.next
call_too_large422 / -32602one call carries more than its limitSend the items in several calls; each tool's description prints the limits.r11.77
compact_invalid422 / -32602compact must be true or falseSend "compact": true for each item once with only its answer fields, or leave it out for the full reply.next
content_beside_passages422 / -32602"content" and "passages" cannot ride in one callSend the raw text as "content" (with "facts" beside it if you have them) in one call and the passages in another.r11.77
content_refused422 / -32602content was refused, nothing was storedCorrect what the detail names and send the call again.r11.77
conversion_failed500 / -32603conversion_failed: the document could not be convertedSend it again; if it repeats, report the detail to the node's operator.next
could_not_judge503 / -32603could not judgeSend the call again; the detail names what could not be read.r11.77
customs_could_not_judge503 / -32603customs could not judge the documentSend it again in a minute.next
customs_over_quota507 / -32603customs_over_quota: customs on this node is fullWait for the running ingests to finish, or free space on the node's data volume, then send it again.next
customs_refused409 / -32602customs refused the documentCorrect what the detail names (the step and the reason) and send it again.next
date_invalid422 / -32602date is not an ISO 8601 dateSend a date such as "2026-10-01" or a date and time such as "2026-10-01T09:30:00Z".r11.77
document_bad_base64422 / -32602content_base64 is not valid base64Send standard base64 (RFC 4648 section 4); nothing was stored.next
document_bytes_missing422 / -32602missing 'content_base64'Send the document's bytes as standard base64 in content_base64 (REST also takes them as the raw request body).next
document_corrupt422 / -32602document_corrupt: the file is damagedExport the file again and send the new copy.next
document_empty422 / -32602the document is emptySend its bytes as content_base64; nothing was stored.next
document_not_readable422 / -32602document_not_readable: the file could not be readSend it again; if it repeats, convert it to plain UTF-8 text first.next
document_readback_mismatch500 / -32603readback_mismatch: the stored text is not the parsed textSend the document again; if it repeats, report the detail to the node's operator.next
document_too_large413 / -32602the document is larger than this node acceptsSend a smaller document; the detail names the limit.next
document_unsupported_kind415 / -32602unsupported_kind: not a PDF, DOCX, HTML or UTF-8 text document (judged by its first bytes)Convert the file to PDF, DOCX, HTML or UTF-8 text and send it again.next
export_cursor_invalid422 / -32602cursor is not the next value an export page returnedSend the previous page's next unchanged, or leave cursor out for the first page.next
export_unreadable503 / -32603a part of the scope could not be read, so no page was returnedAsk for the same page again in a moment; nothing partial was returned as complete.next
fact_not_found404 / -32602fact not found in this scopeSpell the relationship exactly as it was stored: from, to and type.next
facts_empty422 / -32602nothing to remember from "facts"Send {"facts":{"entities":[{"name":"Paris","type":"city"}],"relations":[{"source":"Paris","target":"France","type":"IN"}]}}, or the short form {"facts":{"subject":"Paris","kind":"city"}}.r11.77
facts_shape422 / -32602bad 'facts'Send {"facts":{"entities":[{"name":"Paris","type":"city"}],"relations":[{"source":"Paris","target":"France","type":"IN"}]}}: an object, its entities and relations lists, each relation naming both ends (from / to are accepted for source / target); nothing was stored.next
field_has_nul422 / -32602a name, mention, query or text contains a NUL byteSend names, mentions, queries and text without NUL; nothing was written.next
field_missing422 / -32602a required field is missingSend the field the detail names; each tool's description lists the required ones.r11.77
field_not_string422 / -32602a text field is not a JSON stringSend it as a JSON string; nothing was written.next
field_not_utf8422 / -32602a text field is not UTF-8Send it as a JSON string of UTF-8 text; nothing was written.next
field_too_long422 / -32602a field is longer than its limitShorten the field or split the call; each tool's description prints the limits.r11.77
forget_fact_shape422 / -32602bad 'fact'Send {"fact":{"from":"Paris","to":"France","type":"IN"}}.next
forget_needs_native_engine501 / -32603forget needs the native engineRun the node on the native engine; this store runs on the replica clutch, which cannot tombstone.r11.77
forget_one_form422 / -32602send exactly one thing to forgetSend one of subject, fact, passage, source, or all (the whole scope).next
forget_passage_shape422 / -32602bad 'passage'Send the passage's doc_id as a string.next
forget_scope_shape422 / -32602bad 'all'Send "all": true to forget the whole scope.next
forget_source_shape422 / -32602bad 'source'Send the source label as a string.next
hops_out_of_range422 / -32602hops is outside the range context takesSend hops as an integer from 0 to 3, or omit it for the default (2); a value outside the range is refused, never clamped.next
id_not_string422 / -32602an id arrived as a JSON number above 2^53Send every id as its decimal string, exactly as the reply gave it: a JSON number that large has already lost digits in most clients.next
import_refused422 / -32602a record could not be stored; the import stopped thereCorrect or remove the record the detail names and send the page again: the records before it are stored, and storing them again stores nothing twice.next
instant_invalid422 / -32602as_of or valid_at is not an ISO 8601 date or date-timeSend a date such as "2026-10-01" (the end of that day UTC) or a date and time such as "2026-10-01T09:30:00Z", or leave it out to read the present.next
k_out_of_range422 / -32602k is outside the range this verb takesSend k as an integer inside the range the detail names (recall 1 to 1000, context 1 to 100), or omit it for the default; a value outside the range is refused, never clamped.next
known_names_unreadable503 / -32603the stored names could not be read, nothing was storedSend the same call again; it is safe to retry.r11.77
limit_out_of_range422 / -32602limit is outside the range this verb takesSend limit as an integer from 1 to 1024, or omit it for the default (256); a value outside the range is refused, never clamped.next
memory_off503 / -32603memory capability is off on this nodeDocker: add -e SEMURG_MEMORY=1. Installed service: set SEMURG_MEMORY=1 in /etc/semurg/semurg.env and restart.r11.77
memory_waits_for_peers503 / -32603the memory store waits for its cluster peersStart or reconnect the nodes the detail names; the store opens on its own once every node in the roster is connected, and nothing was written meanwhile.next
messages_beside_text422 / -32602"messages" cannot ride beside "content" or "passages"Send the conversation as "messages" alone (with "facts" beside it if you have them); a conversation is one source.next
messages_refused422 / -32602messages were refused, nothing was storedCorrect the message the detail names and send the call again.next
no_room507 / -32603the node's data volume has no room for this writeFree space on the node's data volume, or add a node; nothing was written.r11.77
not_replicated503 / -32603the write was stored on its node but its second copy could not be madeTreat the write as unconfirmed, like a timeout: it may already be readable. remember, relate and forget are idempotent, so sending the call again is safe; the node is making the second copy by itself.next
nothing_to_remember422 / -32602nothing to rememberSend "content" (raw text), "messages" (a conversation), "facts" (entities and relations) or "passages" ([{"text":"Lena works at Acme.","mentions":["Lena","Acme"]}]).r11.77
operation_failed500 / -32603memory operation failedSend the call again; if it repeats, report the detail to the node's operator.r11.77
owner_absent503 / -32603the node that stores this write is awaySend the call again in a moment; nothing was written.next
passage_not_found404 / -32602passage not found in this scopeSend the doc_id memory_remember returned for that passage.next
passages_refused422 / -32602a passage was refused, nothing was storedCorrect the passage the detail names and send the call again.r11.77
passages_stopped500 / -32603storing the passages stopped before any new passage was marked storedSend the same call again: it stores the rest and answers `already` for the passages earlier calls stored.r11.77
query_missing422 / -32602missing 'query'Send "query": a question or a few words for context.r11.77
quota_exceeded429 / -32602this trial identity's quota is spentA trial identity holds a fixed storage and call quota (memory_status prints it): forget what you no longer need, wait for the window named in the detail, or run a node of your own.r11.136
relation_endpoint_unknown422 / -32602a relation names an entity this call does not list and the store does not hold; nothing was storedList the entities the detail names in this call's "entities", or remember them first; entities stored by an earlier call link without being listed again.next
relation_ends_unreadable503 / -32603the stored relation ends could not be read, nothing was storedSend the same call again; it is safe to retry.next
replaces_invalid422 / -32602replaces is not true or falseSend "replaces": true on a relation that replaces its subject's other targets of that type, or leave it out; nothing was stored.next
replaces_unreadable503 / -32603the relationships a replace would end could not be read, nothing was storedSend the same call again in a moment; it is safe to repeat.next
replica_maintenance503 / -32603the node that holds the second copy of this write is being updatedSend the call again in a moment (the window closes when the node is back and caught up); nothing was written.next
replica_unavailable503 / -32603a second copy of this write cannot be made right now: the node that holds it is away or not answeringSend the call again in a moment; nothing was written. This memory is STRICT: a write is acknowledged only when two nodes hold it.next
sandbox_no_delete403 / -32001the public sandbox does not delete memoryPresent an API token (Authorization: Bearer <token>); a key deletes only the end users it holds.next
sandbox_no_write403 / -32001the public sandbox does not write memoryPresent an API token (Authorization: Bearer <token>) to write memory in your own namespace.r11.77
scope_comms_write_refused422 / -32602a conversation scope is written only by comms_sendSend a message with comms_send; the body becomes the conversation's memory once. memory_remember / relate / forget / document do not write a comms:<conversation> scope.next
scope_missing422 / -32602missing 'scope'Pass "scope": a scope is a named, separate memory, and agents that share one share what they learn.r11.77
scope_not_a_member403 / -32001the conversation scope is not yoursA comms:<conversation> scope is read by its members only; send to the conversation (comms_send) or read your own inbox (comms_inbox). Your own recall and context already search the conversations you are in.next
scope_not_found404 / -32602scope not foundSend a scope this key holds; a scope already forgotten answers 200 already_forgotten.next
scope_qualified422 / -32602scope carries an identity qualifierSend the bare scope name; the scope is derived from the identity your token proves, never one beginning with 'u:' or 'user:'.r11.77
source_label_unreadable503 / -32603the source label could not be read, nothing was storedSend the same call again; the store did not change.next
source_not_found404 / -32602source not found in this scopeSend the exact source label the documents were stored under.next
store_not_replicated503 / -32603this memory was created before the cluster formed and has no second copy yetSend the call again in a moment: it is widened to a second copy as soon as every node of the cluster is connected; nothing was written.next
store_widening503 / -32603this memory is being copied to its second node and takes no writes until that copy is caught upSend the call again in a moment (a minute or two for a large memory); nothing was written, and reads are served as before.next
subject_missing422 / -32602missing 'subject'Send "subject": the name of the stored entity to recall (exact, or a close spelling).r11.86
subject_not_found404 / -32602subject not found in this scopeSend the exact stored name; forget acts only on an exact name, and the detail lists close names to check.r11.77
token_missing401 / -32001memory writes require an API tokenSet SEMURG_API_TOKEN on this node (or ship a licence api_token capability), then send it as 'Authorization: Bearer <token>' or 'x-api-key: <token>'.r11.77
unknown_argument422 / -32602an argument this verb does not takeSend only the arguments the tool's inputSchema (tools/list) names; the detail lists the unknown ones and the accepted ones. A verb that is not shipped yet is refused this way, never silently ignored.next
unknown_verb422 / -32602unknown memory verbUse one of this door's verbs: status, remember, recall, relate, forget, context, document, delete_user.r11.77
user_id_invalid422 / -32602user_id is not a usable end user idSend the end user's id as a non empty UTF-8 string without ':' and within the limit, or omit user_id for the caller's own scopes.next
user_id_missing422 / -32602missing 'user_id'Name the end user with user_id: delete_user removes one end user's memory.next
user_id_pinned_mismatch422 / -32602user_id differs from the connection's X-Semurg-UserThis connection is pinned to one end user by its X-Semurg-User header: omit user_id, or send exactly that end user.next
user_not_deleted503 / -32603delete-user stopped before it finishedRun delete_user again for the same user_id; the end user is not deleted until it answers ok.next
user_not_found404 / -32602no such end userSend a user_id this key holds memory for; nothing was deleted.next

Every reply that refuses carries refusal (the name above) and fix.