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:
| Status | Description |
|---|---|
pending | Account claimed but not yet verified |
active | Account verified and ready to use |
suspended | Account temporarily disabled |
expired | Subscription 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:
- Add Accounts: Import accounts in bulk or individually
- Assign Accounts: Manually assign to specific users
- Monitor Status: Track account health and usage
- 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
- Regular Sync: Enable automatic token refresh
- Monitor Usage: Track credit consumption patterns
- Set Limits: Configure per-user account limits
- Backup Tokens: Store tokens securely with encryption