HTTP And Admin API

ShrikeDB has two HTTP-facing surfaces:

  • the HTTP REST API under /api/v1,

  • the admin health server under /health.

Send a request

Use the HTTP listener for /api/v1 routes and the admin listener for /health routes. In the local guide configuration these are ports 8182 and 9190 respectively.

curl --fail-with-body http://127.0.0.1:8182/api/v1/health
curl --fail-with-body http://127.0.0.1:9190/health/ready

POST requests with JSON bodies need Content-Type: application/json. Add the appropriate credential and x-shrikedb-database header for a shared or multi-database deployment; see Connect To ShrikeDB. A successful HTTP status for an MCP request can still contain a JSON-RPC error.

Request examples for data operations are in Your first multimodal dataset, Import a dataset, and Geospatial and spatiotemporal indexing. The tables below identify routes; they are not shell commands.

HTTP REST API

Method Path Purpose

POST

/api/v1/schema

Create a schema.

POST

/api/v1/semantic_rule

Add a semantic mapping rule.

POST

/api/v1/kv

Put a KV record with base64 value.

GET

/api/v1/kv/:subject_id/:key_id

Get a KV record.

POST

/api/v1/graph_block

Insert a graph block.

GET

/api/v1/health

HTTP service health.

GET

/api/v1/admin/kv/namespaces

KV namespace report.

GET

/api/v1/admin/vector/namespaces

Vector namespace report.

GET

/api/v1/admin/multimodal/alignment

Cross-modality alignment report.

Trace Endpoints

Method Path Purpose

GET

/api/v1/admin/vector/query_traces

Recent vector traces.

GET

/api/v1/admin/vector/query_traces/perfetto

Perfetto vector trace.

GET

/api/v1/admin/vector/query_traces/live

Live vector trace stream.

GET / POST

/api/v1/admin/vector/query_traces/config

Read or update vector trace config.

GET

/api/v1/admin/query/plan_traces

Recent query plan traces.

GET

/api/v1/admin/query/plan_traces/perfetto

Perfetto query plan trace.

GET

/api/v1/admin/query/plan_traces/live

Live query plan trace stream.

GET / POST

/api/v1/admin/query/plan_traces/config

Read or update query plan trace config.

Admin Operations

Method Path Purpose

POST

/api/v1/admin/vector/learned_router/prewarm

Prewarm vector learned router state.

POST

/api/v1/admin/graph/predicate_inbound/prewarm

Prewarm graph predicate inbound cache.

POST

/api/v1/admin/kv/backfill_u64_raw_keys

Backfill one KV namespace’s raw u64 keys.

POST

/api/v1/admin/kv/backfill_u64_raw_keys/batch

Backfill known KV raw u64 keys in batch.

Health Server

Path Purpose

/health/live

Liveness probe.

/health/ready

Readiness probe.

/health/startup

Startup probe.

/health

Combined health.

/health/vector/namespaces

Vector namespace inventory.

/health/multimodal/alignment

Multimodal namespace alignment.

Metrics

The metrics endpoint is:

/metrics

It includes lateral vector join counters and latency/cache gauges.