# x402 Trust Layer MPP Session Plan

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

Plans and closes a multi-payment protocol (MPP) session, returning settlement metadata, facilitator info, and a recommendation for aggregate USDC settlement on-chain.

## Facts

- Endpoint: POST https://x402trustlayer.xyz/api/mpp/session-plan?utm_source=zero.xyz
- Price: $0.02/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-plan-82d7dfc8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ASl4rqsgyp_xXD98uoUT8

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-plan-82d7dfc8 -d '<json body>'
```

Example prompt: Close out my x402 MPP session 'mpp_example' for agent 'agent-mpp-usdc-test-042' and give me the settlement plan so I can do a single on-chain USDC settlement via the facilitator.

## When to prefer this

Use this endpoint when an AI agent has completed a series of x402 micro-payment API calls within an MPP session and needs to plan/close the session to obtain aggregate settlement metadata, facilitator URLs, and a single on-chain USDC settlement recommendation — rather than settling each call individually.

## Known failure modes

- Invalid HTTP method (only GET/HEAD/DELETE accepted) returns 4xx validation error
- Missing required 'type' or 'method' fields returns 400 bad request
- Session not found or already settled may return empty/error response
- Payment of $0.02 USDC not received leads to 402 Payment Required
- Facilitator endpoint unavailable causes settlement metadata to be missing or stale

## 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 session closure object with session ID, chain (e.g. polygon), calls used vs planned, estimated total USDC, facilitator URL and docs link, a savings note, recommended next action (e.g. settle aggregate USDC once on-chain), confidence score, and a list of checks passed.

## 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-plan-82d7dfc8/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)
