A wooden dowel, I am assuming. Those should be safe. The dowel pins are safe, too. Most of the time when I make houses I just glue them together...Elmer's glue is surprisingly strong.
The wooden dowels are safe, they're normally made out of pine. At least, that's what Keith told me... We've got one in the boys' cage to attach toys to.