/
/Mobula API
DocsSign in
Sign in
  • APIs
  • Generators
  • Stacks
  • Projects
  • Docs
  • History
  • Schema
Checked 5h ago · Updated 5h ago
Agent5
  • getSubscribe to a Mobula API plan via MPP payment. Creates or updates an agent customer with the selected plan (Startup, Growth, Enterprise) and billing frequency (monthly, yearly). Returns an API key and user_id. If upgrading, pass ?upgrade=true. Before subscribing, check /agent/mpp/subscription to verify no active plan. After subscribing, use the returned API key with header "x-api-key: <key>" (or "Authorization: <key>") to call any Mobula REST endpoint without further MPP payments. You can also connect to WebSocket streams at wss://streams.mobula.io for real-time trade feeds, price updates, and market events using the same API key. Full documentation: https://docs.mobula.io
  • getAdd credits to an MPP agent. Requires an active subscription. Credits are calculated from the top-up amount using the plan-specific price per credit (Startup: $0.0004/credit, Growth/Enterprise: $0.00032/credit). Returns credits_added and new_credits_limit. Credits are consumed when calling any Mobula REST or WebSocket endpoint with your x-api-key.
  • getCreate a new API key for the MPP agent. Payer wallet must match the subscription wallet. Returns the new api_key and user_id. Each key works with both REST (x-api-key header) and WebSocket streams.
  • get/agent/mpp/api-keys/revoke
  • getReturns current plan stats for the payer wallet: user_id, api_keys, plan, last_payment, payment_frequency, left_days, credits_left, plan_active. Use before subscribe to check if an active plan exists. 404 if no agent found. If plan_active is true, use the returned api_keys with x-api-key header to call any endpoint without MPP.
V2 - Assets4
V2 - Blockchains1
V2 - Market Data5
V2 - Perps3
V2 - Search2
V2 - Swap3
V2 - Token18
V2 - Trades6
V2 - Wallet14