Start here
Sealgraf checks the authority for a proposed purchase. The agent still makes the purchase through its own payment channel. Sealgraf never holds or moves money.
Connecting a supported app?
Use the guided setup instead of configuring a custom integration.
Open guided setupUsing Claude? Start here. Built an agent with Sealgraf? Show the badge. Want a head start? Templates.
2. Connect with MCP
Add Sealgraf to your agent client’s MCP configuration. Replace the placeholder with the key from setup, and keep it like a password.
{
"mcpServers": {
"see": {
"url": "https://sealgraf.com/mcp",
"headers": { "X-API-Key": "see_YOUR_AGENT_KEY" }
}
}
}At /mcp only, Authorization: Bearer is also accepted.
3. Check before buying
Call check_permission over MCP, or POST /v1/preauthorize over REST, for the proposed action. Continue only on an allow result.
- Allow
- Proceed within the approved action. Keep the single-use decision token.
- Approval needed
- Wait; do not buy yet. After the owner approves, collect the token with
POST /v1/preauthorize/<id>/decision-token. - Deny
- Stop and explain the reason to the person.
4. Complete and keep the evidence
After buying, report completion over REST with the decision token, then keep the returned receipt. A permission decision and a completed purchase are separate states.
curl -X POST https://sealgraf.com/v1/preauthorize/PREAUTH_ID/complete \
-H "X-API-Key: see_YOUR_AGENT_KEY" -H "Content-Type: application/json" \
-d '{"decision_token": "DECISION_TOKEN",
"completion_nonce": "order-123",
"evidence": {"completed_amount_minor": 2500,
"counterparty_receipt_ref": "order-123"}}'5. Handle errors clearly
On a temporary failure, keep the intended action and retry with the same completion_nonce: completion is idempotent on it. Never treat a timeout as approval.