Add records model
Add API endpoint for document validation