What can I do or take for heel pain after ankle surgery?

Ask your surgeon. Depending on what was performed at the time of surgery, your surgeon may want you to avoid certain medications like nsaids or they may be what is recommended.
Rx. Your surgeon will provide the appropriate pain pill. Dr. Latva.
Pain. The right thing to do is speak to your surgeon. We don't know what the surgery was or when it was and it best for your surgeon to make the call.