01POST /imports takes a contacts CSV as the JSON field csv and returns an import report: counts plus a list of row errors, each with a line number and the field at fault.
02Each row needs a name and a valid email. Phone is optional but must be well-formed when present.
03An email may be imported only once, whether it repeats inside the file or was imported earlier.
04GET /contacts lists every imported contact. GET /imports/:id returns an import's report again.
What the hidden tests check
Everything the interviewer tells you is checked.
Most files mix valid and invalid rows; counts and error line numbers are compared exactly.
4 more details are held back. In a mock interview they come out only when you ask the interviewer the right question; in practice they are listed in the workspace.