A person can be detained without due process for up to 72 hours, legally.
Generally, law enforcement must bring an arrested person before a judge or magistrate within a reasonable time, which is usually considered to be within 72 hours of arrest. This is known as arraignment, where the judge informs the defendant of the charges, their rights (including the right to an attorney), and sets the conditions for their release.