Skip to content

API Reference

MeshGuard provides a REST API for agent governance and management.

Base URL

Your MeshGuard gateway URL (provided when you sign up):

https://your-gateway.meshguard.app

For the public sandbox:

https://dashboard.meshguard.app

Authentication

Agent Authentication

Agents authenticate using JWT bearer tokens:

bash
curl https://your-gateway.meshguard.app/proxy/endpoint \
  -H "Authorization: Bearer <agent-token>" \
  -H "X-MeshGuard-Action: read:contacts"

Admin Authentication

Admin endpoints require an admin token header:

bash
curl https://your-gateway.meshguard.app/admin/agents \
  -H "X-Admin-Token: <admin-token>"

Gateway Endpoints

MethodEndpointDescription
GET/healthHealth check
GET/Gateway info
ALL/proxy/*Governed proxy (requires auth)

Admin Endpoints

MethodEndpointDescription
GET/admin/agentsList agents
POST/admin/agentsCreate agent
GET/admin/agents/:idGet agent
PATCH/admin/agents/:idUpdate agent
DELETE/admin/agents/:idRevoke agent
GET/admin/policiesList policies
GET/admin/policies/:nameGet policy
GET/admin/auditQuery audit log
GET/admin/audit/statsAudit statistics

Using the SDK

We recommend using the Python SDK instead of calling the API directly:

python
from meshguard import MeshGuardClient

client = MeshGuardClient()
decision = client.check("read:contacts")

Detailed Documentation

Governance Control Plane for AI Agents