Add API endpoint to create a document based off a document source