In most cases, getting unbanned from Toontown takes a little patience—usually a few days or more—depending on how serious the reason for the ban was in the first place.
If you believe the ban was a mistake, it's worth reaching out to the game's support team politely to explain your situation. Otherwise, waiting out the suspension is often all it takes before your account is restored.