So... you were lethargic and showing signs of psychosis as a result of sleep deprivation?
When you were admitted one of two things happened: Either you signed a document voluntarily agreeing to a 72 hour hold, during which you would give a certain amount of advance notice before leaving the facility, or a petition was filed with the probate court asking that you be detained as a "person requiring treatment" based upon the examining psychiatrist's determination that you demonstrated "a substantial disorder of thought or mood that significantly impairs judgment, behavior, capacity to recognize reality, or ability to cope with the ordinary demands of life." See
MCL 330.1401.
If you voluntarily agreed to the treatment, and I expect that you did, you agreed that it was necessary. If not, the doctors deemed it medically necessary and a court agreed, pending further review. Either way, it's your bill to pay.
As you have been told, there is no such thing as going "clinically insane". If you didn't inform others of your hospitalization, odds are they found out from the people who became sufficiently disturbed by your behavior to arrange for your hospitalization.
If your diagnosis was that you ingested a toxin, then it reasonably follows that either a toxin showed up in your blood/urine testing or that your symptoms were not consistent with mere sleep deprivation but were consistent with ingestion of a toxin.
You were treated for severe sleep deprivation (by your own admission) that left you unable to properly care for yourself, and for possible ingestion of a toxin that would raise the same concern along with concern about accidental or deliberate self-harm.
Why did you deliberately stay awake for 72 hours, to the point that those around you believed you might be overdosing on drugs?
When you appear at a psychiatric emergency room showing signs of ingestion of a toxin, claim, "No, it's just that I've deliberately stayed awake for 72 hours", then refuse to go to sleep, you can expect to be sedated. Such is life.