# x402 Trust Layer MPP Session Manager

> x402 Trust Layer MPP Session Manager is a paid API for AI agents from x402trustlayer.xyz, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-02).

Closes and settles a multi-payment protocol (MPP) session, returning settlement metadata and facilitator instructions for aggregate USDC on-chain settlement.

## Facts

- Endpoint: POST https://x402trustlayer.xyz/api/mpp/session?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-trust-layer-mpp-session-manager-b0d85c75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AipBxCBoI5K_w4miLncA_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-trust-layer-mpp-session-manager-b0d85c75 -d '<json body>'
```

Example prompt: Close my x402 MPP session 'mpp_example' for agent 'agent-mpp-usdc-test-042' using an HTTP GET action and give me the settlement details so the facilitator can settle the total USDC on Polygon.

## When to prefer this

Use this endpoint when you need to formally close an x402 MPP (multi-payment protocol) session and retrieve structured settlement metadata so a facilitator can execute the aggregate USDC payment on-chain. Prefer this over individual per-call payment endpoints when your agent has completed a batch of API calls and wants to settle once, reducing gas costs. Ideal when working within the x402 trust infrastructure ecosystem using the Dexter Cash facilitator on Polygon.

## Known failure modes

- Invalid or expired session ID returns error with no settlement data
- Missing required 'type' or 'method' fields returns schema validation error
- Unsupported HTTP method (e.g. POST instead of GET/HEAD/DELETE) returns 422
- Session already closed may return idempotent close or conflict error
- Payment not authorized (x402 payment header missing or invalid) returns 402
- Network or facilitator unreachable results in timeout or 503

## How this service works

68 paid x402 trust infrastructure APIs: guard, semantic escrow, mandate diff, certified seller network, KYM, mandates, compliance, disputes, and orchestration.

## Output

Returns a JSON object with session close confirmation including: session ID, agent ID, chain (e.g. Polygon), calls used vs planned, estimated total USDC owed, facilitator URL and docs link, confidence score (0–1), a list of checks passed, a savings note, next steps for on-chain settlement, and a human-readable recommendation to settle via the facilitator.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "status",
      "success",
      "action",
      "session",
      "settlement",
      "recommendation",
      "facilitator",
      "nextSteps",
      "savingsNote",
      "confidence",
      "checks_passed"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "action": {
       "type": "string"
      },
      "status": {
       "type": "string"
      },
      "session": {
       "type": "object",
       "required": [
        "sessionId",
        "status",
        "chain",
        "agentId",
        "expectedCalls",
        "callsUsed",
        "avgPricePerCallUsdc"
       ],
       "properties": {
        "chain": {
         "type": "string"
        },
        "status": {
         "type": "string"
        },
        "agentId": {
         "type": "string"
        },
        "callsUsed": {
         "type": "number"
        },
        "sessionId": {
         "type": "string"
        },
        "expectedCalls": {
         "type": "number"
        },
        "avgPricePerCallUsdc": {
         "type": "number"
        }
       }
      },
      "success": {
       "type": "boolean"
      },
      "nextSteps": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "confidence": {
       "type": "number"
      },
      "settlement": {
       "type": "object",
       "required": [
        "status",
        "sessionId",
        "network",
        "chain",
        "agentId",
        "callsSettled",
        "plannedCalls",
        "estimatedTotalUsdc",
        "facilitatorUrl"
       ],
       "properties": {
        "chain": {
         "type": "string"
        },
        "status": {
         "type": "string"
        },
        "agentId": {
         "type": "string"
        },
        "netw
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "action": "close",
  "status": "ok",
  "session": {
   "chain": "polygon",
   "status": "closed",
   "agentId": "agent-mpp-usdc-test-042",
   "callsUsed": 0,
   "sessionId": "mpp_example",
   "expectedCalls": 9,
   "avgPricePerCallUsdc": 0.03
  },
  "success": true,
  "nextSteps": [
   "Facilitator settles session total to payTo wallet"
  ],
  "confidence": 0.9,
  "settlement": {
   "chain": "polygon",
   "status": "closed",
   "agentId": "agent-mpp-usdc-test-042",
   "network": "eip155:137",
   "sessionId": "mpp_example",
   "callsSettled": 0,
   "plannedCalls": 9,
   "facilitatorUrl": "https://x402.dexter.cash",
   "estimatedTotalUsdc": 0
  },
  "facilitator": {
   "url": "https://x402.dexter.cash",
   "mppDocs": "https://docs.dexter.cash/docs/mpp/"
  },
  "savingsNote": "Session closed with settlement metadata",
  "checks_passed": [
   "mpp_session",
   "action_close",
   "settlement_metadata"
  ],
  "recommendation": "Settle aggregate USDC once on-chain via facilitator"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-trust-layer-mpp-session-manager-b0d85c75/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402trustlayer.xyz](https://www.zero.xyz/host/x402trustlayer.xyz/llms.txt)
