In my experience, a safe environment and proper foods are key. If you do a search here on R2R you should find several threads on pipefish care. Here is one thread to start with:
Hello all, I am thinking of getting a yellow multibanded pipefish. I understand they're difficult and I am building a setup specifically for it. What is your advice for this fish?What tank size should I go with? What do you think is the best way to get it on frozen food?