I think you’re referring to a 501(3)c, which I know almost nothing about. There’s a “Dummies” book that explains it, IIRC.
I’m heading to a bookstore tomorrow, I’ll have to look for the Dummies guide.