You’ve goat to be kidding.

Goat yoga — the trendy workout that combines sun salutations and barnyard animals — was supposed to land in Bushwick this week with pop-up classes from the South New Berlin, NY-based NY Goat Yoga.

But two days before the first class, organizers announced that the pop-up had been cancelled due to permit complications.

“The Health Department worked closely with the NY Goat Yoga, but because we prohibit direct contact with certain animals we were unable to process their application and issue a permit,” a department spokesperson told The Post in an emailed statement.

The $40-class, slated to take place at a warehouse-like space at 74 Ingraham St., would have been the first of its kind in New York City. All ticketholders are in the process of being refunded.

The goat yoga concept was created in Oregon two years ago as a type of animal therapy. Since then, more than 200 similar offerings have cropped up around the country, including at Gilbertsville Farmhouse, the company that operates NY Goat Yoga. Last year, they began offering 45-minute classes (and three-day yoga retreats) at their farm, about three-and-a-half hours from the city.

The farmhouse had planned to drive eight of their goats — including four-month-old newcomers named after “Grease” characters — into New York City every week for the classes.

Goats are not permitted to stay in any city building, according to city regulations. But Sharon Boustani, the owner of NY Goat Yoga said that the health department was open to evaluating goat-related pleas on a “case-by-case basis.”

“We were very optimistic,” Boustani says. “And so were they, kind of.”

The permitting process required that they get most of the logistics in place before the application could be reviewed. The biggest permit hurdles, Boustani said, was allowing the goats to roam freely during classes and for the class participants to have contact with the goats. In the end, Boustani says, their best-case scenario would have been a demonstration with the goats, but no class participation with the goats.

“Unfortunately, the laws [in New York City] do not allow for anything close to what a goat yoga experience should be,” Boustani says.

Now, the only way for New Yorkers to get their goat yoga fill is to commute to the goats — Boustani added three more goat yoga retreats for disappointed city-dwellers, as well as goat yoga brunches that include transportation to their farm.

“As far as I can see, goat yoga is not a possibility in New York City,” Boustani says.