grith.aidocs

API overview

REST endpoints exposed by the grith daemon, organised by surface area.

The grith daemon (started by grith daemon start) binds on 127.0.0.1:3141 by default and exposes a REST API plus a WebSocket event stream.

Base URL & TLS

http://127.0.0.1:3141

By default grith binds to loopback only — there is no remote attack surface. To expose the API beyond loopback, either:

Authentication

For v0.1, the public endpoints accept any local caller. The IPC-only endpoints (/ipc/*) reject non-loopback connections at the listener.

When a Pro license is active, certain endpoints additionally require a valid plan-gate check; the call returns 403 PLAN_REQUIRED if the tier doesn't match.

Rate limits

[server.rate_limit] controls per-endpoint pacing:

  • General endpoints: 100 req/s
  • Write endpoints: 10 req/s
  • Proxy test: 20 req/s
  • IPC endpoints: uncapped (loopback only)

Exceeding the rate returns 429 RATE_LIMITED with a Retry-After header.

Endpoint groups

Health & tier

Liveness checks and license / plan-tier reporting.

MethodPathSummaryFlags
GET/healthServer liveness probe.
GET/tierCurrent plan tier and license expiry.
GET/license/statusLicense validity and refresh state.
GET/configRead the active configuration.
local
PUT/configUpdate configuration values at runtime.
local

Audit

Persisted audit log of every filter decision.

MethodPathSummaryFlags
GET/auditList audit events (paginated).
GET/audit/exportExport audit events as JSON or CSV.
GET/audit/exfil-statsAggregate exfiltration analytics over the recent window.
GET/audit/{id}Fetch one audit record.
POST/ipc/audit/ingestInternal IPC: ingest a batch of audit records.
IPC

Digest

The quarantine queue: ambiguous calls awaiting human review.

MethodPathSummaryFlags
GET/digestList queued items.
GET/ipc/digest/items/{id}Fetch one digest item with full forensics.
IPC
POST/digest/{id}/approveApprove and execute.
POST/digest/{id}/denyDeny and block.
POST/digest/{id}/learnApprove and train the reputation system.
POST/digest/{id}/escalateEscalate to team (Pro).
Pro
POST/digest/{id}/unlock-egressApprove and whitelist the destination for this session.
POST/digest/{id}/deny-terminateDeny and kill the originating process tree.
POST/digest/{id}/allow-alwaysPermanent allowlist for this call shape (Pro).
Pro
POST/digest/{id}/webhook-reviewApply a decision delivered via webhook callback.

Proxy

Filter pipeline state and dry-run evaluation.

MethodPathSummaryFlags
GET/proxy/statusFilter stats, thresholds, and queue depth.
POST/proxy/testDry-run a tool call shape. Returns the would-be decision.
POST/proxy/evaluateInternal IPC: evaluate a real syscall request.
IPC
GET/proxy/status/fullInternal IPC: extended state including per-filter scores.
IPC

Supervisor sessions

Active supervised sessions and their lifecycle (IPC only).

MethodPathSummaryFlags
GET/ipc/sessionsList active supervisor sessions.
IPC
POST/ipc/sessionsRegister a new session.
IPC
GET/ipc/sessions/{id}Fetch session details.
IPC
PUT/ipc/sessions/{id}Update session metadata.
IPC
DELETE/ipc/sessions/{id}Unregister a session.
IPC
POST/ipc/sessions/{id}/killTerminate a session and its process tree.
IPC

Canaries

Registered trap tokens that prove exfiltration if observed leaving the box.

MethodPathSummaryFlags
GET/canariesList registered canary tokens.
POST/canariesAdd a new canary token.
DELETE/canaries/{id}Remove a canary token.
POST/canaries/{id}/rotateRotate the canary value while keeping its identity.

Notifications

Channel configuration and delivery health.

MethodPathSummaryFlags
GET/notifications/channelsList configured channels and their states.
GET/notifications/statusPer-channel delivery health and recent failures.
POST/notifications/test/{channel}Send a synthetic notification to verify a channel.

Analytics

Aggregated usage, cost, and activity. Pro feature.

MethodPathSummaryFlags
GET/analytics/summaryTop-line stats: call volume, decisions split, cost.
Pro
GET/analytics/costProvider cost breakdown by model and user.
Pro
GET/analytics/activityCall volume trends and per-session timelines.
Pro
GET/analytics/complianceCompliance-ready reporting bundles.
Ent

Sync & policies

Cloud-sourced team policies and shared filter configs. Pro feature.

MethodPathSummaryFlags
GET/sync/statusCloud sync state and last successful pull.
Pro
GET/sync/configsList synced team configs.
Pro
POST/sync/configsApply a synced config bundle to this device.
Pro
GET/policiesList custom policies.
Pro
GET/policies/{name}Fetch one policy.
Pro
POST/policiesCreate a policy.
Pro
PUT/policies/{name}Update a policy.
Pro
DELETE/policies/{name}Delete a policy.
Pro

Reputation

Read and reset the adaptive trust table (IPC only).

MethodPathSummaryFlags
GET/reputation/tableDump the current trust table.
IPC
POST/reputation/observeRecord a single observation.
IPC
POST/reputation/resetWipe learned trust (start over).
IPC
POST/reputation/saveForce-flush the trust table to disk.
IPC

WebSocket

Real-time event stream for the dashboard.

MethodPathSummaryFlags
GET/eventsUpgrade to a WebSocket. Streams digest, session, audit, and notification events.

See also

Last updated: 2026-05-14Edit this page on GitHub →
© 2026 grith. All rights reserved.