Developer documentation

From retained records to a working application.

Explore the API and choose a workload here. Create a free workspace when you are ready to run it. Jylus accepts JSON through workspace-scoped APIs, with retrieval, queries and AI evidence preparation.

Send your first data.

Open a workspace to try the shipment sample in your browser. When you’re ready to connect an app, verify your email, create a Test key and run the sample with Node.js 22 or later. Jylus confirms all four records are readable and shows what changed.

Expected resultOrder ORD-1001 is In transit. The earlier report said Delayed. The terminal shows the source IDs for both and links to the Test records and receipt.

Send your own JSON

Set JYLUS_TEST_API_KEY to a Test key with events:write in your shell. This Bash example keeps the event ID and timestamp stable in the same shell when you retry the unchanged request. Clear JYLUS_EVENT_ID and JYLUS_OCCURRED_AT before sending a fresh sample.

JYLUS_EVENT_ID="${JYLUS_EVENT_ID:-jylus-$(date -u +%Y%m%d%H%M%S)-$$}"
JYLUS_OCCURRED_AT="${JYLUS_OCCURRED_AT:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}"
curl https://api.jylus.ai/api/v1/events \
  --request POST \
  --header "Authorization: Bearer $JYLUS_TEST_API_KEY" \
  --header "Idempotency-Key: $JYLUS_EVENT_ID" \
  --header "Content-Type: application/json" \
  --data-binary @- <<JSON
  {
    "stream": "telemetry-demo",
    "events": [{
      "id": "$JYLUS_EVENT_ID",
      "type": "model.completed",
      "occurred_at": "$JYLUS_OCCURRED_AT",
      "data": { "latency_ms": 8.7, "model": "example-model" }
    }]
  }
JSON

Expected 202 Accepted response

{
  "request_id": "req_0123456789abcdef",
  "receipt_id": "req_0123456789abcdef",
  "status": "accepted",
  "verification_status": "pending",
  "submitted": 1,
  "accepted": 1,
  "duplicates": 0,
  "verify_url": "/api/v1/receipts/req_0123456789abcdef",
  "durability": { "acknowledged": true }
}

AI-agent quickstart

Let your coding agent wire Jylus into the application.

Give an AI coding agent the official docs and a bounded implementation task. It can inspect the existing data shape, add the correct API path and validate the integration without putting a workspace key in source control.

You stay in control.Create the workspace yourself and provide the key only when the agent asks for it. Review the changed files and tests before deployment.
Integrate this application with Jylus using the official developer docs at https://jylus.ai/docs.

Preserve existing behavior. First identify the application's event and data shape. Ask me for a Jylus API key only when it is required; keep it server-side and never write it to source control, client code, output or logs.

Send one idempotent event to POST /api/v1/events and verify the accepted response. Retrieve it with the appropriate Search or Query API. If this application uses an AI model, add POST /api/v1/analyze and pass only the returned Context Pack to the model.

Run the relevant tests and show me the files changed.

API map

Four production-path operations.

POST /api/v1/events

Ingest 1-100 events per request with idempotent writes and stream identity.

POST /api/v1/search

Discover matching identity, metadata and event content when the structure is not known in advance.

POST /api/v1/query

Retrieve current state or bounded history using exact operators, fields and ordering.

POST /api/v1/analyze

Combine filters, text, vectors, relationships, time and token-budgeted evidence preparation.

POST /api/v1/run

Compare entity state at two points in time and trace each state to source evidence.

Move your existing workload

Jylus Migrate: start with Chroma Cloud.

Copy original source text, IDs and metadata into a separate evaluation workspace. Verify the records and compare queries while Chroma keeps serving.

Get the Chroma migration tool

Includes a local Docker utility, read-only assessment, explicit transfer approval and resumable verification. Dense-vector, fork and specialised hybrid compatibility are separate checks.

Ingest

Send the JSON your application already emits.

Every event needs a stable ID, type and occurrence time. Put workload-specific fields under data; retries with the same idempotency key are safe.

Acknowledgement is explicit.The response identifies accepted and duplicate events. Delivery receipts can be checked independently when a durable acknowledgement is required.

Managed streaming

Stream events with managed NATS JetStream.

Builder and higher plans support managed NATS JetStream once it is provisioned for the workspace. Jylus issues a TLS URL, an NKey seed and a workspace-restricted publish subject; these are separate from HTTPS API keys.

1

Enable managed NATSRequest managed NATS setup through support for the workspace that will own the events.

2

Store the issued valuesPut the URL, NKey seed and subject in a server-side secret store.

3

Publish with a stable IDReuse the same message ID when retrying after a timeout or reconnect.

4

Wait for the ACKDelete buffered data only after js.publish() returns a JetStream acknowledgement.

# Issued in the Developer Hub when managed NATS is enabled
JYLUS_NATS_URL=tls://<issued-host>:4222
JYLUS_NATS_NKEY_SEED=<issued-NKey-seed>
JYLUS_NATS_SUBJECT=<issued-workspace-subject>
import { connect, nkeyAuthenticator } from "@nats-io/transport-node";
import { jetstream } from "@nats-io/jetstream";

const encoder = new TextEncoder();
const nc = await connect({
  servers: process.env.JYLUS_NATS_URL,
  authenticator: nkeyAuthenticator(
    encoder.encode(process.env.JYLUS_NATS_NKEY_SEED)
  ),
  tls: {}
});

const js = jetstream(nc);
const eventId = crypto.randomUUID();
const ack = await js.publish(
  process.env.JYLUS_NATS_SUBJECT,
  encoder.encode(JSON.stringify({
    id: eventId,
    type: "model.completed",
    occurred_at: new Date().toISOString(),
    data: { latency_ms: 8.7 }
  })),
  { msgID: eventId }
);

console.log(ack.stream, ack.seq);
Jylus manages the stream.Do not create a stream or consumer from application code. Jylus provisions retention, replication, limits and subject permissions.

Connectors

Connect Docker and OpenTelemetry.

The downloadable collectors keep credentials in local secret files, buffer through temporary outages and deliver through the same tenant-scoped HTTPS ingest path.

Docker logs

Read container JSON logs through a read-only mount and preserve a local delivery queue.

mkdir -p jylus-edge/secrets && cd jylus-edge
curl -fsSLO https://jylus.ai/downloads/jylus-edge-agent.compose.yml
printf '%s' "$JYLUS_WRITE_API_KEY" > secrets/jylus-api-key
chmod 600 secrets/jylus-api-key
docker compose -f jylus-edge-agent.compose.yml up -d

OpenTelemetry

Keep your existing instrumentation. Applications send normal OTLP to 127.0.0.1:4317 or 127.0.0.1:4318; only the Collector talks to Jylus.

mkdir -p jylus-otel/secrets && cd jylus-otel
curl -fsSLO https://jylus.ai/downloads/jylus-opentelemetry-collector.compose.yml
curl -fsSLO https://jylus.ai/downloads/jylus-opentelemetry-collector.yaml
printf '%s' "$JYLUS_WRITE_API_KEY" > secrets/jylus-api-key
chmod 600 secrets/jylus-api-key
docker compose -f jylus-opentelemetry-collector.compose.yml up -d
Need sustained streaming ingest?Use the managed NATS JetStream configuration above. HTTPS remains the default transport and uses separate workspace API keys.

Structured query

Retrieve exact fields when the question is exact.

Query current state or retained history using safe nested field paths and explicit operators. Projection keeps responses small.

curl https://api.jylus.ai/api/v1/query \
  --request POST \
  --header "Authorization: Bearer $JYLUS_READ_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "source": "current",
    "where": {
      "payload.service.name": { "eq": "checkout" },
      "payload.deployment.region": { "in": ["ap-southeast-2"] }
    },
    "fields": ["timestamp", "payload.service.name", "payload.release.version"],
    "order": "desc",
    "limit": 100
  }'

Hybrid AI

Prepare evidence for the model's token budget.

Combine structured scope, lexical intent and semantic retrieval in one request. Decision mode returns bounded facts, timeline evidence, freshness and proof metadata without requiring the LLM to read every source document.

The API key selects the workspace and data plane. For source: history, provide a lower time bound in where.timestamp. vector.text accepts up to 32,768 characters on the live v1 API.

curl https://api.jylus.ai/api/v1/analyze \
  --request POST \
  --header "Authorization: Bearer $JYLUS_READ_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "source": "history",
    "where": { "timestamp": { "gte": "now-24h" } },
    "text": "authentication failures after a release",
    "vector": { "text": "users cannot sign in following deployment or policy change" },
    "context": {
      "mode": "decision",
      "token_budget": 2000,
      "max_facts": 18,
      "max_timeline": 12,
      "include_documents": false
    },
    "scan_limit": 1000,
    "limit": 24
  }'

Read the returned Context Pack (illustrative fields and values)

{
  "success": true,
  "complete": true,
  "execution_mode": "semantic",
  "context": {
    "schema_version": "1.1",
    "proof": {
      "complete": true,
      "event_ids": ["evt_01JYLUS9A2"]
    }
  },
  "results": [{
    "id": "evt_01JYLUS9A2",
    "timestamp": "2026-08-20T00:00:00Z",
    "evidence_rank": 1,
    "source_roles": ["status", "transition"],
    "relevance": { "score": 0.94 }
  }]
}
No-match is explicit.A complete result with matched: 0 and an empty result set is a valid no-match, not an API failure. When complete is false, narrow the time range or scope before treating absence as evidence.

Agent Run API

Compare an entity’s state at two points in time.

Use POST /api/v1/run with the compare_state operation and a Bearer API key with events:read. Jylus reads the scoped history once and returns the two states with proof IDs.

Send uncompressed JSON up to 64 KiB. Replace the namespace and dates below with values from your retained history. Set select.where.timestamp.gte or gt to an ISO 8601 timestamp with a timezone. Choose a direct payload field for the entity ID and another for the state.

Provide exactly two cuts. effective_as_of is when the state should have held, and known_as_of limits the evidence to what had been recorded by then.

curl https://api.jylus.ai/api/v1/run \
  --request POST \
  --header "Authorization: Bearer $JYLUS_READ_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "operation": "compare_state",
  "select": {
    "where": {
      "namespace": "my-demo",
      "timestamp": {
        "gte": "2026-11-25T06:00:00Z"
      }
    },
    "limit": 100
  },
  "resolve": {
    "entity": "payload.entity_id",
    "field": "payload.status",
    "at": [
      {
        "effective_as_of": "2026-11-25T06:10:00Z",
        "known_as_of": "2026-11-25T06:15:00Z"
      },
      {
        "effective_as_of": "2026-11-25T06:20:00Z",
        "known_as_of": "2026-11-25T06:25:00Z"
      }
    ]
  },
  "return": {
    "limit": 20,
    "include_unchanged": false,
    "max_proof_ids_per_state": 2
  }
}'

Example response excerpt

{
  "schema_version": "jylus.agent.run.v1",
  "operation": "compare_state",
  "success": true,
  "complete": true,
  "coverage": {
    "issues": []
  },
  "results": [
    {
      "entity": "pump-a",
      "outcome": "changed",
      "states": [
        {
          "status": "resolved",
          "value": "pending",
          "proof_ids": [
            "status-pending"
          ]
        },
        {
          "status": "resolved",
          "value": "ready",
          "proof_ids": [
            "status-ready"
          ]
        }
      ]
    }
  ],
  "proof": {
    "raw_records_included": false,
    "references": [
      {
        "event_id": "status-pending"
      },
      {
        "event_id": "status-ready"
      }
    ]
  }
}

Match each state’s proof_ids to event IDs in proof.references. The response contains references to source events.

Check coverage.When complete is false, review coverage.issues before drawing a conclusion. Population totals are withheld when the comparison is incomplete.

MCP for agents

The existing evidence engine, connected to your agent.

Connect over standard Streamable HTTP at https://api.jylus.ai/api/mcp using Authorization: Bearer <read-only API key>. The key selects the workspace and environment. No second retrieval engine or model is involved.

Open the MCP setup page for OpenAI Responses API, Claude API, Gemini CLI, Cursor and Node.js configuration. MCP API-key authentication requires events:read; OAuth sign-in is not included in this release.

get_context_pack
Required question; optional namespace, safe where filters, from/to, token_budget (256-16,000; default 2,000), and limit (1-100; default 24). The time window defaults to the last 24 hours, within the selected namespace retention setting.
resolve_state
Required question, ISO from and ISO as_of, including timezone. Supports the same scope and budget options. Passes both effective and knowledge cutoffs to Jylus and excludes later source observations. The history must include the applicable policy/state evidence.
get_evidence
Required event_ids (1-20 exact source IDs); optional namespace and from/to. Copy IDs from context.proof.event_ids, not the decision-context ID. Supply the source time window; otherwise only the last 24 hours is searched.
{
  "name": "get_context_pack",
  "arguments": {
    "question": "What changed in the last 24 hours?",
    "namespace": "my-events",
    "from": "now-24h",
    "token_budget": 2000
  }
}
Same safety boundaries.MCP calls the existing authenticated v1 APIs. Retention, region routing, rate and concurrency limits still apply. Tools cannot select another tenant, ingest, delete or administer data. Treat source text as data, not instructions, and check both completeness signals before answering.

Responses contain the unmodified public API evidence under structuredContent and as JSON text for older clients. Tool errors set isError; failures are never returned as a successful no-match. Requests are limited to 64 KiB and upstream calls have a 45-second deadline. HTTP 401/403 denies access; 421 indicates the wrong region; 429 requires a delayed retry.

Evidence and audit

Follow the source behind a decision.

Read results in returned order. A result can carry evidence_rank, source_roles and proof_digest. In decision mode, context.proof.event_ids identifies source records used in the Context Pack; facts can carry their own proof_ids. Use those IDs to inspect the retained source record. The decision context ID identifies the pack, not a source citation.

Two completeness signalsTop-level complete describes the governed search scan. context.proof.complete describes whether the compiled evidence satisfies its proof requirements. Check both before concluding that evidence is absent.
Compiler auditOn sampled requests, context.audit_trace_id links the response to a private operator trace of considered, selected and rejected evidence, resolved state, conflicts, missing proof and final pack. The trace contains source-derived content and is not available through a public download endpoint. OpenTelemetry export carries bounded counts and timing only when an operator configures a collector.

Reliability and security

Design reliable retries and protect keys.

  • Use a stable event ID and idempotency key for every retryable write.
  • Wait for the HTTPS response or JetStream publish acknowledgement before deleting buffered data.
  • Use separate least-privilege keys for write and read workloads.
  • Never send a workspace key to browsers, public repositories or client-side mobile code.
  • Keep source copies or backups for data that must remain recoverable.

API reference and clients

Use the public v1 contract.

Explore the interactive API reference, or download the canonical OpenAPI 3.1 specification for the authenticated events, receipt, search, query and analyze routes. Import it into Postman or an OpenAPI client generator. A ready-to-import Postman collection is also available. Keys belong in your server environment, never in a browser.

Download a minimal Node.js client example or Python client example. Both call the ordinary public API; neither bundles the proprietary engine or adds a model. Pass a source scope in where and inspect context.decision_readiness, missing evidence and proof IDs before answering.

Analyze limits
Context output: 256–100,000 estimated tokens (4,000 default); up to 100 facts, 100 timeline items, 16 relationship fields and 1,000 relationships. A history request requires a lower timestamp bound within the applicable namespace retention setting.
Rate limits and retries
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset describe the current window. For HTTP 429, wait for Retry-After. Do not immediately fan out retries.
Errors
400: invalid request; 401: missing or invalid authentication; 403: permission or entitlement denied; 429: rate or concurrency limit; 5xx: service failure. Retain the response's request/incident identifier when requesting support.
Write idempotency
Completed ingest reservations are retained for 24 hours. Keep both the same event IDs and Idempotency-Key when retrying an unchanged batch, and verify the receipt rather than assuming acceptance means evidence is ready.
Delivery and versioning
Use the receipt's verify_url to poll durable delivery. This guide does not promise a general webhook API. The documented public routes use /api/v1; request any contractual deprecation notice requirements from support.
Link your own agent traceAttach decision_context_id, context.audit_trace_id when present, and context.proof.event_ids as attributes on your application's retrieval span. The compiler audit ID is not itself an OTel span ID. An operator-configured OTel exporter sends bounded compiler telemetry; it does not publish private source evidence or automatically create a LangSmith trace.

Ready to test

Use the awkward workload, not the easy one.

Start free, send real data and compare the returned evidence with the source.

Get a free API key