My company has a Nuxt.js based landing page and a web form which a visitor to the landing page can submit an inquiry. Once the visitor submits an inquiry, we want it to be stored in Microsoft Dataverse so that our sales team can take a look at it and act upon it from Power Platform. This is similar to Salesforce's Web-to-Lead feature.
Because the landing page is built on Nuxt.js, the web form needs to be a serverless form using Azure Function app. Once a form data is posted to the endpoint of Azure Function app(HTTP trigger), the data then should be stored in Microsoft Dataverse. Is this feasible using Microsoft Dataverse Web API? The reason I ask is, as far as I read the documentation, it is required to generate an access token through Azure Active Directory sign-in page and the token does not seem to be permanent (https://docs.microsoft.com/ja-jp/powerapps/developer/data-platform/webapi/setup-postman-environment). In our use case scenario, the token should not expire.
It would be greatly appreciated if anyone in the community who has encountered a similar case could share a solution/idea.