NEW YORK (CBSNewYork/CBS News) — Democratic presidential candidate Hillary Clinton and Mayor Bill de Blasio are being criticized for what some say was a racist joke they made at a charity event.

The joke in question was made late Saturday night at the annual Inner Circle Show.

“I just have to say thanks for the endorsement, Bill. Took you long enough,” Clinton joked.

COMPLETE CAMPAIGN 2016 COVERAGE

De Blasio responded, “Sorry Hillary, I was running on C.P. time,” as the crowd was taken aback somewhat from the joke.

Actor Leslie Odom Jr., who plays Aaron Burr in “Hamilton,” said, “I don’t like jokes like that, Bill.”

“Cautious politician time,” Clinton said in the punchline. “I’ve been there.”

However, the joke fell flat with some critics. Slate described the joke as “cringeworthy”; Raw Story called it “painful”; and Town Hall said, “It’s only racist if Republicans do it.”

De Blasio told CNN that “people are missing the point” of the joke.

“It was clearly a staged show. It was a scripted show and the whole idea was to do the counter intuitive and say, ‘Cautious politician time,’” the mayor explained. “Every actor involved, including Hillary Clinton and Leslie Odom Jr., thought it was a joke on a different convention. That was the whole idea of it.”

The mayor’s office said the joke was not intended to offend.

“Let’s be clear, in an evening of satire, the only person this was meant to mock was the Mayor himself, period,” a spokesperson told CBS News in a statement. “Certainly no one intended to offend anyone.”