Can I file a lien if I did not send notices?

Only contractors who have a direct agreement with the project owner can file a lien on a property without sending notice first.