Auth and key lifecycle
Bootstrap, key management, and scoped sessions.
Crypto helpers
Encrypt and decrypt labels for user-safe display.
Base URL
https://api.machines.cash
Canonical consumer routes are under /consumer/v1.
MCP runtime compatibility:
- tools are under
machines.consumer.* - resources are under
machines://consumer/* machines.user.cards.listis the user-friendly cards listing tool
Authentication
- Consumer API key header (for session minting):
X-Consumer-Key - Consumer session bearer (for operations):
Authorization: Bearer <token> - Web session helper:
POST /identity/consumer-api-keys
Bootstrap Signing Message
POST /consumer/v1/bootstrap accepts either template below (exact line order and newlines).
Preferred (simpler):
- Address may be lowercase or checksum.
- Keep bootstrap windows short (recommended around 60 seconds).
Idempotency
For state-changing financial writes, includeidempotency-key.
Common required operations include:
- deposits create and transfer
Compatibility behavior
GET /consumer/v1/usersresolves current user profile (no raw user id required).GET /consumer/v1/agreementsandPOST /consumer/v1/agreementsmap to application agreement state/actions.GET /consumer/v1/kyc/statusresolves current user KYC status.
Blocked endpoint on consumer surface
GET /consumer/v1/identity/data-key is intentionally blocked (403).
Use:
POST /consumer/v1/crypto/encryptPOST /consumer/v1/crypto/decrypt