Skip to content

MPP Integration

Overview

MPP (Micropayment Protocol) by Stripe and Tempo enables agents to open pre-authorized spending sessions and stream micropayments.

How It Works

1. Create session with spending limit
2. Use session token for tool calls
3. Track usage in real-time
4. Session auto-expires

Create Session

Terminal window
POST /mpp/session/create
Authorization: Bearer cv_YOUR_KEY
Content-Type: application/json
{
"spending_limit_cents": 5000,
"ttl_minutes": 60
}

Response:

{
"session_id": "mpp_abc123",
"token": "mpp_token_...",
"expires_at": "2026-03-18T13:00:00Z"
}

Use Session

Include the session token in tool calls:

Terminal window
curl -X POST https://api.50c.ai/tools/genius \
-H "X-MPP-Session: mpp_token_..." \
-H "Content-Type: application/json" \
-d '{"problem": "What is 2+2?"}'

Check Session

Terminal window
GET /mpp/session/mpp_abc123
Authorization: Bearer cv_YOUR_KEY

Response:

{
"session_id": "mpp_abc123",
"spent_cents": 230,
"remaining_cents": 4770,
"call_count": 47,
"status": "active",
"expires_at": "2026-03-18T13:00:00Z"
}

Session Limits

When the session exhausts its spending limit:

{
"error": "Session exhausted",
"spent_cents": 5000,
"limit_cents": 5000
}

Create a new session to continue.

Supported Currencies

  • USD (via Stripe)
  • USDC (via Tempo)
  • EUR (via Stripe)

Use Cases

  • Autonomous agent spending
  • Streaming micropayments
  • Time-limited access
  • Budget-controlled automation

Status

MPP is new (launched 2026-03-18). Check availability:

Terminal window
GET /mpp/status

If unavailable, use x402 or API keys instead.