I'm using Hubspot and I need to implement a verification of the authenticity of a call from Hubspot to a Xano API endpoint.
For this verification, I need the exact same URL called by Hubspot, as is (with query parameters if there's any) to include it in the string that will be hashed and compared.
However, I noticed that $request_uri only returns the portion of the call that succeeds the domain name, so it starts at /api:myapicode/myendpoint. I'm not even sure it includes the query parameter. I did not test.
Is there a sure way, including in Lambda perhaps, to fetch the full URL with variables including the URL query parameters if any is present? Like so :
'https://myxanodomain.com/api:myapi/myendpoint?param1=value1¶m2=value2'
Thank you !
Matt