Manus

Account Management

Guide to managing Manus accounts in ShipAny

Overview

The account management system allows users to bind and manage Manus accounts. Administrators can manage the account pool and configure distribution settings.

User Account Binding

Claiming an Account

Users can claim available accounts from the pool:

// API: POST /api/manus/accounts/claim
const response = await fetch('/api/manus/accounts/claim', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
});

const { success, account } = await response.json();

Account Status

Each bound account has the following status indicators:

StatusDescription
pendingAccount claimed but not yet verified
activeAccount verified and ready to use
suspendedAccount temporarily disabled
expiredSubscription has expired

Account Information

interface ManusAccountBinding {
  id: string;
  user_id: string;
  account_id: string;
  account_email: string;
  membership_activated: boolean;
  total_credits: number;
  used_credits: number;
  expires_at: Date | null;
  created_at: Date;
}

Admin Account Pool

Managing the Pool

Administrators can:

  1. Add Accounts: Import accounts in bulk or individually
  2. Assign Accounts: Manually assign to specific users
  3. Monitor Status: Track account health and usage
  4. Revoke Access: Remove bindings when necessary

Account Pool Schema

interface ManusAccount {
  id: string;
  account_email: string;
  account_password: string;  // Encrypted
  token: string | null;
  status: 'available' | 'assigned' | 'disabled';
  membership_type: string | null;
  membership_activated: boolean;
  total_credits: number;
  used_credits: number;
  last_synced_at: Date | null;
  created_at: Date;
}

Token Verification

Use the verification tools to check account tokens:

// API: GET /api/manus-auth/verify
const response = await fetch('/api/manus-auth/verify', {
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const { valid, user_info } = await response.json();

Best Practices

  1. Regular Sync: Enable automatic token refresh
  2. Monitor Usage: Track credit consumption patterns
  3. Set Limits: Configure per-user account limits
  4. Backup Tokens: Store tokens securely with encryption