{"openapi":"3.1.0","info":{"title":"Min Partner API (Aare)","version":"1.0.0","description":"Official OpenAPI description for the Min Partner API and related user JWT routes."},"servers":[{"url":"https://mini-rdjs.onrender.com"}],"components":{"securitySchemes":{"partnerApiKey":{"type":"http","scheme":"bearer","description":"Partner API key ema_pk_..."},"userJwt":{"type":"http","scheme":"bearer","description":"User session JWT from POST /v1/partner/users/:id/session"}}},"paths":{"/v1/partner/me":{"get":{"summary":"Get authenticated partner metadata","tags":["Partner API"],"security":[{"partnerApiKey":[]}]}},"/v1/partner/webhooks":{"get":{"summary":"Get webhook configuration","tags":["Partner API"],"description":"Scope: webhooks","security":[{"partnerApiKey":[]}]},"put":{"summary":"Update webhook configuration","tags":["Partner API"],"description":"Scope: webhooks","security":[{"partnerApiKey":[]}]}},"/v1/partner/webhooks/test":{"post":{"summary":"Send test webhook event","tags":["Partner API"],"description":"Scope: webhooks","security":[{"partnerApiKey":[]}]}},"/v1/partner/users":{"post":{"summary":"Create partner user","tags":["Partner API"],"description":"Scope: users","security":[{"partnerApiKey":[]}]},"get":{"summary":"Lookup user by external ref","tags":["Partner API"],"description":"Scope: users","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}":{"get":{"summary":"Get user by id","tags":["Partner API"],"description":"Scope: users","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/session":{"post":{"summary":"Mint user JWT session","tags":["Partner API"],"description":"Scope: users","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/compliance":{"get":{"summary":"Get compliance profile","tags":["Partner API"],"description":"Scope: compliance","security":[{"partnerApiKey":[]}]},"put":{"summary":"Submit compliance profile","tags":["Partner API"],"description":"Scope: compliance","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/wallet":{"get":{"summary":"Wallet balances and activity","tags":["Partner API"],"description":"Scope: wallet","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/deposits":{"get":{"summary":"List deposits","tags":["Partner API"],"description":"Scope: deposits","security":[{"partnerApiKey":[]}]},"post":{"summary":"Create crypto deposit","tags":["Partner API"],"description":"Scope: deposits","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/deposits/{depositId}":{"get":{"summary":"Get deposit status","tags":["Partner API"],"description":"Scope: deposits","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/withdrawals":{"get":{"summary":"List withdrawals","tags":["Partner API"],"description":"Scope: withdrawals","security":[{"partnerApiKey":[]}]},"post":{"summary":"Create withdrawal","tags":["Partner API"],"description":"Scope: withdrawals","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/withdrawals/{withdrawalId}":{"get":{"summary":"Get withdrawal status","tags":["Partner API"],"description":"Scope: withdrawals","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/whitelist-wallets":{"get":{"summary":"List whitelisted wallets","tags":["Partner API"],"description":"Scope: wallet","security":[{"partnerApiKey":[]}]},"post":{"summary":"Add whitelisted wallet","tags":["Partner API"],"description":"Scope: wallet","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/whitelist-wallets/{walletId}":{"delete":{"summary":"Remove whitelisted wallet","tags":["Partner API"],"description":"Scope: wallet","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/airfarming/status":{"get":{"summary":"Full airfarming drop status","tags":["Partner API"],"description":"Scope: airfarming","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/vip":{"get":{"summary":"VIP farmer summary","tags":["Partner API"],"description":"Scope: vip","security":[{"partnerApiKey":[]}]}},"/v1/partner/stats":{"get":{"summary":"Partner tenant stats (user count, webhook, commission rate)","tags":["Partner API"],"security":[{"partnerApiKey":[]}]}},"/v1/partner/commission":{"get":{"summary":"Partner commission accrual summary","tags":["Partner API"],"security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/live-trading":{"get":{"summary":"Live trading account summaries for partner user","tags":["Partner API"],"description":"Scope: wallet","security":[{"partnerApiKey":[]}]}},"/v1/partner/users/{id}/ghost-account":{"get":{"summary":"Ghost account pool status for partner user","tags":["Partner API"],"description":"Scope: airfarming","security":[{"partnerApiKey":[]}]}},"/live-trading/accounts":{"get":{"summary":"List user's MT5 live accounts","tags":["User JWT"],"security":[{"userJwt":[]}]}},"/live-trading/accounts/{accountId}/fund":{"post":{"summary":"Move cash wallet → live trading wallet","tags":["User JWT"],"security":[{"userJwt":[]}]}},"/ghost-account/status":{"get":{"summary":"Ghost account pool, members, lends","tags":["User JWT"],"security":[{"userJwt":[]}]}},"/ghost-account/enroll":{"post":{"summary":"Enroll in ghost account program","tags":["User JWT"],"security":[{"userJwt":[]}]}},"/airfarming/activate":{"post":{"summary":"Activate airfarming balance from cash","tags":["User JWT"],"security":[{"userJwt":[]}]}}}}