The BBC has been given photos of Twitter office space that has been converted into bedrooms, which San Francisco authorities are probing as a possible building code violation.
One image shows a room with a double bed, including a wardrobe and slippers.
An ex-worker said new Twitter boss Elon Musk has been staying at the headquarters since he bought the firm.
He last month emailed all Twitter staff saying they "will need to be extremely hardcore" to succeed.
San Francisco's Department of Building Inspection has confirmed it is investigating potential violations following a complaint.
Mr Musk said the city was attacking companies for providing beds to "tired employees".
In a now-deleted tweet, Mr Musk posted that he would work and sleep in the office "until the org is fixed".
The BBC has also been given pictures of sofas at Twitter being used as beds.
Another conference room has an alarm clock, and a picture placed over a made-up bed.
A wardrobe at Twitter's HQ
Image caption,
Former staff say wardrobes have been moved into Twitter's HQ
"It looks like a hotel room," said one former worker. They went on to say that Mr Musk regularly sleeps at the Twitter HQ in San Francisco.
Twitter did not immediately respond to a request for comment from the BBC.
Last month Mr Musk - who completed his Twitter takeover in October - emailed all staff at the company saying they would need to work "long hours at high intensity".
"Only exceptional performance will constitute a passing grade," he wrote.
How to nap successfully at work
California state senator Scott Wiener told the BBC on Wednesday: "He's now making them [workers] sleep at Twitter.
"It's clear that he doesn't really care about people. He doesn't care about the people who work for him."
A Department of Building Inspection official told the BBC's US partner CBS News: 'We need to make sure the building is being used as intended."
Two sofas with bedding on them
Image caption,
Two sofas with bedding on them
In a reply to a journalist on Twitter, Mr Musk posted that the city should prioritise protecting children from the consequences of opioid drug misuse.
'Office armchairs'
Forbes broke the story of "sad little conference-room sleeping quarters at the company's recently depopulated headquarters", noting it was an apparent improvement on the improvised sleeping-bag-on-the-floor arrangement