Question: where was the first formal police department created in the united states in 1838
Answer: The Boston Police Department ( BPD ) , dating back to 1838 , holds the primary responsibility for law enforcement and investigation within the American city of Boston , Massachusetts .