Cocoa powder contains theobromine, which is toxic to dogs. It contains about 2-3% theobromine on average, and even a small amount can be harmful or fatal depending on the dog's size and the amount consumed.
Symptoms of theobromine poisoning include vomiting, diarrhea, increased thirst and urination, panting, seizures, heart arrhythmias, and death.
If you think your dog has consumed cocoa powder, contact a veterinarian immediately.