API for documents accepts created_at and updated_at fields