for an actual e-file it's a lot more complex, is called MEF https://www.irs.gov/e-file-providers/modernized-e-file-progr...