Question: is spill the beans an idiom?
Answer: spill the beans. Disclose a secret or reveal something prematurely, as in You can count on little Carol to spill the beans about the surprise. In this colloquial expression, first recorded in 1919, spill means "divulge," a usage dating from the 1500s.