The Budget Travel blog tells you how to get your Homeland Security Automated Targeting System files which include your international travel activity since 2002.
U.S. Customs and Border Protection is required by law to make your records available to you, with some exceptions. Your request must be made in writing on paper and be signed by you.
Ask to see the “information relating to me in the Automated Targeting System.” Say that your request is “made pursuant to the Freedom of Information Act, as amended (5 U.S.C. 552).” Add that you wish to have a copy of your records made and mailed to you without first inspecting them.
Your letter should, obviously, give reasonably sufficient detail to enable an official to find your record. So supply your passport number and mailing address. Put a date on your letter and make a copy for your own records. On your envelope, you should conspicuously print the words “FOIA Request.”
It should be addressed to “Freedom of Information Act Request,” U.S. Customs Service, 1300 Pennsylvania Avenue, NW., Washington, DC 20229. Be patient. I had wait for up to a year to receive a copy of my records.
Then if you believe there’s an error in your record, ask for a correction by writing a letter to the Customer Satisfaction Unit, Office of Field Operations, U.S. Customs and Border Protection, Room 5.5C, 1300 Pennsylvania Avenue, N.W., Washington, D.C. 20229.