Initially, you will need to take measurements and photos of the pothole before it is filled. Make a note of time, date and location of incident and write down exactly what happened, including why you could not see or avoid the pothole. (eg dazzled by oncoming headlamps, raining, swerving to avoid dog running out in road). Get any witness statements you can. Then write to the relevant Council pointing out that you hold them responsible for the damage to your car and the cost of repairs. Send them copies of photographs and measurements and exact location of pothole. Await their reply, and act accordingly.
As an aside, our local Borough, when given enough evidence of the occurrence usually settle out of Court.