Xpert SafeXpert Safe
Technical Documentation Portal · v1.0

Madar Suite Documentation

Architectural and operational guides for Madar Personal, Self-Hosted Workspace Server, Policy Engine, and REST/WebSocket APIs.

Technical Documentation Portal/API, Realtime & CLI Reference·6 min read·Updated: 2026-11-06

REST API v1 Reference

Summary of core endpoints across Discovery, Enrollment, Authentication, Policy, Channels, Broadcasts, Hub, Search, and Admin Control Plane.

Key API Endpoints (/api/v1)

All protected endpoints require an Authorization: Bearer <access_token> header. Administrative endpoints under /api/v1/admin/* additionally enforce controlPlaneGuard (X-Madar-Control-Plane-Key when configured).

Method & PathScopePurpose
GET /.well-known/madar-workspace.jsonPublicWorkspace discovery, Ed25519 public key, domain verification & SSO list
POST /api/v1/enrollPublic (Signed Token)Bind employee device Ed25519 public key using signed enrollment token
POST /api/v1/auth/loginWorkspaceAuthenticate with employee ID / email / phone, password, and optional TOTP
POST /api/v1/auth/sso/loginWorkspace SSOAuthenticate via OIDC id_token, SAML 2.0 assertion, or LDAP bind
GET /api/v1/policy/meAuthenticatedFetch signed Ed25519 JWS policy bundle for active user
POST /api/v1/broadcastsBROADCASTER / ADMINPublish verified broadcast with optional quiz_ack
POST /api/v1/channels/:id/decisionsAuthenticatedRecord formal channel decision linked to source message
GET /api/v1/hubAuthenticatedRetrieve categorized Action Hub items (urgent broadcasts, follow-ups, decisions)
GET /api/v1/search?q=...AuthenticatedUnified orthographic Arabic search across authorized records
POST /v1/handles & POST /v1/wakeBlind RelayRegister 128-bit push handle and dispatch zero-payload wake signal