Who is responsible for obtaining a building permit?

An architect or contractor may obtain a building permit on your behalf but the property owner is ultimately responsible.