adding tests and returning id value
send unique_key and docUrl to frontend to handle non standard routes