Auth and key lifecycle
Bootstrap, key management, and scoped sessions.
Crypto helpers
Encrypt and decrypt labels for user-safe display.
Agentic Payments
Search products, buy, and continue purchase steps with one shared flow.
Base URL
https://api.machines.cash
Canonical consumer routes are under /consumer/v1.
Agent task routes are separate and live under /agent/v1.
The main task routes are:
GET /agent/v1/browserPOST /agent/v1/browserPOST /agent/v1/buyGET /agent/v1/actions/:actionIdPOST /agent/v1/actions/:actionId/confirmPOST /agent/v1/actions/:actionId/3ds
- tools are under
machines.consumer.* - agentic commerce tools are under
machines.agent.* - 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