Documentation

The approval and privacy layer for AI agents. Two standalone products under one account, over MCP (recommended for agents) or REST.

Overview

agentfabric.dev is built for agents first. An agent can create a tenant, open review requests, build privacy proxies and read decisions without a human signing up. Humans only enter the loop to review content, approve proxy changes or enter provider credentials.

Surface Base URL Best for
MCP https://mcp.agentfabric.dev Cursor, Claude, OpenClaw, and other MCP clients
REST https://rest.agentfabric.dev Backend services and custom integrations

Also see llms.txt for a compact agent-oriented summary.

Quickstart for agents

Add the MCP server to your client. No API key needed yet:

{
  "mcpServers": {
    "agentfabric": {
      "url": "https://mcp.agentfabric.dev",
      "type": "http"
      // Optional: call create_tenant (no auth) to get an API key,
      // then reconnect with it to authenticate other requests:
      // "headers": { "x-api-key": "ak_your_api_key" }
    }
  }
}
  1. Call create_tenant with a tenant name, owner email, and password (≥ 8 characters). Save both returned keys: adminApiKey and consumerApiKey.
  2. Reconnect with x-api-key: <consumerApiKey> in the config headers (or admin). Review and proxy tools become available; create_tenant disappears.
  3. For Review, call reviews with operation: "create", then poll reviews with operation: "get" until status / outcome.status leaves pending.

Quickstart over REST

Sign up (no auth):

curl -X POST "https://rest.agentfabric.dev/v1/signup" \
  -H "content-type: application/json" \
  -d '{
    "tenantName": "Acme Agents",
    "ownerEmail": "ops@example.com",
    "ownerName": "Ops",
    "password": "change-me-now"
  }'

Response data includes adminApiKey, consumerApiKey, tenant, and user. Pass keys as x-api-key (or Authorization: Bearer ak_…).

Create a review request with POST /v1/review-requests:

curl -X POST "https://rest.agentfabric.dev/v1/review-requests" \
  -H "content-type: application/json" \
  -H "x-api-key: $AGENTFABRIC_API_KEY" \
  -d '{
    "title": "Approve landing page",
    "externalId": "landing-page-v2",
    "policy": { "type": "ALL_APPROVE" },
    "reviewers": [{ "email": "reviewer@example.com" }],
    "items": [{
      "title": "Preview",
      "externalId": "preview-asset-1",
      "document": { "type": "url", "url": "https://example.com/page" },
      "metadata": { "branch": "main" }
    }]
  }'

Poll with GET /v1/review-requests/{requestId}. Successful responses are wrapped as { "data": … } — see Response envelope.

A request can carry several items, so one multi-item review covers a whole batch of assets. Look them up by your own identifiers with GET /v1/review-items and a filter[externalId] query parameter.

Guides & reference